Skip to content

Instantly share code, notes, and snippets.

View hepplerj's full-sized avatar
💭
building the history web

Jason Heppler hepplerj

💭
building the history web
View GitHub Profile
@hepplerj
hepplerj / iterate.sh
Last active December 28, 2015 15:39
A bash script that iterates through a directory of files and uses Omekadd to upload .yaml and .pdf files to Omeka.
#!/bin/bash
# Written by Jason A. Heppler
# Iterate through the base directory, find all .yaml files and .pdf files, and
# upload these files to Omeka. For use with Caleb McDaniel's Omekadd Python
# script: https://github.com/wcaleb/omekadd
#
# Last Modified: 2013-11-17
# The script assumes the .yaml and .pdf share the same filename, so the two can
@hepplerj
hepplerj / gist:4144382
Created November 25, 2012 17:16
Grabbing notes from PDFs
(*
Script courtesy of Walton Jones, modified slightly
http://drosophiliac.com/2012/09/an-academic-notetaking-workflow.html
Original script by John Sidiropoulos
http://www.organognosi.com/export-skim-notes-according-to-their-highlight-colors/
*)
@hepplerj
hepplerj / gist:4009954
Created November 4, 2012 03:10
Error with gitit
$ cabal install gitit
Resolving dependencies...
cabal: cannot configure happstack-server-7.1.0. It requires directory >=1.2
For the dependency on directory >=1.2 there are these packages:
directory-1.2.0.0 and directory-1.2.0.1. However none of them are available.
directory-1.2.0.0 was excluded because process-1.1.0.1 requires directory
==1.1.0.2
directory-1.2.0.0 was excluded because hpc-0.5.1.1 requires directory
==1.1.0.2
directory-1.2.0.0 was excluded because directory-1.1.0.2 was selected instead
@hepplerj
hepplerj / heppler-quix.txt
Created May 25, 2012 04:56
Jason's Quix file
@Searches
go https://duckduckgo.com/?q=%21%20%s Open first result (DuckDuckGo)
b https://duckduckgo.com/?q=%21%s Bang search (DuckDuckGo)
grep https://www.cueup.com/?q=%s&fq=1 Greplin
ss https://duckduckgo.com/site:%d%20%s Current site (DuckDuckGo)
jh https://duckduckgo.com/site:jasonheppler.org%20%s JasonHeppler.org (DuckDuckGo)
gh http://github.com/search?q=%s&type=Everything&repo=&langOverride=&start_value=1 Search GitHub (everything)
hints http://hints.macworld.com/search.php?query=%s&keyType=all&datestart=&dateend=&topic=0&type=stories&results=50&mode=search Search Mac OS X Hints
mu http://www.macupdate.com/find/mac/%s Search MacUpdate (Software)
jq http://api.jquery.com/?ns0=1&s=%s&go= Search jQuery API docs
@hepplerj
hepplerj / terminallaunch.scpt
Created February 1, 2011 21:56
AppleScript for launching multiple tabbed terminal sessions.
tell application "Terminal"
activate
tell application "System Events" to tell process "Terminal.app" to keystroke "t" using command down
do script "ssh [email protected]" in the last tab of window 1
tell application "System Events" to tell process "Terminal.app" to keystroke "t" using command down
do script "ssh [email protected]" in the last tab of window 1
tell application "System Events" to tell process "Terminal.app" to keystroke "t" using command down