Skip to content

Instantly share code, notes, and snippets.

View tuannh99's full-sized avatar

Tuan Nguyen Huy tuannh99

View GitHub Profile
@aputs
aputs / replace-centos6x-iptables
Last active February 28, 2022 04:58
replace centos 6.x iptables
# compile iptables from source and install to /usr/local
mkdir -p /tmp/iptables
wget "http://www.netfilter.org/projects/iptables/files/iptables-1.4.21.tar.bz2" -qO- | tar --strip-components=1 -C /tmp/iptables -xvj
cd /tmp/iptables
./configure
make
make install
# set alternatives
sudo alternatives --install /sbin/iptables iptables.x86_64 /usr/local/sbin/iptables 100 \
@plentz
plentz / nginx.conf
Last active November 20, 2024 13:00
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@ruel
ruel / infb.py
Created November 26, 2010 12:07
A script to scrape information from your facebook friends.
#!/usr/bin/python
'''
InFB - Information Facebook
Usage: infb.py [email protected] password
http://ruel.me
Copyright (c) 2011, Ruel Pagayon
All rights reserved.