Skip to content

Instantly share code, notes, and snippets.

View arthurpizza's full-sized avatar

Arthur Reeder arthurpizza

View GitHub Profile
@arthurpizza
arthurpizza / imagemagick-titles.md
Created August 21, 2015 19:12
A quick guide to making titles for videos with Imagemagick

Quick guide to imagemagick titles for video

On Apple:

convert -background black -fill white -font /Library/Fonts/Apple\ LiSung\ Light.ttf -size 1920x1080 -pointsize 120 -gravity center label:'Dink Thifferent' title.png

On Linux:

@arthurpizza
arthurpizza / quaklink
Created August 14, 2015 00:39
Grabs the first link from DuckDuckGo search
<img src="http://placehold.it/256x360">
@arthurpizza
arthurpizza / add.html
Created June 30, 2015 22:17
Include with jQuery
<p> This is my include file </p>
@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

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 / 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
#! /bin/sh
lftp -c "torrent $1"
#! /bin/sh
cd /Applications/MAMP/htdocs
wget http://wordpress.org/latest.zip
unzip latest.zip
rm latest.zip
cd wordpress/
mv * ..
cd ..
rmdir wordpress/
# Javascript
<script>document.write(new Date().getFullYear())</script>
# PHP
<?php echo date("Y"); ?>