This file contains 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
iptables -A INPUT -i eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT && | |
iptables -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP && | |
iptables -A INPUT -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -m state --state NEW -j DROP && | |
iptables -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG FIN,SYN,RST,PSH,ACK,URG -j DROP && | |
iptables -A INPUT -i lo -j ACCEPT && | |
iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT && | |
iptables -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT; | |
iptables-save > /etc/iptables.rules | |
iptables-restore < /etc/iptables.rules |
This file contains 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
var myRevealingModule = (function () { | |
var privateCounter = 0; | |
function privateFunction() { | |
privateCounter++; | |
} | |
function publicFunction() { | |
publicIncrement(); |
This file contains 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
// module... | |
// encapculates the properties of the function | |
// returns the function | |
String.method('deentity', function(){ | |
var entities = { | |
quote: '"', | |
lt: '<', | |
gt: '>' | |
}; |
This file contains 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
if($(window).scrollTop() + $(window).height() == $(document).height()) { | |
} |
NewerOlder