Skip to content

Instantly share code, notes, and snippets.

View aaronrussell's full-sized avatar

Aaron Russell aaronrussell

View GitHub Profile
@aaronrussell
aaronrussell / post-receive
Created April 15, 2015 08:40
Python gitolite post receive hook
#!/usr/bin/env python
import sys
import urllib, urllib2
import re
import os
import subprocess
from datetime import datetime
import simplejson as json
@aaronrussell
aaronrussell / 1.terminal.sh
Last active August 29, 2015 14:27
Refresh embeds on discourse
cd /var/discourse
sudo ./launcher enter app
cd /var/www/discourse
rails c
@aaronrussell
aaronrussell / compile.rb
Created October 28, 2015 15:37 — forked from havenwood/compile.rb
Little script using mruby to compile to self-executable
#!/usr/bin/env ruby
class Compiler
def initialize
@mruby_dir = '/Users/shannonskipper/.rubies/mruby'
sanity_check_argv
@file = ARGV.first.sub /.rb$/, ''
end
def run
@aaronrussell
aaronrussell / Gemfile
Last active February 14, 2017 21:08
Authenticate PushType with Spree users and remove PushType users from admin UI
# Gemfile
# Selectively only require the parts of PushType we need
gem 'push_type_core', '~> 0.10.2'
gem 'push_type_api', '~> 0.10.2'
gem 'push_type_admin', '~> 0.10.2'