This file contains 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 socket | |
HOST = "127.0.0.1" | |
PORT = 65432 | |
class BrowserCatServer: | |
"""Extremely simple single threaded http socket server.""" | |
@staticmethod |
This file contains 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
docker run -it -p 8888:8888/tcp --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=nordvpn \ | |
-e VPN_TYPE=openvpn -e HTTPPROXY=on -e UPDATER_PERIOD=24h \ | |
-e OPENVPN_USER=${NORD_USERNAME} -e OPENVPN_PASSWORD=${NORD_PASSWORD} \ | |
-e SERVER_COUNTRIES="United States" qmcgaw/gluetun |
This file contains 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
#!/usr/bin/env bash | |
SSH_HOST="my-ssh-host" | |
SRC_PATH="/var/www/webapp" | |
DB_NAME="db_name" | |
DB_USER="db_user" | |
DB_PASS="db_pass" | |
# Copy files | |
rsync -avP -e ssh "$SRC_PATH" "$SSH_HOST":"$SRC_PATH" |
This file contains 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
#!/bin/bash | |
IP=$(dig @resolver1.opendns.com ANY myip.opendns.com +short) | |
HOSTNAME="my.host.com" | |
ZONE_ID="" | |
USE_CLOUDFLARE_PROXY="true" | |
DNS_RECORD_ID="" | |
touch ip.txt | |
PREV_IP=$(cat ip.txt) | |
echo "Previous IP: $PREV_IP" |
This file contains 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
[Definition] | |
failregex = ^(www\.)?YOUR_DOMAIN.com:443 <HOST>.* "(GET|POST) \/paypal\/transparent\/requestSecureToken\/ HTTP\/.\..".*$ | |
ignoreregex = |