Skip to content

Instantly share code, notes, and snippets.

View shiwildy's full-sized avatar
🤡
Learning...

Wildy Sheverando shiwildy

🤡
Learning...
View GitHub Profile
@shiwildy
shiwildy / torrent-block-iptables.sh
Created January 27, 2025 17:07
IPTables rules used to block torrent traffic
# >> Block Torrent Port
iptables -A FORWARD -p tcp --dport 6881:6889 -j DROP
iptables -A FORWARD -p udp --dport 6881:6889 -j DROP
iptables -A FORWARD -p tcp --dport 6969 -j DROP
iptables -A FORWARD -p udp --dport 6969 -j DROP
iptables -A FORWARD -p tcp --dport 51413 -j DROP
iptables -A FORWARD -p udp --dport 51413 -j DROP
iptables -A FORWARD -p tcp --dport 27014:27050 -j DROP
iptables -A FORWARD -p udp --dport 27014:27050 -j DROP
iptables -A FORWARD -p udp --dport 4444 -j DROP
@shiwildy
shiwildy / ssh-enabler.sh
Last active January 27, 2025 08:56
Simple Bash script to enable ssh remote in Linux server
#!/bin/bash
if [[ $(whoami) != 'root' ]]; then
echo "Please run this script as root (or with sudo)."
exit 1
fi
read -p "New Password [or press Enter to generate a random password]: " newpass
if [[ -z "${newpass}" ]]; then
newpass=$(tr -dc 'A-Za-z0-9' < /dev/urandom | head -c 12)
@shiwildy
shiwildy / win-install-on-cloud-not-support-windows.txt
Last active December 29, 2024 16:18
Tutor install windows di cloud yang tidak mendukung windows.
Step 1
# >> Boot into rescue
Step 2
# >> Install xfce4 and required packages
apt update -y
apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils -y
apt install gparted filezilla grub2 wimtools -y
echo "exec startxfce4" > ~/.xinitrc
startx > ~/startx.log 2>&1 &
@shiwildy
shiwildy / proxmox-natipv4-pubhetunnel.conf
Created November 24, 2024 11:22
Proxmox configuration with Dual-Stack Networking, IPv4 NAT and Public IPv6 via Hurricane Electric Tunnel Broker
auto lo
iface lo inet loopback
auto he-ipv6
iface he-ipv6 inet6 tunnel
address xxxx:xxx:xx:xxx::2/128
gateway xxxx:xxx:xx:xxx::1
mode sit
endpoint xxx.xxx.xxx.xxx
local xxx.xxx.xxx.xxx
@shiwildy
shiwildy / caradebloat-app-bawaan-adb-shell.txt
Last active March 21, 2025 09:12
Cara debloat App bawaan menggunakan adb
Cara saya debloat pada hp saya
1. Install platform tools terlebih dahulu
2. Nyalakan OPSI Developer dan nyalakan USB Debug
3. Silakan buka adb di platform tools kemudian ketik
adb devices
4. Jika sudah terdeteksi bisa ketik lagi
@shiwildy
shiwildy / script-to-bulk-delete-cloudflare-record.js
Created October 28, 2024 01:56
Script to bulk delete cloudflare record
deleteAllRecords();
async function deleteAllRecords() {
let e;
filterEditButtons().forEach((e) => e.click());
while (e = filterDeleteButtons()[0]) {
e.click();
await confirmDelete();
}
}
@shiwildy
shiwildy / guides-to-create-gzostemplates-for-rescue-installation.sh
Last active October 27, 2024 06:57
Guides to create compressed gz os templates for rescue installation
# >> Step 1 [ Install required ]
apt update -y && apt install qemu-system-x86 -y
# >> Step 2 [ Download OS ISO ]
wget -O os.iso 'ISO LINK'
wget -O virtio.iso 'https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso'
# >> Step 3 [ Create Disk for QEMU ]
qemu-img create -f raw disk.img 5G
@shiwildy
shiwildy / guides-recovery-partition-windows.txt
Last active October 3, 2024 06:16
Guides to resize recovery partition in Windows 10/11 [GPT/UEFI]
Guides to resize partition
1. Run CMD as Administrator
2. disable reagent use : reagentc /disable
3. Type diskpart in the cmd
list disk
sel disk [yourwindows]
list part
sel part [winreindex]