Skip to content

Instantly share code, notes, and snippets.

View chasestubblefield's full-sized avatar

Chase Stubblefield chasestubblefield

  • Fresno, CA
View GitHub Profile

Install Xcode from the App Store

It sucks and takes forever, but it should reduce roadblocks in the future.

Install Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Adding GitHub password to login keychain for use with git-credential-osxkeychain:

security add-internet-password -a chasetopher -r htps -s github.com -T /Library/Developer/CommandLineTools/usr/libexec/git-core/git-credential-osxkeychain -w
security add-internet-password -a chasetopher -r htps -s gist.github.com -T /Library/Developer/CommandLineTools/usr/libexec/git-core/git-credential-osxkeychain -w

Due to what I think is a bug, add-internet-password sets partition list to apple-tool: instead of apple:. (Adding the password though Keychain Access.app results in apple:)

security set-internet-password-partition-list -a chasetopher -r htps -S apple:
@chasestubblefield
chasestubblefield / gist:9e3690294375fbee3a79
Last active March 23, 2020 00:23
macOS Catalina Clean Install 3/22/20

Pre-install

sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled

Backup ~/Library/Caches/Homebrew

Post-install

Restore ~/Library/Caches/Homebrew

@chasestubblefield
chasestubblefield / gist:10670979
Last active August 29, 2015 13:59
The Wind Waker HD 100%

TWWHD 100%

Beat the game while collecting the following:

  • All Items (fill every slot in the item and status menu, not counting contents of bags)
  • All Upgrades (bomb, arrow, and wallet capacity upgrades, doubled magic meter, and Hurricane Spin)
  • All 20 Hearts (44 Heart Pieces and 6 Heart Containers)
  • All 49 Treasure Charts (3 of which are Triforce Charts)
  • All 6 Songs
@chasestubblefield
chasestubblefield / partition.rb
Last active December 25, 2015 07:59
push the next biggest file onto the smallest partition until no more files
partitions.min_by { |p| p.inject(0) { |combined_weight, file| combined_weight + file_weights[file] } }
.push(files_biggest_first.delete_at(0)) until files_biggest_first.empty?
@chasestubblefield
chasestubblefield / gist:5359655
Last active December 16, 2015 02:00
Mobile templates

db-charmer

The Problem

If you're unfamiliar with the issue, there is an intermittent failure when running Capybara tests on any machine (spec/requests/ or features/):

undefined method `db_charmer_connection_name' for #<ActiveRecord::ConnectionAdapters::Mysql2Adapter:0x00000009f16ec8>
/var/lib/jenkins/.rvm/gems/ruby-1.9.3-p0/gems/db-charmer-1.7.0/lib/db_charmer/active_record/class_attributes.rb:85:in `db_charmer_remapped_connection'