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 bash | |
| # | |
| # tun2socks-vpn.sh - route all system traffic through a SOCKS5 proxy via tun2socks | |
| # | |
| # Usage: | |
| # sudo ./tun2socks-vpn.sh socks5://user:pass@1.2.3.4:1080 | |
| # sudo ./tun2socks-vpn.sh socks5://1.2.3.4:1080 | |
| # sudo ./tun2socks-vpn.sh socks5://1.2.3.4:1080 --debug | |
| # | |
| set -euo pipefail |
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 struct, random, math | |
| random.seed(7) | |
| def u8(v): return bytes([v & 0xFF]) | |
| def u16(v): return struct.pack('<H', v & 0xFFFF) | |
| def u32(v): return struct.pack('<I', v & 0xFFFFFFFF) | |
| CMD = {c: i + 1 for i, c in enumerate("ABCDEFGHIJKLMNOPQRSTUVWXYZ")} |
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
| // ==UserScript== | |
| // @name Irina Bot Game list Table sorter and plugin | |
| // @description Sorting the table with games with the function of filtering hostbots, as well as displaying notifications about joining and leaving players. | |
| // @version 1.9 | |
| // @grant none | |
| // @match https://irinabot.ru/gamelist | |
| // @match https://irinabot.ru/ | |
| // @match https://ptr.irinabot.ru/ | |
| // @match https://ptr.irinabot.ru/gamelist | |
| // @author Monsterovich |
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
| #============================== | |
| #Sun Aug 27 14:03:10 EET 2023 | |
| network.bootstrap.DHT=yes | |
| network.bootstrap.connectTo.0=submarine.strangled.net\:2103 | |
| network.bootstrap.connectTo.1=192.168.100.3\:2103 | |
| network.bootstrap.tracker=http\://p2p.0g.cx\:6969/announce | |
| network.ip.network=10.6.0.0 | |
| network.ip.subnet=255.255.0.0 | |
| network.name=Warcraft III network | |
| network.publicKey.0=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvG5uVRWzfl7xp879iR3JZ8doCNp+Skad |
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
| // cc -shared `pkg-config --cflags gtk+-3.0` -fPIC -o audacity-slider-hack.so hack.c | |
| #include <dlfcn.h> | |
| #include <stdio.h> | |
| #include <gtk-3.0/gtk/gtk.h> | |
| void *library_handle = NULL; | |
| void (*gtk_window_resize_impl)(GtkWindow *win, gint w, gint h); | |
| #define GTK_LIB "/usr/lib/x86_64-linux-gnu/libgtk-3.so" |
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 | |
| from gi.repository import GLib | |
| from gi.repository import Gio | |
| import os | |
| import time | |
| def onPrepareForSleep(conn, sender, obj, interface, signal, parameters, data): | |
| if not parameters[0]: |
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 python | |
| import os | |
| import sys | |
| from subprocess import Popen, PIPE, STDOUT | |
| import time | |
| HEADPHONE_EVENT = "jack/headphone" | |
| p = Popen(["/usr/bin/acpi_listen"], | |
| stdout=PIPE, stderr=STDOUT, bufsize=1) |
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/python3 | |
| import sys | |
| import os | |
| import click | |
| if len(sys.argv) < 2: | |
| exit("Usage: cmake_uninstall <install_manifest.txt>") | |
| if os.geteuid() != 0: |
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
| Section "InputClass" | |
| Identifier "touchpad catchall" | |
| Driver "synaptics" | |
| MatchIsTouchpad "on" | |
| MatchDevicePath "/dev/input/event*" | |
| Option "TapButton1" "1" | |
| Option "TapButton2" "2" | |
| Option "TapButton3" "3" | |
| EndSection |
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
| // | |
| // Defines & Variables | |
| // | |
| #define ACSRECTS_NUM_GLOBALS 6 | |
| #define ACSRECTS_X 0 | |
| #define ACSRECTS_Y 1 | |
| #define ACSRECTS_W 2 |
NewerOlder