Skip to content

Instantly share code, notes, and snippets.


graph TD; A-->B; A-->C; B-->D; C-->D;

View init.lua
require "window_management"
require "sleep_management"
-- spoon.SpoonInstall:andUse("ClipboardTool",
-- {
-- config = { show_in_menubar = false, },
-- hotkeys = { toggle_clipboard = { { "cmd", "shift" }, "v" } },
shageman /
Last active Sep 23, 2015
Setup for RMR 2015 #cbra workshop
git clone
chmod +x
shageman /
Last active Dec 2, 2015
Extraction of persistence engine out of ticketee sample app
#!/bin/bash --login
ensure() {
"$@" || exit 1
cd r4ia_examples/ticketee;
git checkout . && git clean -fd
shageman / CBRA Apps on Heroku
Last active Aug 29, 2015
Supporting non-root folders in Ruby Buildpack
View CBRA Apps on Heroku
I am trying to make the Ruby buildpack for a Rails application that does not have the app in the root folder. `git subtree` does not work, because code outside of the app folder is needed for the application.
Modified Ruby buildpack:
App to deploy:
2015-04-01T14:06:14.478874+00:00 heroku[api]: Deploy 4d4520e by
2015-04-01T14:06:14.478874+00:00 heroku[api]: Release v70 created by
shageman / admin_routes.rb
Created Jan 27, 2015
Admin routes using components #cobra #cbra (with admin per engine, unique engine paths, and meta admin engine)
View admin_routes.rb
mount Settings::Engine => "/settings"
mount Profile::Engine => "/profile"
mount MetaAdmin::Engine => "/admin"
# admin_settings/config/routes.rb
Settings::Engine.routes.draw do
resources :admin
#add other settings routes
View gist:edfe235aad45992bad9b
### Keybase proof
I hereby claim:
* I am shageman on github.
* I am shageman ( on keybase.
* I have a public key whose fingerprint is 437F 3BB7 1B58 42EA 4683 D133 2810 04E8 B35D 3D8A
To claim this, I am signing this object:
shageman / setup
Last active Aug 29, 2015
owncloud setup
View setup
# Run by hand:
# apt-get update
# apt-get upgrade
# apt-get install git
apt-get install postgresql postgresql-contrib
#set postgres user password:
sudo apt-key add - < Release.key
shageman / resources
Created Apr 23, 2014
#cbra resources from @shageman #railsconf talk
View resources
#Rails sample app
# Pivotal Labs blog posts on #cbra
#Past presentations by Ben Smith and me(mostly on this topic)
View Sort the Ruby files in your project by number of has_many
#Sort the Ruby files in your project by number of has_many
ack " has_many " -c | awk -F ":" '{print $2,$1}' | grep -v "0" | sort -rn