Skip to content

Instantly share code, notes, and snippets.

Andrew Faria andrewfaria

Block or report user

Report or block andrewfaria

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View selenium-standalone-setup.sh
#!/bin/sh
# Selenium: http://www.chrisle.me/2013/08/running-headless-selenium-with-chrome/
# Fonts: http://alex.nederlof.com/blog/2012/11/19/installing-selenium-with-jenkins-on-ubuntu/
# Node: ppa:chris-lea/node.js
set -e
if [ -e /.installed ]; then
echo 'Already installed.'
@andrewfaria
andrewfaria / forever-watch-restart.js
Created Apr 3, 2014
Beat the pesky node forever -w flag and only restart one file with this
View forever-watch-restart.js
var fs = require('fs'),
exec = require('child_process').exec,
child,
restarting = false
function watch() {
restarting = false
fs.watch('./server.js', function(e, file) {
console.log(e + ' : ' + file)
restart()
You can’t perform that action at this time.