Skip to content

Instantly share code, notes, and snippets.

View clrh's full-sized avatar

Claire Hernandez clrh

View GitHub Profile
@clrh
clrh / backup-full.sh
Created January 4, 2016 16:30 — forked from noreiller/backup-full.sh
Geeksphone Peak backup scripts
#!/bin/sh
BACKUP_DATE=`date +%Y-%m-%d_%H-%M-%S`
BACKUP_DIR="~/PEAK/BACKUPS/$BACKUP_DATE"
mkdir -p "$BACKUP_DIR"
cd "$BACKUP_DIR"
sudo adb pull /data/local/storage/persistent/
@clrh
clrh / kohastatus.pl
Created March 23, 2012 16:15 — forked from MagnusEnger/kohastatus.pl
Snapshots of the most recent numbers for Koha's bug statuses
#!/usr/bin/perl -w
# Prints out the the most recent numbers for each status from:
# http://bugs.koha-community.org/cgi-bin/progress.pl?type=json
#
# Meant to be run hourly from cron during Global Bug Squashing Days:
# @hourly perl /path/to/kohastatus.pl >> /path/to/hourlynumbers.txt
#
# Based on http://beerpla.net/2008/03/27/parsing-json-in-perl-by-example-southparkstudioscom-south-park-episodes/