Skip to content

Instantly share code, notes, and snippets.

@tcrammond
tcrammond / nvm-auto-run.md
Created October 23, 2017 08:01
Automatically nvm use when entering directory

Calling nvm use automatically in a directory with a .nvmrc file

Put this into your $HOME/.zshrc to call nvm use automatically whenever you enter a directory that contains an .nvmrc file with a string telling nvm which node to use:

place this after nvm initialization!

@itod
itod / split_keyboards.md
Last active April 28, 2024 19:44
Every "split" mechanical keyboard currently being sold that I know of

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r
@covard
covard / change_screen_shot_location.md
Last active July 5, 2017 16:21
Change the location of your screen shots on Mac

Change OSX Screen Shot Location

$ defaults write com.apple.screencapture location ~/Pictures/screen_shots

Either run this command to restart it or restart your computer

$ killall SystemUIServer
@covard
covard / install_postgres.md
Last active December 19, 2015 08:49
Install PostgreSQL with Homebrew and brew services. This is a step by step instruction on installing postgres.

This gist is for installing PostgreSQL using Hombrew and the luncy gem.

$ brew install postgresql

When you install Postgres, you will see a bunch of output in your Terminal. The important sections are Build Notes, Create/Upgrade a Database, and Start/Stop PostgreSQL. Make sure to follow those instructions to the letter.

Create and upgrade a DB