Skip to content

Instantly share code, notes, and snippets.

The netfilter hooks in the kernel and where they hook in the packet flow

The figure below calls out

  • The netfilter hooks
  • The order of table traversal
import http.server
import socketserver
import random
# List of proxy servers to rotate through
proxy_list = [
'http://proxy1.example.com:8080',
'http://proxy2.example.com:8080',
# Add more proxy servers as needed
]
@thuync
thuync / iterm2.md
Created June 30, 2020 03:44 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@thuync
thuync / nginx.conf
Created November 21, 2019 04:35 — forked from thoop/nginx.conf
Official prerender.io nginx.conf for nginx
# Change YOUR_TOKEN to your prerender token
# Change example.com (server_name) to your website url
# Change /path/to/your/root to the correct value
server {
listen 80;
server_name example.com;
root /path/to/your/root;
index index.html;
"listing": {
"city": "Denver",
"collection_ids": null,
"country": "United States",
"has_double_blind_reviews": false,
"id": 6333040,
"instant_book_enabled": true,
"instant_bookable": false,
"lat": 39.759501027197835,
@thuync
thuync / gist:816bb54e0f19b0e3e48590656533f022
Created August 20, 2017 11:12 — forked from craigminihan/gist:b23c06afd9073ec32e0c
Build GCC 4.9.2 for C/C++ on CentOS 7
sudo yum install libmpc-devel mpfr-devel gmp-devel
cd ~/Downloads
curl ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.2/gcc-4.9.2.tar.bz2 -O
tar xvfj gcc-4.9.2.tar.bz2
cd gcc-4.9.2
./configure --disable-multilib --enable-languages=c,c++
make -j 4
make install
@thuync
thuync / Hello.json
Last active March 29, 2017 02:55
Test Gist
{
"name": "Hello"
}
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f5ed1517b8c, pid=12573, tid=140044935427840
#
# JRE version: OpenJDK Runtime Environment (7.0_111-b01) (build 1.7.0_111-mockbuild_2016_07_29_20_37-b00)
# Java VM: OpenJDK 64-Bit Server VM (24.111-b01 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 2.6.7
# Distribution: Built on Amazon Linux BASE release 2015.03 (Fri Jul 29 20:37:49 UTC 2016)
# Problematic frame:
# V [libjvm.so+0x470b8c]