This file contains hidden or 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
(* | |
Generate and deploy Octopress site from Launchbar | |
Author: Collin Donnell | |
Website: http://collindonnell.com | |
Date: 01/07/2013 | |
*) | |
-- Set to the location on disk of your site | |
set octopressLocation to ((path to home folder as text) & "Code:blog:") as alias |
This file contains hidden or 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
# NOTE: some of these will be 404s (30th of February, days with no comics, etc.) | |
# 404s can be removed with `find . -type f -size -1000c -iname "*.gif" -exec rm {} \;` | |
from urllib import urlretrieve | |
for y in range(2000, 2013): | |
for m in range(1, 13): | |
print "starting", y, m |
This file contains hidden or 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 | |
# incrementally backup $HOME using rsync | |
SOURCE="$HOME/" | |
DEST="/media/Dragis_HDD/homebackup/" | |
KEEP=5 # how many backups besides the current one should be kept | |
EXCLUDEFROM="$SOURCE/.backup_excludes" | |
NICENESS=10 | |
LOGFILE="$DEST/.lastbackup.log" |