Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am dhornbein on github.
  • I am dhornbein ( on keybase.
  • I have a public key ASDt54YGlsaGtgjn02-lgl5LJEbMluzOMFzLwG7Hq_zB1go

To claim this, I am signing this object:

dhornbein / make-git-deploy
Created Dec 8, 2017
A bash script for your server which creates git repos that you can deploy code to
View make-git-deploy
#!/usr/bin/env bash
# creates a git repo on a remote server to which to deploy to!
# Check for git first
type git >/dev/null 2>&1 || { echo >&2 "I require git but it's not installed. Aborting."; exit 1; }
while [[ $a == 'N' || $a == 'n' ]]
# Collect repo name
dhornbein /
Created Nov 11, 2016
Ways to organize online

So you've started a Facebook group and it's got 15k+ people who are rip roaring ready to organize. Quickly you'll notice that Facebook sucks as a platform for organizing. This is because it is a platform designed to mine data about you in an effort to increase your engagement with advertising partners. It is a crappy digital technology for organizing (great for mobilizing though!).

In this document I'll go over what I think might be some good platforms. I did tech organizing in #OCCUPAYWALLSTREET, Occupy Sandy, and have learned some lessons. I'm no authority and these are my most humble suggestions. That said, here's the core take away before I cover solutions.

We need cultural technology for making group decisions, holding safe space, promoting historically marginilaed voices, and keeping digital spaces from turning into spammy unsafe echo chambers run by people who look like me. There is no magic digital tech that will do that. To put it another way, every platform sucks.


dhornbein / index.html
Created Sep 11, 2013
A concept for the Phenological clock web app. This page pulls JSON from a Google Spreadsheet then renders it with canvas
View index.html
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<script src="//"></script>
<title>Phenological Clock</title>
dhornbein / batch_resize
Created Jul 4, 2013
This script re-sizes and optionally renames files in the current folder using the Imagemagick convert program.
View batch_resize
#!/usr/bin/env bash
# By Drew Hornbein @
# Description: The following script will take image files from
# the current folder and run the Imagemagick convert function.
# A log.txt file will be created in the new folder
# Dependencies:
# imagemagick - we use the convert program
dhornbein /
Last active Dec 18, 2015 — forked from chrisjlee/
Install latest wordpress to current directory
#!/usr/bin/env bash
echo "Database Name: "
read -e DBNAME
echo "Database User: "
read -e DBUSER
echo "Database Password: "
read -e DBPASS
echo -e "
DB Name: '$DBNAME'
dhornbein /
Last active May 15, 2016
Bash script that captures a screenshot, saves screenshot, optionally uploads it to, and injects URL to clipboard and meta data of saved file.
# By Drew Hornbein @
# Modified from:
# By Sirupsen @
# Description: Very simple script to make you
# select a region of your screen, which will be captured, saved, and
# then uploaded. The URL will then be injected into your clipboard.
dhornbein / gist:4157172
Created Nov 27, 2012
OccupySandy - All-Project Meeting - 11/27/12
View gist:4157172

OccupySandy - All-Project Meeting - 11/27/12


  • Coney Island
  • Sheepshead Bay
  • Rockaways
  • Staten Island
  • Red Hook
  • Jacobi
  • Clinton
dhornbein / index.html
Created Oct 12, 2012
Simple checkbox label turns into rocker switch. Added a little light so you know when it's on
View index.html
<div action="" class="m-rocker">
<input id="switch" type="checkbox"><label for="switch">Switch</label>
<input id="switch2" type="checkbox"><label for="switch2">Switch</label>
<input id="switch3" type="checkbox"><label for="switch3">Switch</label>
You can’t perform that action at this time.