Skip to content

Instantly share code, notes, and snippets.

Jay Pfaffman pfaffman

Block or report user

Report or block pfaffman

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
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
body {
font: 10px sans-serif;
.bar rect {
fill: steelblue;

Switch between stacked and grouped layouts using sequenced transitions! Animations preserve object constancy and allow the user to follow the data across views. Animation design by Heer and Robertson. Colors and data generation inspired by Byron and Wattenberg.

pfaffman / gist:6383973
Created Aug 29, 2013
Start critter corral
View gist:6383973
# Upstart script for a play application that binds to an unprivileged user.
# put this into a file like /etc/init/play.conf
# This could be the foundation for pushing play apps to the server using something like git-deploy
# By calling service play stop in the restart command and play-start in the restart command.
# Usage:
# start play
# stop play
# restart play
View fixnames
#!/usr/bin/env bash
# fixnames
# Jay Pfaffman <>
# Available from
if [ $# -lt 1 ]
echo "Usage " $0 files
echo " Replaces names (or any words) in files passed on the command line."
echo " Edit below to change what names get replaced."
### Setup a wifi Access Point for Fall 2013 critter corral study
# based on from
# unlike the above script, this configures hotspot to run at boot
### make sure that this script is executed as root
if [ $(whoami) != 'root' ]
echo "
This script should be executed as root or with sudo:
sudo $0
# install stuff needed to be a server and wifi hotspot
# Make any address resolve to
# Jay Pfaffman <>
# This should be used on a stand-alone network where access to the
# actual server is unavailable.
if [ ! -f /etc/init.d/bind9 ]
sudo apt-get -y --force-yes install bind9
# Get data from connected server identified by the current WIFI SSID
if [ -f /sbin/iwconfig ]
# it's ubuntu (or, maybe debian)
HOST=`iwconfig wlan0 | grep ESSID | sed 's/.*ESSID:\"\(.*\)\"/\1/'`
# oops.
echo Mac solution is not implemented
# networksetup -getairportnetwork en1 | awk -F": " '{print $2}'

Set up Discourse on GoDaddy in under 30 minutes with zero knowledge of Rails or Linux shell using our [Discourse Docker image][dd]. We recommend [DigitalOcean][do], but these steps have been modified to describe setting up a [GoDaddy][gd] cloud image and prepare it for using the [standard install guide][install].

Create New Cloud Server

[Sign up for a GoDaddy Cloud server][gd], update billing info, then create your new server.

  • The hostname you choose does not matter. In the next section you will assign your domain name to this server.

  • Choose a username and password (or SSH key if you have one)

You can’t perform that action at this time.