Skip to content

Instantly share code, notes, and snippets.

View schoeffman's full-sized avatar

Peter Schoeffman schoeffman

View GitHub Profile
@schoeffman
schoeffman / yeoman-install.sh
Created April 24, 2015 21:33
Script for getting the basics to work for yeoman on Ubuntu 14.04
#!/bin/bash
set -e
sudo apt-get update
#sudo apt-get -y install build-essential libssl-dev git
#sudo apt-get -y install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
#sudo apt-get -y install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
sudo apt-get -y install build-essential libssl-dev git git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
@schoeffman
schoeffman / pizza-slack-hack.js
Created April 2, 2015 14:11
Domino's and Slack
(function () {
var prevState = null;
function notify(state)
{
var n = new XMLHttpRequest();
n.open("POST", "https://slack.com/api/chat.postMessage?token=TOKEN-HERE&channel=%23test&text=" + state + "&username=Domino's%20Notify&icon_url=http%3A%2F%2Fcdn.marketplaceimages.windowsphone.com%2Fv8%2Fimages%2F81c41161-1148-4f50-bdda-dd681d2a4b1d%3FimageType%3Dws_icon_large&pretty=1");
n.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
n.send();
@schoeffman
schoeffman / initialize.sh
Last active August 29, 2015 14:18
For easy docker image script changes
#!/bin/bash
set -e
echo "=> Begin Initialize Script"
echo "=> Export NVM path"
export NVM_DIR="/usr/local/nvm"
echo "=> Load NVM"