Skip to content

Instantly share code, notes, and snippets.

View louisrawlins's full-sized avatar

Louis Rawlins louisrawlins

View GitHub Profile
#!/usr/bin/env python
# San Francisco Public Library - Learn, Design and Build Software!
#
# Sample program created by Louis Rawlins (louis@bonfireschool.com)
# Copyright 2016, Bonfire School, covered under GPLv3
#
# ##############################################################################
# READ ME FIRST
#
#!/usr/bin/env python
# San Francisco Public Library - Learn, Design and Build Software!
#
# Sample program created by Louis Rawlins (louis@bonfireschool.com)
# Copyright 2016, Bonfire School, covered under GPLv3
#
# Show gopher as a historical example.
# These were faster systems, Merlin, etc
# Time and fashion changes how we look for things
#!/usr/bin/env python
# San Francisco Public Library - Learn, Design and Build Software!
#
# Sample program created by Louis Rawlins (louis@bonfireschool.com)
# Copyright 2016, Bonfire School, covered under GPLv3
#
# Show gopher as a historical example.
# These were faster systems, Merlin, etc
# Time and fashion changes how we look for things
@louisrawlins
louisrawlins / restore_file_from_chrome_cache
Last active November 27, 2016 23:13
Restore cache files from hex generated by Chrome (chrome://cache)
#!/bin/sh
#
# Just run this command (usage notes below):
pbpaste | xxd -r - FILENAME.EXT
# Script: restore_file_from_chrome_cache
# Author: Louis Rawlins (email@louisrawlins.com)
# Date: November 17, 2016 at 4:35:39 PM PST
# Description: Restore cache files from hex generated by Chrome (chrome://cache)
@louisrawlins
louisrawlins / local.unison.plist
Last active November 18, 2016 00:58 — forked from p120ph37/gdrive-dropbox-sync.plist
A launchd plist file to sync Dropbox and Google Drive folders with unison when changed (see: http://launchd.info/)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key><string>local.unison</string>
<key>ProgramArguments</key>
<array>
<string>/bin/sh</string><string>-c</string>
<string>/usr/local/bin/unison \
-times \