Skip to content

Instantly share code, notes, and snippets.

View OxCom's full-sized avatar

Andrey OxCom

View GitHub Profile
@OxCom
OxCom / wow-ani-afk.py
Created December 28, 2024 11:57
WoW anty-afk script
import win32gui
import win32con
import random
import time
def find_wow_windows():
"""
Find all open WoW client windows by title.
"""
wow_windows = []
@OxCom
OxCom / docker0-rebuild.sh
Created February 29, 2024 14:38
Rebuild docker0 bridge on failure
pkill docker
iptables -t nat -F
ifconfig docker0 down
brctl delbr docker0
docker -d
@OxCom
OxCom / killswitch.sh
Created July 25, 2022 14:03
KillSwitch - OpenVPN - Ubuntu
#!/bin/bash
# Requirements:
# - Open VPN client some where on port 1194
# - ufw enabled firewall
# process arguments
while getopts ":edt:" opt; do
case ${opt} in
e)
@OxCom
OxCom / configure_docker0.sh
Created August 18, 2020 18:23 — forked from kamermans/configure_docker0.sh
Change the IP subnet of Docker's docker0 interface
#!/bin/sh -e
#
# NOTE: Since Docker 1.10 (February 4, 2016), it has been possible to configure the
# Docker daemon using a JSON config file. On Linux, this file is normally located at
# /etc/docker/daemon.json. You should use this JSON config method if you are running
# a version of Docker that is at least 1.10!
# Here is an example configuration that sets the docker0 bridge IP to 192.168.254.1/24:
# {
# "bip": "192.168.254.1/24"
# }