Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am dhornbein on github.
  • I am dhornbein (https://keybase.io/dhornbein) on keybase.
  • I have a public key ASDt54YGlsaGtgjn02-lgl5LJEbMluzOMFzLwG7Hq_zB1go

To claim this, I am signing this object:

@dhornbein
dhornbein / make-git-deploy
Created December 8, 2017 03:56
A bash script for your server which creates git repos that you can deploy code to
#!/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; }
a='N'
while [[ $a == 'N' || $a == 'n' ]]
do
# Collect repo name
@dhornbein
dhornbein / Communication.md
Created November 11, 2016 09:17
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.

[Reddit.com](https:/

@dhornbein
dhornbein / shoot.sh
Last active May 15, 2016 11:49
Bash script that captures a screenshot, saves screenshot, optionally uploads it to Imgur.com, and injects URL to clipboard and meta data of saved file.
#!/bin/bash
#
# By Drew Hornbein @ http://dhornbein.com
#
# Modified from:https://github.com/Sirupsen/sirupsen.github.com/blob/master/static/misc/shoot
# By Sirupsen @ http://sirupsen.dk
#
# 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
dhornbein / index.html
Created September 11, 2013 14:15
A concept for the Phenological clock web app. This page pulls JSON from a Google Spreadsheet then renders it with canvas
<!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]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<title>Phenological Clock</title>
@dhornbein
dhornbein / batch_resize
Created July 4, 2013 00:43
This script re-sizes and optionally renames files in the current folder using the Imagemagick convert program.
#!/usr/bin/env bash
#
# By Drew Hornbein @ http://dhornbein.com
#
# 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
dhornbein / wp_install.sh
Last active December 18, 2015 01:59 — forked from chrisjlee/wp.sh
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
dhornbein / important_links.md
Created December 1, 2012 04:59
NYTR_answers.md
@dhornbein
dhornbein / gist:4157172
Created November 27, 2012 21:30
OccupySandy - All-Project Meeting - 11/27/12

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

Locations

  • Coney Island
  • Sheepshead Bay
  • Rockaways
  • Staten Island
  • Red Hook
  • Jacobi
  • Clinton
@dhornbein
dhornbein / index.html
Created October 12, 2012 06:29
Simple checkbox label turns into rocker switch. Added a little light so you know when it's on
<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>
</div>