Skip to content

Instantly share code, notes, and snippets.

View jstrosch's full-sized avatar

Josh Stroschein jstrosch

View GitHub Profile
@jstrosch
jstrosch / gist:3227681
Created August 1, 2012 15:13
check number of cores
cat /proc/cpuinfo |grep processor
@jstrosch
jstrosch / gist:3190568
Created July 27, 2012 21:31
iptables - delete all rules/chains
#view current chains
$ iptables -L
#remove/flush all rules & delete chains
$ iptables -F
$ iptables -X
$ iptables -t nat -F
$ iptables -t nat -X
$ iptables -t mangle -F
$ iptables -t mangle -X