Skip to content

Instantly share code, notes, and snippets.

View p2ndemic's full-sized avatar

p2ndemic

View GitHub Profile
@NelloKudo
NelloKudo / tft_linux_waydroid_guide.md
Last active June 7, 2025 14:05
How to play Teamfight Tactics (TFT) on Linux (Waydroid)

Playing TFT on Linux using Waydroid

Just like many other League addicts, ever since the Vanguard incident, TFT has been a no-go....

except it isn't, since the Android version works just as fine, after some tweaks!

Screenshot From 2025-01-02 22-05-49

Index

@danpawlik
danpawlik / dnsproxy.sh
Last active April 19, 2025 00:46
adguard dnsproxy on openwrt
opkg update
opkg install dnsproxy
# Ensure, that the NTP server can work without DNS
uci del system.ntp.server
uci add_list system.ntp.server='194.177.4.1' # 0.openwrt.pool.ntp.org
uci add_list system.ntp.server='213.222.217.11' # 1.openwrt.pool.ntp.org
uci add_list system.ntp.server='80.50.102.114' # 2.openwrt.pool.ntp.org
uci add_list system.ntp.server='193.219.28.60' # 3.openwrt.pool.ntp.org
uci commit system
@qzydustin
qzydustin / linux-optimize.sh
Last active April 16, 2025 02:49
Optimize Linux Network Performance
#!/bin/sh
# Set kernel parameters in /etc/sysctl.conf
cat << EOF > /etc/sysctl.conf
# Increase maximum number of open file descriptors
fs.file-max = 1000000
# Increase maximum number of inotify instances per user
fs.inotify.max_user_instances = 8192
@roalcantara
roalcantara / XDG.cheat-sheet.md
Last active May 30, 2025 15:47
XDG cheat sheet

XDG - Base Directory Specification

Directories

Base

The intended use-case for BaseDirectories is to query the paths of user-invisible standard directories that have been defined according to the conventions of the operating system the library is running on.

@MatthewVance
MatthewVance / unbound.conf
Last active April 21, 2025 06:52
Config for running Unbound as a caching DNS forwarder (performance settings optimized for Raspberry Pi 2).
server:
###########################################################################
# BASIC SETTINGS
###########################################################################
# Time to live maximum for RRsets and messages in the cache. If the maximum
# kicks in, responses to clients still get decrementing TTLs based on the
# original (larger) values. When the internal TTL expires, the cache item
# has expired. Can be set lower to force the resolver to query for data
# often, and not trust (very large) TTL values.
cache-max-ttl: 86400
@jult
jult / sysctl.conf
Last active May 4, 2025 01:51
[Debian 12 update!] sysctl config for linux server with 32 GB DDR RAM or more, SSD and 1Gbe (or faster) NIC
# IPv6 Configuration
# -> note that I have disabled ip6 for our internet-connection (wan/eth0) because
# -> my upstream/ISP (still) does not do IPv6. The rest, even localhost, does ip6 stuff.
net.ipv6.conf.all.disable_ipv6 = 0
net.ipv6.conf.default.disable_ipv6 = 0
net.ipv6.conf.lo.disable_ipv6 = 0
net.ipv6.conf.eth0.disable_ipv6 = 1
net.ipv6.conf.wan.disable_ipv6 = 1
# Packet Forwarding
@hackerb9
hackerb9 / extract_cookies.sh
Last active May 10, 2025 06:27 — forked from spk/extract_cookies.sh
Extract cookies.sqlite to cookies.txt for use in wget or curl.
#!/bin/bash -e
# extract_cookies.sh:
#
# Convert from Firefox's cookies.sqlite format to Netscape cookies,
# which can then be used by wget and curl. (Why don't wget and curl
# just use libsqlite if it's installed?)
# USAGE:
#
# $ extract_cookies.sh > /tmp/cookies.txt