Skip to content

Instantly share code, notes, and snippets.

View Elzair's full-sized avatar

Philip Woods Elzair

View GitHub Profile
@Elzair
Elzair / jitsu-error-01.txt
Created July 12, 2013 18:07
Error output from **jitsu deploy**
info: Welcome to Nodejitsu Elzair
info: jitsu v0.12.11, node v0.9.9
info: It worked if it ends with Nodejitsu ok
warn: You are using unstable version of node.js. You may experience problems.
info: Executing command deploy
info: Analyzing application dependencies in node app.js
info: Creating snapshot 0.6.1
info Uploading: [== ] 11%error: Error running command deploy
error: socket hang up
info: The nodejitsu api reset the connection
#!/bin/sh
#
# Creates a SmartOS VM in VirtualBox (assuming you alread have VirtualBox installed)
#
# This script will:
# * Download the latest live ISO image of SmartOS
# * Create a VirtualBox VM, or update an existing VM with the latest ISO
# * Configure the VM with a zones disk, and boot it!
#
#
@Elzair
Elzair / .jshintrc
Last active August 29, 2015 14:02
My Default .jshintrc file
{
"undef" : true
, "esnext" : true
, "laxcomma": true
, "globals" : {
"global" : false
, "process" : false
, "console" : false
, "Buffer" : false
, "require" : false
@Elzair
Elzair / .gitignore
Last active August 29, 2015 14:02
update_angular_modules script
node_modules/
@Elzair
Elzair / git-create-feature
Created July 30, 2014 19:56
Git Process Scripts
#!/bin/sh
git fetch && git checkout development && git rebase -p origin/development && git checkout -b $1
@Elzair
Elzair / update_angular_modules
Last active August 29, 2015 14:05
Update Angular Modules
#!/usr/local/bin/node --harmony
var co = require('co')
, fs = require('co-fs')
, request = require('request')
, spawn = require('co-child-process')
, thunkify = require('thunkify')
, util = require('util')
;
var base_dir = process.env['HOME'] + '/Development/Nodejs/';
@Elzair
Elzair / remove-unnamed-docker-images.sh
Created December 1, 2014 15:50
Remove Unused Docker Images
#!/bin/sh
# This script removes docker images with a repository tag of <none>.
for i in $(sudo docker images | awk '{print $1,$3;}' | grep '<none>' | awk '{print $2;}')
do
sudo docker rmi $i
done
@Elzair
Elzair / install-lanaci-ubuntu.sh
Last active August 29, 2015 14:13
install-lanaci-ubuntu
#!/bin/sh
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install -y build-essential nodejs
sudo npm install -g n
sudo n latest
n latest
curl -sSL https://get.docker.com/ubuntu/ | sudo sh -
cd /usr/local
curl -sL https://raw.githubusercontent.com/RadioSystems/lanaci/master/init/install.sh | sudo sh -
@Elzair
Elzair / haskell-notes.org
Last active August 29, 2015 14:13
Haskell Notes

Functors

Definition

class Functor f where
  fmap :: (a -> b) -> f a -> fb

Laws

@Elzair
Elzair / shell.hs
Last active August 29, 2015 14:13
Haskell Shell Processing
module Command (
execCommand
) where
import Control.Error
import Control.Monad
import Control.Monad.Trans
import System.IO
import System.Process
import System.Exit