Skip to content

Instantly share code, notes, and snippets.

View Temikus's full-sized avatar

Artem Yakimenko Temikus

View GitHub Profile
(*
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
# 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
@Temikus
Temikus / backup.sh
Created December 19, 2012 17:10 — forked from anonymous/backup.sh
#!/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"