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
git-assume-unchangeable () { | |
git update-index --assume-unchanged "$@" | |
} | |
git-assume-changeable () { | |
git update-index --no-assume-unchanged "$@" | |
} | |
git-show-unchangeable () { | |
git ls-files -v | grep -e "^[hsmrck]" |
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 jruby | |
require_relative '../lib/schrute' | |
require 'csv' | |
require 'thread_safe' | |
java_import java.util.concurrent.Callable | |
java_import java.util.concurrent.Executors | |
java_import java.util.concurrent.FutureTask |
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
{"error"=>{"name"=>"Poltergeist.JavascriptError", "args"=>[[{"message"=>"TypeError: 'undefined' is not an object (evaluating 'jqXHR.responseJSON.join')", "stack"=>"TypeError: 'undefined' is not an object (evaluating 'jqXHR.responseJSON.join') | |
at http://127.0.0.1:51206/assets/application.js:12369 | |
at http://127.0.0.1:51206/assets/application.js:3120 | |
at http://127.0.0.1:51206/assets/application.js:3232 | |
at http://127.0.0.1:51206/assets/application.js:9278 in done | |
at http://127.0.0.1:51206/assets/application.js:9686"}]]}} |
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
VCR.configure do |c| | |
c.cassette_library_dir = 'spec/fixtures/vcr_cassettes' | |
c.hook_into :webmock | |
c.ignore_localhost = true | |
c.default_cassette_options = { record: :new_episodes } | |
c.allow_http_connections_when_no_cassette = false | |
c.configure_rspec_metadata! | |
c.ignore_hosts 'codeclimate.com' |
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
2014-08-05T19:19:50.312518+00:00 app[web.1]: URL: http://errbit.pre-history.com/locate/53e12e5589c5c39eff000392 | |
2014-08-05T19:19:50.317455+00:00 app[web.1]: | |
2014-08-05T19:19:50.317459+00:00 app[web.1]: ActionView::Template::Error (Unexpected token: operator (<) (line: 23285, col: 0, pos: 793884) | |
2014-08-05T19:19:50.317461+00:00 app[web.1]: | |
2014-08-05T19:19:50.317463+00:00 app[web.1]: Error | |
2014-08-05T19:19:50.317466+00:00 app[web.1]: at new JS_Parse_Error (/tmp/execjs20140805-21-o7l23cjs:2357:10623) | |
2014-08-05T19:19:50.317468+00:00 app[web.1]: at js_error (/tmp/execjs20140805-21-o7l23cjs:2357:10842) | |
2014-08-05T19:19:50.317470+00:00 app[web.1]: at croak (/tmp/execjs20140805-21-o7l23cjs:2357:19067) | |
2014-08-05T19:19:50.317473+00:00 app[web.1]: at token_error (/tmp/execjs20140805-21-o7l23cjs:2357:19204) | |
2014-08-05T19:19:50.317475+00:00 app[web.1]: at unexpected (/tmp/execjs20140805-21-o7l23cjs:2357:19292) |
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
# | |
# This is a recommended settings if you use the `script/ide` Tmux configuration Coderwall development | |
# | |
# Custom Vagrant Settings [Example] | |
# | |
# This file allows the override of Vagrant settings. | |
# In order to use, create a copy named vagrant.yml | |
# |
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
erver { | |
listen 80; | |
server_name ugtastic.com; | |
return 301 http://www.ugtastic.com$request_uri; | |
} | |
server { | |
listen 80; | |
# listen 443 default ssl; |
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 'pp' | |
require 'json' | |
s = "{:exit_url=>\"null\", :exit_target_type=>\"left\", :furthest_scrolled=>\"locations\", :time_spent=>\"543210\", :user_id=>\"123456\", :visited_at=>789101112, :user=>nil}" | |
pp JSON.parse("{" + s.gsub(/^{|}$/, '').split(', ').map { |pair| pair.split('=>') }.map {|k, v| [k.gsub(/^:(\w*)/, '"\1"'), v == 'nil' ? "null" : v].join(": ") }.join(", ") + "}") | |
=> {"exit_url"=>"null", "exit_target_type"=>"left", "furthest_scrolled"=>"locations", "time_spent"=>"543210", "user_id"=>"123456", "visited_at"=>789101112, "user"=>nil} | |
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
# checks (stolen from zshuery) | |
if [[ $(uname) = 'Linux' ]]; then | |
IS_LINUX=1 | |
fi | |
if [[ $(uname) = 'Darwin' ]]; then | |
IS_MAC=1 | |
fi | |
if [[ -x `which brew` ]]; then |
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
echo "source \$HOME/upcity/devenv/bin/host-functions.sh" >> "$HOME/.`basename "${SHELL}"`rc" | |
source $HOME/.`basename "${SHELL}"`rc |