Skip to content

Instantly share code, notes, and snippets.

View simonexmachina's full-sized avatar

Simon Wade simonexmachina

  • Melbourne, Australia
View GitHub Profile
@simonexmachina
simonexmachina / building-install.sh
Created June 4, 2012 10:34 — forked from alexhayes/building-install
Install rsync and php4-domxml on old Debian
#!/bin/bash
V30=`grep "3.0" /etc/issue`
V31=`grep "3.1" /etc/issue`
V4=`grep "4." /etc/issue`
V5=`grep "5." /etc/issue`
V6=`grep "6." /etc/issue`
UPDATE_SOURCES=1
if [ "$V30" != "" ]; then
@simonexmachina
simonexmachina / building-install-check.sh
Created June 4, 2012 11:38
Test that rsync and php4-domxml are working on old Debian
#!/bin/bash
# Test that domxml is installed
php -r "domxml_version();" > /dev/null 2>&1
[ $? -eq 0 ] || echo -e "\a#### Error: php4-domxml not loaded ####"
# Test that rsync is installed
rsync -h > /dev/null 2>&1
[ $? -eq 0 ] || echo -e "\a#### Error: rsync not installed ####"
@simonexmachina
simonexmachina / shorewall.sh
Created July 2, 2012 07:40
Install Shorewall
#!/bin/bash
sshPort="40000"
shellUser=`whoami`
export homeDir="/home/$shellUser"
export baseDir="$homeDir/server-setup"
addToRepo() {
file=$1
@simonexmachina
simonexmachina / gist:3635850
Created September 5, 2012 12:24
Hello world
Hello. World!
@simonexmachina
simonexmachina / output.log
Created September 17, 2013 21:06
Trying to get ember-app-kit to compile incrementally. My comments are prefixed with '###'
$ grunt server
Running "clean:build" (clean) task
Cleaning "tmp"...OK
Running "lock" task
Running "concurrent:debug" (concurrent) task
Running "emberTemplates:debug" (emberTemplates) task
File "tmp/public/assets/templates.js" created.
@simonexmachina
simonexmachina / upstart.conf
Last active December 26, 2015 22:59
upstart.conf for Ghost.js, or any other Node.js program
#!upstart
#
# An example upstart script for running a Node.js process as a service
# using Forever as the process monitor. For more configuration options
# associated with Forever, see: https://github.com/nodejitsu/forever
#
# You will need to set the environment variables noted below to conform to
# your use case, and should change the description.
#
description "Example upstart script for a Node.js process"
@simonexmachina
simonexmachina / Gruntfile.js
Last active December 29, 2015 01:39
EAK Gruntfile
module.exports = function(grunt) {
// To support Coffeescript, SASS, LESS and others, just install
// the appropriate grunt package and it will be automatically included
// in the build process:
//
// * for Coffeescript, run `npm install --save-dev grunt-contrib-coffee`
//
// * for SASS (SCSS only), run `npm install --save-dev grunt-sass`
// * for SCSS/SASS support (may be slower), run
// `npm install --save-dev grunt-contrib-sass`
@simonexmachina
simonexmachina / instructions.md
Created January 9, 2014 02:15
Node.js install instructions for Ubuntu 12
sudo apt-get update
sudo apt-get install git nodejs npm ruby1.9.1 -y
~~sudo ln -s nodejs /usr/bin/node~~
sudo npm config set registry http://registry.npmjs.org/
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
sudo npm install npm grunt-cli forever -g
sudo gem install bundler
@simonexmachina
simonexmachina / login_test.js
Created January 23, 2014 04:47
moduleFor() usage
import api from 'mn/utils/api';
import {moduleFor, test} from 'mn/tests/helpers/module_for';
var App, sandbox;
moduleFor('controller:login', 'Acceptances - Login', {
setup: function() {
App = startApp();
sandbox = sinon.sandbox.create();
},
info: Welcome to Nodejitsu aexmachina
info: jitsu v0.13.9, node v0.10.24
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node index.js
info: Creating snapshot 0.0.1-1
info Uploading: [=============================] 100%
error: Error running command deploy
error: npm exited with code 1
error: npm installation failed, please double check your package.json dependencies