Skip to content

Instantly share code, notes, and snippets.

View Ne00n's full-sized avatar

Ne00n

  • Location Location Location
View GitHub Profile
mkdir -p /etc/apt/keyrings/ && wget -O /etc/apt/keyrings/zabbly.asc https://pkgs.zabbly.com/key.asc
sh -c 'cat <<EOF > /etc/apt/sources.list.d/zabbly-incus-lts-6.0.sources
Enabled: yes
Types: deb
URIs: https://pkgs.zabbly.com/incus/lts-6.0
Suites: $(. /etc/os-release && echo ${VERSION_CODENAME})
Components: main
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/zabbly.asc
@Ne00n
Ne00n / gist:48d2aed61e289fc6348d61344a3a64a6
Last active February 29, 2024 15:23
archlinux systemrescuecd storage raid fix
mount -o remount,size=8G /run/archiso/cowspace
mdadm --stop /dev/md/*
#install fucking ubuntu
qemu-system-x86_64 -net nic -net user,hostfwd=tcp::80-:80,hostfwd=tcp::443-:443 -m 1024M -localtime -enable-kvm -hda /dev/sda -hdb /dev/sdb -vnc 0.0.0.0:0 -cdrom /tmp/proxmox-ve_7.1-1.iso -boot d
#fix the fucking boot parition that the installer did not install because fucking ubuntu
#source https://serverfault.com/questions/1019079/how-do-i-make-grub-install-on-a-software-raid-disk
mdadm --fail /dev/md0 /dev/sda
mdadm --remove /dev/md0 /dev/sda
sfdisk -d /dev/sdd > raidinfo-partitions.sdd
sfdisk /dev/sda < raidinfo-partitions.sdd
@Ne00n
Ne00n / yt good asmr list
Last active April 11, 2024 14:32
yt good asmr list
https://www.youtube.com/@beegeewanders
https://www.youtube.com/@PJDreams
https://www.youtube.com/@ASMRDivinity
https://www.youtube.com/@asmrnirvana1428
https://www.youtube.com/@GibiASMR
https://www.youtube.com/@asmrglow
https://www.youtube.com/@DudeThatsWholesome
https://www.youtube.com/@PPOMO
https://www.youtube.com/@SeafoamKitten
https://www.youtube.com/@ASMRLillyVinnily
@Ne00n
Ne00n / yt.py
Last active February 15, 2024 15:59
yt-dlp python3
import requests, random, os
reader = open('proxies.txt', 'r')
proxies = reader.readlines()
proxiesList = []
for proxy in proxies:
proxy = proxy.replace("\n","")
try:
r = requests.head(f"http://10.0.{proxy}.1:8888", timeout=(5, 5))
@Ne00n
Ne00n / cluster.py
Created October 16, 2023 18:44
basedflare cluster sync
#python3 cluster.py http://admin:admin@localhost:2001/,http://admin:admin@localhost:2001/
from pymongo import MongoClient
import sys
client = MongoClient()
client = MongoClient("mongodb://127.0.0.1:27017/")
dbs = client.list_database_names()
print(f"Updating cluster to {[sys.argv[1]]}")
@Ne00n
Ne00n / basedflare sync
Last active October 16, 2023 18:32
basedflare sync
#!/bin/bash
#bash basesync.sh 1.1.1.1 8.8.8.8
mkdir /tmp/basedflare
rsync -r root@$1:/etc/haproxy/ /tmp/basedflare/
ssh root@$2 systemctl stop haproxy
ssh root@$2 systemctl stop dataplaneapi
rsync -r /tmp/basedflare/map root@$2:/etc/haproxy/
rsync -r /tmp/basedflare/ssl root@$2:/etc/haproxy/
ssh root@$2 systemctl stop dataplaneapi
ssh root@$2 systemctl start haproxy
@Ne00n
Ne00n / haproxy-protection basedflare
Last active October 16, 2023 18:21
haproxy-protection basedflare
cd /root
apt-get install git pgp lua5.3 liblua5.3-dev argon2 libargon2-dev luarocks -y
sudo git config --global url."https://".insteadOf git:// #don't ask.
sudo luarocks install argon2
git clone https://gitgud.io/fatchan/haproxy-protection.git
curl https://haproxy.debian.net/bernat.debian.org.gpg \
| gpg --dearmor > /usr/share/keyrings/haproxy.debian.net.gpg
fallocate -l 1G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile
rm -f /etc/machine-id
rm -f /var/lib/dbus/machine-id
dbus-uuidgen --ensure
systemd-machine-id-setup
reboot
@Ne00n
Ne00n / tor deploy
Last active December 23, 2022 22:34
apt-get update
echo -e "Explanation: tor meta, always run latest version of obfs4proxy
Package: obfs4proxy
Pin: release a=bullseye-backports
Pin-Priority: 500" > /etc/apt/preferences.d/obfs4proxy.pref
apt-get install obfs4proxy tor -y
sudo setcap cap_net_bind_service=+ep /usr/bin/obfs4proxy
sed -i 's/NoNewPrivileges=yes/NoNewPrivileges=no/' /lib/systemd/system/[email protected]
sed -i 's/NoNewPrivileges=yes/NoNewPrivileges=no/' /lib/systemd/system/[email protected]
systemctl daemon-reload