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
/* Arrays */ | |
Array.prototype.each = function(callback) { | |
for (i=0; i < this.length; i++) { | |
callback(i, this[i]) | |
} | |
} | |
Array.prototype.first = function() { |
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
#!/bin/bash | |
P=5000; | |
if [ -n "$1" ]; then | |
P=$1 | |
fi | |
ruby -run -e httpd . -p $P; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body> | |
</body> | |
</html> |
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
SELECT | |
`locations`.`id` | |
SQRT( | |
POW(69.1 * ( | |
41.7600 - `locations`.`latitude` | |
), 2) + | |
POW(69.1 * ( | |
`locations`.`longitude` - 70.0833) * COS(41.7600 / 57.3), 2) | |
) AS `distance` | |
FROM |
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
#!/bin/bash | |
url=$1 | |
if [[ $1 != *http:\/\/* ]]; then | |
url="http://$1" | |
fi | |
wget --spider -r -nv -nd -np $1 2>&1 | ack -o '(?<=URL:)\S+' |
We can't make this file beautiful and searchable because it's too large.
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
zipcode,city,state | |
00501,Holtsville,NY | |
00544,Holtsville,NY | |
00601,Adjuntas,PR | |
00602,Aguada,PR | |
00603,Aguadilla,PR | |
00604,Aguadilla,PR | |
00605,Aguadilla,PR | |
00606,Maricao,PR | |
00610,Anasco,PR |
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
aws iam upload-server-certificate --server-certificate-name X --certificate-body file://cert.crt --private-key file://key.key --certificate-chain file://chain.crt --path /cloudfront/X/ |
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
#!/bin/bash | |
# Takes one parameter: a remote git repository URL. | |
# | |
# This is the stuff this script does: | |
# | |
# 1. Clones the repository | |
# 2. Fetches all remote branches | |
# 3. Compresses the folder | |
# 4. Deletes the cloned folder. |
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
#!/bin/bash | |
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent $1 |
OlderNewer