This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cmd=$* | |
authorize() { | |
for host | |
do xhost | egrep -q "^INET6?:$host$" || xhost + $host | |
done | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ -z "$1" ]; then | |
cat <<-END_OF_HELP | |
wait_for | |
Usage: | |
wait_for FILE | |
Checks for existance of file repeatedly until it succeeds then it exits. File |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +erlendf is my blockchain ID. https://onename.com/erlendf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am erlend on github. | |
* I am erlend (https://keybase.io/erlend) on keybase. | |
* I have a public key whose fingerprint is 94B8 99E5 9932 0CF4 9FF0 7CBD A22E 6BAD 16B5 589A | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :db do | |
task :load_config do | |
ActiveRecord::Base.configurations = ActiveRecord::Tasks::DatabaseTasks.database_configuration || {} | |
ActiveRecord::Migrator.migrations_paths = ActiveRecord::Tasks::DatabaseTasks.migrations_paths | |
if defined?(ENGINE_PATH) && engine = Rails::Engine.find(ENGINE_PATH) | |
if engine.paths['db/migrate'].existent | |
ActiveRecord::Migrator.migrations_paths += engine.paths['db/migrate'].to_a | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler' | |
Bundler.setup :default | |
require 'sinatra/base' | |
require 'sprockets' | |
require './app' | |
map '/assets' do | |
environment = Sprockets::Environment.new | |
environment.append_path 'assets/javascripts' | |
environment.append_path 'assets/stylesheets' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |