This file contains hidden or 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 | |
# Install coffeescript cli | |
npm -g install decaffeinate | |
# Convert all coffeescript files to javascript | |
find . -name "*.coffee" -exec decaffeinate --use-cs2 --disable-suggestion-comment {} \; | |
# Optionally delete original coffee files | |
find . -name "*.coffee" -exec rm {} \; |
This file contains hidden or 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/bin/env ruby | |
require 'colored' | |
require 'rest-client' | |
require 'yaml' | |
require 'pathname' | |
sensors = [ | |
{ | |
name: "SNS01", | |
token: "Y7OQ54T64m3DJtFG", |
This file contains hidden or 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/bash | |
# Installs RBenv for production mode with passenger | |
rbenv_dir=/usr/local/lib/rbenv | |
profile_init=/etc/profile.d/rbenv.sh | |
# Install packages | |
apt-get install git build-essential apache2 openssl libcurl4-openssl-dev apache2-prefork-dev zlib1g zlib1g-dev | |
# Install rbenv | |
mkdir -p ${rbenv_dir} |