Skip to content

Instantly share code, notes, and snippets.

View arthurpizza's full-sized avatar

Arthur Reeder arthurpizza

View GitHub Profile
#! /bin/sh
curl -s http://weather.noaa.gov/pub/data/observations/metar/decoded/KLGB.TXT
#! /bin/sh
apg -n 12 -a 1 -MNCl -m 16
# Javascript
<script>document.write(new Date().getFullYear())</script>
# PHP
<?php echo date("Y"); ?>
#! /bin/sh
cd /Applications/MAMP/htdocs
wget http://wordpress.org/latest.zip
unzip latest.zip
rm latest.zip
cd wordpress/
mv * ..
cd ..
rmdir wordpress/
#! /bin/sh
lftp -c "torrent $1"
@arthurpizza
arthurpizza / hash2torrent
Created May 5, 2015 14:51
Hash 2 Torrent (via getstrike.net)
#! /bin/sh
echo 'Connecting to getstrike.net'
echo '..............................'
wget -q https://getstrike.net/torrents/api/download/$1.torrent
echo Saved as $1.torrent

The documentation is a little confusing when it comes to project pages, as opposed to user pages. It feels like you should have to do more, but actually the process is very easy.

It involves:

Setting up 2 static A records for the naked (no www) domain. Creating one CNAME record for www which will point to a GitHub URL. This will handle www redirection for you. Creating a file called CNAME (capitalised) in your project root on the gh-pages branch. This will tell Github what URL to respond to.

Wait for everything to propagate.

@arthurpizza
arthurpizza / gist:534b1ec147c1667a206e
Created May 14, 2015 14:33
lift-torrent-ubuntu.sh
lftp -c torrent http://releases.ubuntu.com/15.04/ubuntu-15.04-desktop-amd64.iso.torrent
@arthurpizza
arthurpizza / add.html
Created June 30, 2015 22:17
Include with jQuery
<p> This is my include file </p>
<img src="http://placehold.it/256x360">