Skip to content

Instantly share code, notes, and snippets.

Drew dhornbein

Block or report user

Report or block dhornbein

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dhornbein
dhornbein / place_holder_img.sh
Created Oct 10, 2012
Shell script that takes two arguments a size and name to produce a placeholder image
View place_holder_img.sh
#!/bin/bash
# This script will tcreate a place holder image
if [ -z "$1" ]
then
echo "Please enter the size you wish to make (ex: 120x300) then press [ENTER]"
read size
else
@dhornbein
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>
</div>
@dhornbein
dhornbein / gist:4157172
Created Nov 27, 2012
OccupySandy - All-Project Meeting - 11/27/12
View gist:4157172

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

Locations

  • Coney Island
  • Sheepshead Bay
  • Rockaways
  • Staten Island
  • Red Hook
  • Jacobi
  • Clinton
View important_links.md
@dhornbein
dhornbein / wp_install.sh
Last active Dec 18, 2015 — forked from chrisjlee/wp.sh
Install latest wordpress to current directory
View wp_install.sh
#!/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 / 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 @ 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 / 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]-->
<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 / shoot.sh
Last active May 15, 2016
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.
View shoot.sh
#!/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 / Communication.md
Created Nov 11, 2016
Ways to organize online
View Communication.md

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 / 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; }
a='N'
while [[ $a == 'N' || $a == 'n' ]]
do
# Collect repo name
You can’t perform that action at this time.