class Functor f where
fmap :: (a -> b) -> f a -> fb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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! | |
# | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"undef" : true | |
, "esnext" : true | |
, "laxcomma": true | |
, "globals" : { | |
"global" : false | |
, "process" : false | |
, "console" : false | |
, "Buffer" : false | |
, "require" : false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git fetch && git checkout development && git rebase -p origin/development && git checkout -b $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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/'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Command ( | |
execCommand | |
) where | |
import Control.Error | |
import Control.Monad | |
import Control.Monad.Trans | |
import System.IO | |
import System.Process | |
import System.Exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
module Bitbucket ( | |
parseHook | |
) where | |
import Control.Applicative ((<$>)) | |
import Control.Lens | |
import Data.Aeson.Lens | |
import Data.List (nub) |
OlderNewer