Skip to content

Instantly share code, notes, and snippets.

Brad Fults h3h

Block or report user

Report or block h3h

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
h3h / .gitconfig
Created Jun 4, 2012
My .gitconfig
View .gitconfig
name = Brad Fults
email =
amend = commit --amend
co = checkout
st = status
cp = cherry-pick
# edit config (global, local)
h3h / .bash_profile
Created Jun 4, 2012
My Git Aliases
View .bash_profile
# awesome git prompt
export GIT_PS1_SHOWUPSTREAM="auto"
export PS1="${WHITE}\$(date +%H:%M) ${CYAN}\w ${RED}\$(~/.rvm/bin/rvm-prompt v)${GREEN}\$(__git_ps1)${WHITE}\$${RESET} "
export TERM="xterm-256color"
# scm stuff
alias gp="git pull"
alias gpu="git push"
h3h / rake.log
Created Sep 21, 2012
Rails error with database config
View rake.log
$ rake db:load_config
** Invoke db:load_config (first_time)
** Execute db:load_config
rake aborted!
(<unknown>): did not find expected key while parsing a block mapping at line 1 column 1
/Users/bfults/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:203:in `parse'
/Users/bfults/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'
/Users/bfults/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:151:in `parse'
/Users/bfults/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:127:in `load'
/Users/bfults/.rvm/gems/ruby-1.9.3-p194@uncommon/gems/railties-3.2.8/lib/rails/application/configuration.rb:115:in `database_configuration'
h3h / gist:4437224
Last active Mar 19, 2018
My thoughts on Open Allocation, from Michael O. Church.
View gist:4437224

Original Post

Evaluating Team Members

If people want to move, and the leads of those projects deem them qualified, there’s no reason not to allow this.

Deeming someone qualified is a pretty nuanced and difficult process. I wouldn’t expect all or even most temporary tech leads to get it right (or even be close) for a long time.

h3h /
Last active Dec 14, 2015
Personal user stylesheet to get rid of focus outlines on non-form elements.

My personal user stylesheet to get rid of focus outlines on non-form elements because I don't personally need them for accessibility.

Don't ever do this in your site's stylesheet because you're putting disabled users at a disadvantage. Do put this in your own user stylesheet if you hate the focus outlines in Gmail, Google Groups and countless other web apps.

See also:

For Chrome on Mac, this goes in ~/Library/Application Support/Google/Chrome/Default/User StyleSheets/Custom.css

h3h /
Last active Dec 17, 2015
Kicking the Tires

Modifying Programs

When modifying a program, or when reviewing a modification of a program, you will want to consider at least the following:

  1. Tests
  • Is the modification tested?
  • Can you prove that the tests cover both the pre-modification and post-modification states of the program correctly? Do it.
  1. Interface
  • Does the modification change the interface of the code?
  • If so, are all possible callers prepared for the change?
h3h /
Last active Jul 28, 2016
Ideal Resume Format for a Software Engineer


[Describe ambitions: type of work, attributes of team, what you want to learn & teach]


[in reverse chronological order, list at most 5 positions or 10 years back, whichever is fewer]

h3h / Gemfile
Created Jun 4, 2013
Austin.RB Kata
View Gemfile
source ""
gem 'rack-fiber_pool'
gem 'mysql2'
gem 'activerecord'
gem 'em-synchrony'
gem 'em-http-request'
gem 'grape'
gem 'goliath'
gem 'multi_json'
h3h / foo.rb
Last active Dec 21, 2015
Sanitizing HTML content in a Rails model.
View foo.rb
class Foo < ActiveRecord::Base
a b br blockquote code em h2 h3 hr i li ol p pre s strong sub sup u ul
before_validation :sanitize_html
h3h / adblock.config
Created Jan 28, 2014
Adblock Custom Rules for Cleaner GitHub Pull Requests
View adblock.config div.form-actions div.form-actions-protip div.previewable-comment-form p.drag-and-drop p.push-more span.tabnav-right span.tabnav-widget.text div.discussion-timeline div.thread-subscription-status
You can’t perform that action at this time.