~/

Using jenv to manage your multiple JDKs

If you’re running a modern version of OSX then you’re likely running Java 11, which is fine until you need to run npm/gulp tests with Selenium (which requires Java8). jenv to the rescue! assuming you have homebrew installed brew tap caskroom/versions brew cask install java8 brew install jenv then either update your ~/.bash_profile or (if you have one) ~/.path file export PATH="$HOME/.jenv/bin:$PATH" eval "$(jenv init -)" & reload your shell.
Read more →

Cherry Picking a range of commits in Git

Git’s cherry-pick command allows you to specify a range of commits to be cherry-picked onto the current branch. This can be done with the A123..B234 style syntax – where A123 is the oldest commit in the range. Consider a scenario with the following chain of commits on my-feature-branch: commit A123 Author: Troy McCall <troy@atenderrobot.com> Date: Thu Aug 9 11:36:54 2018 -0400 - update CARoot commit B234 Author: Troy McCall <troy@atenderrobot.com> Date: Wed Jul 25 15:20:10 2018 -0400 - Allow wildcards and block heading and trailing dots commit C345 [.
Read more →

Delete Everything Below This Selected Line in Vim

Read more →

Bootstrapping Wordpress: Part 1

Web Development eventually involves dealing with a wordpress site (or multiple), and if you’re like me - you have a bunch of private git repos that all lack wp-config.php files. see wpengine&rsquo;s recommended <code>.gitignore</code> file And if you’re also like me, you probably have a custom git command for hard resets and cleans (I call mine <code>git bleach</code> ) - which means you do a lot of rebuilding, and probably waste a lot of time creating your configs over and over again.
Read more →

Better Bash 4 & Completions on OSX

OS X ships with an outdated version of Bash as its default shell. The preinstalled version dates back to 2007, yes - nearly a decade behind. If you want to use an updated version of Bash and Bash Completions in your shell, you can install them by using Homebrew, a package manager for OS X. Installing via Homebrew Open your terminal and enter this command: brew install bash Now we’ll append our desired (Bash 4) shell’s path to a file of whitelisted system shells, and then change the system shell for our user.
Read more →