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 delegationNote: 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 !
| #! /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 |
Moved to git repository: https://github.com/denji/nginx-tuning
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.
| # 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 |