I hereby claim:
- I am mattpavelle on github.
- I am mattpavelle (https://keybase.io/mattpavelle) on keybase.
- I have a public key ASCl27yiqz8R19juSd-RaKQ7xLwsoAngpDXsMaSsirMmWwo
To claim this, I am signing this object:
| // usually code that works in IE8/9/10 will also work in IE8/9/10 in compatibility mode, but IE reports itself as IE7 | |
| // or some such when running in compatibility mode... so let's pretend that IE9 in IE7 compatibility mode is IE9 | |
| function checkVersion() { | |
| var msg = "Not IE"; | |
| var ver = -1; // assume failure | |
| var ua = navigator.userAgent; | |
| if (navigator.appName == 'Microsoft Internet Explorer') { | |
| var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})"); | |
| if (re.exec(ua) != null) | |
| ver = parseFloat( RegExp.$1 ); |
| #! /bin/bash | |
| /usr/bin/sudo /sbin/iptables -I INPUT -i eth0 -p tcp -m tcp --dport 22 -m state --state NEW -m recent --set --name DEFAULT --rsource | |
| ## if someone tries to ssh in 3x and fails, block their IP for 24 hours | |
| /usr/bin/sudo /sbin/iptables -I INPUT -i eth0 -p tcp -m tcp --dport 22 -m state --state NEW -m recent --update --seconds 86400 --hitcount 4 --name DEFAULT --rsource -j DROP | |
| ## place in /etc/network/if-up.d/ | |
| ## see all rules with: | |
| # /usr/bin/sudo /sbin/iptables -vnL --line-numbers |
| html { | |
| background: url(images/bg.jpg) no-repeat center center fixed; | |
| -webkit-background-size: cover; | |
| -moz-background-size: cover; | |
| -o-background-size: cover; | |
| background-size: cover; | |
| } |
| import math | |
| from pprint import pprint | |
| pprint(vars(math)) | |
| pprint(dir(math)) |
| RedirectMatch 404 /\.git |
I hereby claim:
To claim this, I am signing this object:
The launchd scripts below follow the Mac OS X way to run scripts that automatically update and upgrade brew and pip packages on a set schedule.
They will run daily as follows: