Skip to content

Instantly share code, notes, and snippets.

View nabakdev's full-sized avatar
💭
need vacation

nabak nabakdev

💭
need vacation
View GitHub Profile
@nabakdev
nabakdev / disable-ipv6-openwrt.md
Created June 6, 2023 13:56
disable IPV6 openwrt
uci set 'network.lan.ipv6=0'
uci set 'network.wan.ipv6=0'
uci set 'dhcp.lan.dhcpv6=disabled'

# Disable RA and DHCPv6 so no IPv6 IPs are handed out
uci -q delete dhcp.lan.dhcpv6
uci -q delete dhcp.lan.ra

# Disable the LAN delegation
@themagicalmammal
themagicalmammal / Optimizations_Artix.md
Last active December 7, 2025 01:14
Set of optimizations, I use on my Artix Setup
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active December 8, 2025 09:47
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@gaoyifan
gaoyifan / tc-mark.nft
Created September 24, 2018 10:20
Traffic control mark with nftables
#! /usr/sbin/nft -f
chain tc-wan {
# check default priority
mark & 0xff0 == 0x130 ip dscp set af22 return
# real-time application
## Dota2
udp dport 27000-27200 \
meta mark set mark & 0xfffff00f ^ 0x110 ip dscp set af41 return
@mikoim
mikoim / README.md
Last active October 2, 2025 02:55
[Updated! Aug 14 2020] YouTube recommended encoding settings on ffmpeg (+ libx264)

Parameters

Container: MP4

Parameter YouTube recommends setting
-movflags faststart moov atom at the front of the file (Fast Start)

Video codec: H.264

@denji
denji / nginx-tuning.md
Last active December 6, 2025 06:25
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@carnivore
carnivore / gist:997001
Created May 28, 2011 16:20
How to Git Stash
# Sometimes you want to patch in some changes while you're working,
# but you don't want to make a commit. In this case, use git stash.
# Stash your work (any will do)
$ git stash save
$ git stash
# Do your magic
# See what you got