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
| #!/usr/bin/env python3 | |
| import re | |
| import sqlite3 | |
| import subprocess | |
| import os | |
| import atexit | |
| global con # globals for atexit | |
| global file # FH to close on exit |
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
| #!/bin/bash | |
| job() { | |
| while read line; do | |
| if [[ ${line} =~ Id:\ ([0-9]+) ]]; then | |
| id="${BASH_REMATCH[1]}" | |
| continue | |
| fi | |
| if [[ ${line} =~ Piece\ \#[0-9]+\ is\ corrupt. ]]; then | |
| logger -t fix-torrents -p local3.info "Fixing corrupt torrent $id" |
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
| global | |
| maxconn 32000 | |
| ulimit-n 65535 | |
| uid 0 | |
| gid 0 | |
| #chroot /var/run/haproxy/ | |
| daemon | |
| nosplice | |
| #debug | |
| #nbproc 2 |
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
| #!/bin/bash | |
| declare torrc="/etc/tor/torrc" | |
| declare obfs4_url="https://raw.githubusercontent.com/Delta-Kronecker/Tor-Bridges/refs/heads/main/working_obfs4.txt" | |
| declare buf="" | |
| declare -i n=0 | |
| declare -A ipport_hash=() # to avoid duplicates | |
| process() { | |
| while read line; do |
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
| #!/bin/bash | |
| PATH="/usr/sbin:$PATH" | |
| named_pipe=/var/tmp/$$.tmp | |
| trap "rm -f $named_pipe" EXIT | |
| mknod $named_pipe p | |
| logger <$named_pipe -t sys_backup -p local3.info & # start logger in background with STDIN from named pipe | |
| exec 1>$named_pipe 2>&1 # redirect stderr and stdout to named pipe |