This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DEF_IF=$(route | grep '^default' | grep -o '[^ ]*$') | |
iptables -P INPUT ACCEPT | |
iptables -P OUTPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -X | |
iptables -X -t nat | |
iptables -F | |
iptables -F -t nat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
printf "%s" "$GREEN" | |
route delete default | |
route delete default | |
route delete default | |
route delete default | |
route add default gw 192.168.27.3 | |
sed -i '/route delete default/d' /etc/rc.local | |
sed -i '/route add default gw 192.168.27.252.*/d' /etc/rc.local | |
sed -i '/route add default gw 192.168.27.253.*/d' /etc/rc.local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#tmux2.1 | |
new-session | |
set -g mouse on | |
set -g history-limit 30000 |
NewerOlder