- Create instance with shape
VM.Standard.E2.1.Micro
and without assigned public IP address (Compute > Instances) - Create a reserved public IP (Networking > IP Management > Reserved Public IPs)
- Set reserved public IP to the assigned VNIC (Compute > Instances > Instance Details > Attached VNICs > VNIC Details > IPv4 Addresses)
- Install Algo VPN on the VM
- Create a security list (Networking > Virtual cloud networks > Virtual Cloud Network Details > Security Lists)
- ingress rule, source CIDR: 0.0.0.0/0, protocol: UDP, destination ports: 51820,500,4500
- Add created security list to VNIC's subnet (Networking > Virtual cloud networks > Virtual Cloud Network Details > Security Lists)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
def count_curtain_hooks(image_path): | |
# Load and check image | |
image = cv2.imread(image_path) | |
if image is None: | |
raise ValueError("Could not load image.") | |
# Preprocessing: Convert to grayscale, apply Gaussian blur, and detect edges | |
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
if ($host.Name -eq 'ConsoleHost') | |
{ | |
Import-Module z | |
Import-Module PSReadLine | |
Set-PSReadLineOption -EditMode Emacs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function ()%7Bvar e%3Bdocument.getElementById("someuniqueid")%7C%7C(e%3Ddocument.getElementsByTagName("head"))%5B0%5D%26%26(document.createElementNS%26%26"head"%3D%3De%5B0%5D.tagName%3Fe%5B0%5D.appendChild(document.createElementNS("http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml"%2C"style"))%3Ae%5B0%5D.appendChild(document.createElement("style"))).appendChild(document.createTextNode("table%7Bwidth%3A2000px%3Boverflow-x%3Ascroll%3Bmargin-left%3A5em%3Boverflow-y%3Avisible%3Bdisplay%3Ablock%7Dtable>tbody>tr>td%3Afirst-child%7Bposition%3Aabsolute%7D"))%7D()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bs4 import BeautifulSoup | |
import requests | |
import urllib | |
import re | |
query = "apple juice" | |
q = re.sub(" ", "+", query) | |
url = 'https://www.google.com/search?q='+q+'&tbm=isch&gbv=1' | |
header = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
s = requests.Session() | |
url = 'https://example.com' | |
username = 'alice' | |
password = 'hunter2' | |
r1 = s.get(url+'/login?action=get_auth_params') | |
lt = r1.json() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
public class d_the_pirate_alphabet { | |
public static void main(String[] args) { | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | |
try { | |
d_the_pirate_alphabet_solver solver = new d_the_pirate_alphabet_solver(); | |
solver.input = br.readLine().trim(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
creationTimestamp: null | |
labels: | |
app: my-py-server | |
name: my-py-server | |
spec: | |
ports: | |
- port: 80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: octicons-link; | |
src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v2+9+DBKTzsJNnWJNTgHEy4BgG3EMI9DCEDOGEXzDADU5hBKMIgNPZqoD3SilVaXZCER3/I7AtxEJLtzzuZfI+VVkprxTlXShWKb3TBecG11rwoNlmmn1P2WYcJczl32etSpKnziC7lQyWe1smVPy/Lt7Kc+0vWY/gAgIIEqAN9we0pwKXreiMasxvabDQMM4riO+qxM2ogwDGOZTXxwxDiycQIcoYFBLj5K3EIaSctAq2kTYiw+ymhce7vwM9jSqO8JyVd5RH9gyTt2+J/yUmYlIR0s04n6+7Vm1ozezUeLEaUjhaDSuXHwVRgvLJn1tQ7xiuVv/ocTRF42mNgZGBgYGbwZOBiAAFGJBIMAA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: Boxstarter Script | |
# Author: Jess Frazelle <[email protected]> | |
# Last Updated: 2017-09-11 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: |
NewerOlder