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
last_revision = run "cat #{current_path}/REVISION" | |
assets_modified = run "git diff --name-only #{last_revision} | grep '/assets/' | wc -l" | |
if assets_modified.output.to_i > 0 | |
info "#{assets_modified} asset files changed detected. Compiling assets" | |
`cd #{release_path} && PATH=#{release_path}/ey_bundler_binstubs:$PATH #{environment} rake assets:precompile RAILS_GROUPS=assets"` | |
else | |
info "No asset changes detected. Copying assets from previous" | |
current = shared_path + '/assets' |
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
module FactoryGirl | |
module Strategy | |
class Cache | |
def association(runner) | |
runner.run(:cache) | |
end | |
def result(evaluation) | |
r = Repository.instance.read(evaluation) | |
if r |
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
(function () { | |
var msf_script = document.createElement('script'); | |
msf_script.type = 'text/javascript'; | |
msf_script.src = | |
('https:' == document.location.protocol ? 'https://' : 'http://') + | |
'cdn.mouseflow.com/projects/ba141427-dfd0-4d3a-acbe-37df41b6c8e0.js'; | |
var s = document.getElementsByTagName('script')[0]; | |
s.parentNode.insertBefore(msf_script, s); | |
})(); |
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 | |
if [[ `git symbolic-ref HEAD` == "refs/heads/master" ]] | |
then | |
if [[ ! -f /tmp/master_commit ]] | |
then | |
echo "*************************" | |
echo "CANNOT COMMIT TO MASTER!" | |
echo "To override this behavior" | |
echo "touch /tmp/master_commit" |
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
[user] | |
name = YOUR_NAME | |
email = YOU_EMAIL | |
[credential] | |
helper = osxkeychain | |
[core] | |
excludesfile = /Users/[YOURNAME]/.gitignore_global | |
quotepath = false | |
[help] | |
autocorrect = 1 |
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
require 'net/http' | |
require 'uri' | |
class Admin::MouseflowController < ApplicationController | |
#these are optional if you using authentication and ssl | |
skip_before_filter :authenticate_login! | |
def ssl_required? | |
false |
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 python | |
import os,sys | |
print os.path.realpath(sys.argv[1]) |
NewerOlder