import socket
s = socket.socket()
host = socket.gethostname() port = 9009 s.bind((host,port)) print('This host/server ID is: ', host) print('\n',host,'has been binded to',port) print('\nServer is listening for incoming connections')
| import cv2 | |
| import numpy as np | |
| import time | |
| def filter_image(img, hsv_lower, hsv_upper): | |
| img_filt = cv2.medianBlur(img, 11) | |
| hsv = cv2.cvtColor(img_filt, cv2.COLOR_BGR2HSV) | |
| mask = cv2.inRange(hsv, hsv_lower, hsv_upper) | |
| return mask |
| 111now its public |
import socket
s = socket.socket()
host = socket.gethostname() port = 9009 s.bind((host,port)) print('This host/server ID is: ', host) print('\n',host,'has been binded to',port) print('\nServer is listening for incoming connections')
| const fs = require('fs') | |
| const debug = require('debug')('net-profiler') | |
| function getCaller (level = 5) { | |
| try { | |
| return new Error().stack.split('\n')[level].slice(7) | |
| } catch (e) { | |
| return 'unknown' | |
| } | |
| } |
| #!/bin/bash | |
| # https://stackoverflow.com/a/23877974/3474615 | |
| while [[ $EXT_PREFIX != "ioio" ]] # change 'ioio' to your desired prefix (can only use lowercase a-p) | |
| do | |
| rm key.pem manifest_key.txt extension_id.txt | |
| 2>/dev/null openssl genrsa 2048 | openssl pkcs8 -topk8 -nocrypt -out key.pem | |
| 2>/dev/null openssl rsa -in key.pem -pubout -outform DER | openssl base64 -A > manifest_key.txt |
| branch | name | time | url | disableHttp2 | upstreamProxy | httpsUpstreamProxy | cyProxy | cyIntercept |
|---|
http[s]://host:port/path combination
type GlobPattern = string
type StringMatcher = GlobPattern | RegEx
type StringDictMatcher = { [key: string]: StringMatcher }
type NumberMatcher = number | number[] // list of acceptable numbers| const assert = require('assert') | |
| const Bluebird = require('bluebird') | |
| const certyCb = require('certy') | |
| const https = require('https') | |
| const rp = require('request-promise') | |
| const certy = Bluebird.promisifyAll(certyCb) | |
| certy.createAsync() | |
| .then((certs) => { |
| [Interface] | |
| # Configuration for the server | |
| # Set the IP subnet that will be used for the WireGuard network. | |
| # 10.222.0.1 - 10.222.0.255 is a memorable preset that is unlikely to conflict. | |
| Address = 10.222.0.1/24 | |
| # The port that will be used to listen to connections. 51820 is the default. | |
| ListenPort = 51820 |
| [2023-04-02T16:13:32-04:00] [2023-04-02T16:18:32-04:00] | |
| [2023-04-01T23:57:36-04:00] [2023-04-02T01:39:11-04:00] | |
| [2023-04-01T23:30:06-04:00] [2023-04-01T23:45:06-04:00] | |
| [2023-04-01T20:03:54-04:00] [2023-04-01T22:34:38-04:00] | |
| [2023-03-30T12:45:23-04:00] [2023-03-30T13:52:35-04:00] | |
| [2023-03-30T12:39:11-04:00] [2023-03-30T12:44:53-04:00] | |
| [2023-03-29T12:14:51-04:00] [2023-03-29T12:19:51-04:00] | |
| [2023-03-28T12:36:13-04:00] [2023-03-28T13:44:10-04:00] | |
| [2023-03-28T02:56:59-04:00] [2023-03-28T03:03:36-04:00] | |
| [2023-03-28T02:49:11-04:00] [2023-03-28T02:54:11-04:00] |