How to show & hide hidden dot (.) files in the Mac Finder window

10/15/15  Public, Command Line

1 - In Terminal, enter $ defaults write AppleShowAllFiles YES
2 - Press return
3 - Hold the ‘Option/alt’ key, then right click on the Finder icon in the dock and click Relaunch.

To hide them, repeat the above steps, expect ...

1 vote - harrylevine

Change remote Git URL after forking a repository

10/13/15  Public, Git

After you have forked and cloned the repository:

$ cd into-the-repository
$ git remote set-url origin

So for example, if your GitHub username is hpjaj, and the repo is holo-alfa, h...

1 vote - harrylevine

How the ruby Tap method works

10/09/15  Public, Ruby General

First, let's define a couple of terms: caller and mutated.

The caller is what tap is being called on. In the below, the caller is arr:

arr = [2, 3, 1]
arr.tap do |x|

Mutated permanently change...

1 vote - harrylevine

Sublime text shortcut for moving whole line up or down

10/03/15  Public, Shortcuts

On a mac:

command + control + up-arrow

command + control + down-arrow

1 vote - harrylevine

Add all Google Fonts to Sketch 3

10/03/15  Public, Online Resources


All you have to do is paste the code below into Terminal:

curl | sh

If yo...

1 vote - harrylevine

In a controller spec, calling a PUT or POST action

09/18/15  Public, Testing / TDD

From users_controller_spec.rb:

put :update, :id =>, :user => { :active => false }

1 vote - harrylevine

Settings file for "Oh My ZSH" command line interface

08/29/15  Public, Command Line

The file used to make settings adjustments for Oh My ZSH is a dotfile called .zshrc

It is located in the root ~ directory

1 vote - harrylevine

Step through pry sessions when debugging

08/18/15  Public, Testing / TDD

Adds step, next, finish and continue commands and breakpoints to Pry using byebug.

Only supports MRI (ruby) 2.0.0 or newer. For MRI 1.9.3 or older, use pry-debugger

1 vote - harrylevine