Skip to content

Instantly share code, notes, and snippets.

@farneser
farneser / windows-change-ttl.md
Last active September 15, 2024 15:21
How to change TTL on windows 10/11 in on command

Change windows 10/11 TTL in one command and reboot

netsh int ipv4 set glob defaultcurhoplimit=65

Check TTL value

ping 1.1.1.1
@qwerty12
qwerty12 / termux-url-opener
Last active August 24, 2024 23:54
Install the followig at least: VLC in Android, `jq`, Termux API, `youtube-dl`, `streamlink`, `gallery-dl` and `aria2c`
#!/data/data/com.termux/files/usr/bin/bash
if [ -z "${1:-}" ]; then
exit 1
fi
url_is_supported() {
REPLY=""
declare -A arr
case "$1" in
@mafredri
mafredri / smb.conf
Last active June 7, 2024 14:34
Samba config for Open PS2 Loader (PlayStation 2)
# This setup works pretty well for OPL with a network link that travels through
# two UniFi switches and connects to a Samba server running inside Docker. The
# host OS is Debian with a ZFS filesystem and the container OS is also Debian.
# Latest Samba (4.11+).
[global]
# ======================
# General Samba settings
# ======================
log level = 1
@subfuzion
subfuzion / curl.md
Last active September 17, 2024 20:20
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.