Skip to content

Instantly share code, notes, and snippets.

View dougc84's full-sized avatar

Doug Clark dougc84

View GitHub Profile
@dougc84
dougc84 / .bash_profile
Created October 9, 2012 15:21
Command Prompt Fun
# terminal colors
export CLICOLOR=1
# vars
# ... omitted ...
# aliases
alias l='ls -lashF' # ' --color=always'
alias be='bundle exec'
@dougc84
dougc84 / awesome_print.rb
Created May 9, 2012 20:35
AwesomePrint initializer aliasing
# The following snippet handles any calls to ap or awesome_print hanging out in your code,
# which can be particularly troublesome in a production environment where awesome_print isn't
# included in your Gemfile.
# If you have any inline "ap" or "awesome_print" calls, they will be aliased to
# puts (not using the alias method, that wasn't optimal). The output will also be logged at
# info level (feel free to change this depending on your needs) with the calling file and
# line number so you can find the offending calls.
# You can grep through your log files for "[ AP called from " to find any calls to ap.