Skip to content

Instantly share code, notes, and snippets.

View techpeace's full-sized avatar

Matt Buck techpeace

View GitHub Profile
@skywinder
skywinder / gitkraken.zsh
Last active October 25, 2022 15:37 — forked from dersam/gitkraken.zsh
Here is a single line to add kraken support in `.zshrc`
# Open GitKraken using the current repo directory in the cli.
alias kraken='open -na "GitKraken" --args -p "$(git rev-parse --show-toplevel)"'
# Now you can 'git kraken'!
@zulhfreelancer
zulhfreelancer / readline_bundle_image_not_found.md
Last active November 3, 2021 20:50
How to fix 'readline.bundle image not found' problem?

If you get error like this:

Running via Spring preloader in process 7662
/Users/zulh/.rvm/gems/ruby-2.3.1@useradmin/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require': dlopen(/Users/zulh/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin15/readline.bundle, 9): Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib (LoadError)
  Referenced from: /Users/zulh/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin15/readline.bundle
  Reason: image not found - /Users/zulh/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin15/readline.bundle
	from /Users/zulh/.rvm/gems/ruby-2.3.1@useradmin/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
	from /Users/zulh/.rvm/gems/ruby-2.3.1@useradmin/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
	from /Users/zulh/.rvm/gems/ruby-2.3.1@useradmin/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
@markbao
markbao / howto.md
Last active July 26, 2021 00:40
Matias Ergo Pro Mac keyboard: remap right-control (where "b" should be) to "b"

The Matias Ergo Pro keyboard has a control key where I usually type "b" (I type "b" with my right hand). Here's how to remap that key to a "b".

  1. Download Karabiner: https://pqrs.org/osx/karabiner/
  2. Install it
  3. Open the app and go to "Misc & Uninstall"
  4. Click "Open private.xml" to open the customization file
  5. Open "private.xml" in TextEdit
  6. Add the following:
  7. Save and go back to Karabiner
  8. Go back to the first tab, Change Key
@damon
damon / nr_query_analyzer.rb
Created January 20, 2011 21:11
takes a paste of query statements from New Relic and explains all of them ; also converts UPDATEs and DELETEs now
#!/usr/bin/env ruby
puts "NR Bulk Query Explainer"
puts "make sure to adjust the mysql command line in the script to your local setup"
puts "Paste your SQL Statements Trace from New Relic and ~ and RETURN to submit."
cli = "mysql -uroot notes_from_scratch -e "
strings,queries = [],[]
while (s=gets)!="~\n"
strings << s
end