This file contains hidden or 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 ruby | |
argv = ARGV | |
# handle help screen | |
if argv.any? { |arg| arg == '-h' || arg == '--help' } | |
$stderr.puts <<~HELP | |
Usage: routes [--load] [--reload] [filter ...] | |
Runs `bin/rake routes` and caches the result so that you don't have to wait |
This file contains hidden or 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
"============================================================ | |
"== Vundle Plugin Manager | |
"============================================================ | |
"found here: https://github.com/VundleVim/Vundle.vim | |
set rtp+=~/.config/nvim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
"============================================================ | |
"== Plugins: Sensible Defaults |
This file contains hidden or 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
after "deploy:assets:precompile", "download_asset_manifest" | |
after "download_asset_manifest", "upload_asset_manifest" | |
desc "Download the compiled asset manifest .json file" | |
task :download_asset_manifest, roles: :admin do | |
set(:manifest_json, capture("ls #{ release_path }/public/assets/manifest*json").strip.split("/").last) | |
download "#{ release_path }/public/assets/#{ manifest_json }", "/tmp/#{ manifest_json }" | |
end | |
desc "Upload the asset manifest file" |
This file contains hidden or 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/bash | |
set -exo pipefail | |
BUILD_ENV=$1 | |
if [ `uname` == 'Darwin' ]; then | |
OSX=1 | |
JSCOMPRESSOR="yuicompressor --type js" | |
else | |
OSX= |
This file contains hidden or 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
# Motivation: | |
# Wanted a more solid way to test validation resulted in correct errors | |
# other than matching strings; | |
# Decoupling the very notion of error from message | |
# | |
# Sideeffects: | |
# - Conventional way to namespace error translation by actual path | |
module Translatable |
This file contains hidden or 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
--colour | |
-I app |
This file contains hidden or 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 | |
set -u | |
set -e | |
# Example init script, this can be used with nginx, too, | |
# since nginx and unicorn accept the same signals | |
# Feel free to change any of the following variables for your app: | |
APP_ROOT=/k/app_name/current | |
PID=/var/run/unicorn/unicorn.pid | |
ENV=production |