Skip to content

Instantly share code, notes, and snippets.

@4xx
4xx / ArchLinux_Kernel4.9_BBR
Created February 9, 2017 01:51
Arch Linux 配置 Kernel4.9 BBR
Source: https://xing-zhi-love.com/index.php/440.html
# su
# echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
# echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
# sysctl -p
# sysctl net.ipv4.tcp_available_congestion_control
# sysctl net.ipv4.tcp_congestion_control
@4xx
4xx / ALL_PROXY
Last active July 16, 2016 07:28
ALL_PROXY=socks://
export NO_PROXY=localhost,127.0.0.0/8,::1
export ALL_PROXY=socks://127.0.0.0:8080/
export HTTP_PROXY=http://127.0.0.0:8080/
export HTTPS_PROXY=127.0.0.0:8080/
export FTP_PROXY=127.0.0.0:8080/
export SOCK_PROXY=socks://127.0.0.0:8080/
// remove proxy
unset http_proxy;
@4xx
4xx / twitter-user-data.py
Created October 18, 2015 14:27 — forked from gdsaxton/twitter-user-data.py
Twitter User Information
#!/usr/bin/env python
"""
Use Twitter API to grab user information from list of organizations;
export text file
Uses Twython module to access Twitter API
"""
@4xx
4xx / DNSMasq + DNSCrypt-proxy.md
Last active August 29, 2015 14:20 — forked from ahmozkya/README.md
Homebrew with DNSMasq + DNSCrypt-proxy (OpenDNS)

Install & Configure

  1. Install DNSMasq
$ brew install dnsmasq
  1. Install DNSCrypt-proxy
$ brew install dnscrypt-proxy