Brad Lucas

Programming, Clojure and other interests

Heroku Pushing A Non-Master Local Branch

October 16, 2017

Heroku will only deploy code pushed to the master branch of your heroku remote. Knowing this as the only method to push code to your remote is limiting if you want to deploy from a feature branch.

Luckily, Heroku does support pushing a non-master branch with simple change of syntax.

$ git push heroku feature/my-cool-feature:master

Simply tack on the :master and you can push your feature branch or any other branch for that matter.

Continue reading →

Upgrading Ethereum Geth On Linux

October 15, 2017

If you've found this post and are rushing to upgrade a previously installed version of geth on Linux before the hard fork on October 16th here are a quick set of instructions.

The instructions assume you've built your geth from source. If that is the case the following should be helpful.

Stopping Geth

Make sure to stop your current geth instance. I used the following command:

Continue reading →

Deploy To Clojars gpg

October 10, 2017

I posted a version of ads-txt-crawler to Clojars the other day and ran into a bit of trouble as I was on a new machine.

The command "lein deploy clojars" returned the following error.

Could not sign /Users/brad/work/github/ads-txt-crawler/target/ads-txt-crawler-0.0.6.jar
Cannot run program "gpg": error=20, Not a directory

See `lein help gpg` for how to set up gpg.

Being on a Mac I used to install gpg

Continue reading →

Increase Your Macbook Pro's Display Resolution

October 9, 2017

It turns out your Retina MacBook Pro 15" can run beyond the resolutions offered in it's System Preferences. In researching this fact I found that there are a number of third-party utilities that can be used to go beyond your Mac's offered resolutions.

The following utility from avibrazil is a good one and I recommend it. I've been using it for a few days and it works flawlessly with my MacBook as well as an external display.

The first link is to the project itself and the second link is the installable binary dmg file.

Continue reading →

Remove Siri From Touch Bar On A New Macbook Pro

October 8, 2017

I don't use Siri and on a new MacBook I hit the Siri button far too often as it is just about the Delete key. Here is how to remove the Siri button from the Touch Bar

  • System Preferences
  • Keyboard
  • Customize Control Strip

Notice your Control Strip will be wiggling Hold the Siri button and notice the Done button change to a Trash Can Drage and drop the Siri button to the Trash

Click Done

Continue reading →