Skip to content

Instantly share code, notes, and snippets.

View Foxandxss's full-sized avatar

Jesús Rodríguez Foxandxss

View GitHub Profile
@Foxandxss
Foxandxss / post-receive
Created January 26, 2014 12:30
My Lineman post-receive hook
#!/bin/sh
read oldrev newrev refname
LOGFILE=./post-receive.log
DEPLOYDIR=/var/www/lineman/project
echo -e "Received Push Request a $( date +%F )" >> $LOGFILE
echo " - Old SHA: $oldrev New SHA: $newrev Branch Name: $refname" >> $LOGFILE
serpIQ.factory('UserAccount', ['$resource', '$timeout', function($resource, $timeout) {
var userResource = $resource('/users/account', {}, {});
var accountInfo = {};
(function pollStatus() {
userResource.get({}, function(response){
accountInfo.foo = {
plan: response.plan,
@Foxandxss
Foxandxss / default
Created September 15, 2012 12:11
Thin init.d script
RAILS_ENV=production
RAILS_ROOT=/srv/http/ruby/thin
CMD="/srv/http/.rvm/gems/ruby-1.9.3-p194/bin/thin start -C current/config/thin.yml"