Skip to content

Instantly share code, notes, and snippets.

View mmartinson's full-sized avatar

Mike Martinson mmartinson

  • Brex
  • Squamish BC
View GitHub Profile
@mmartinson
mmartinson / task1.exs
Created May 24, 2018 19:40 — forked from moklett/task1.exs
Elixir Task - Crash Handling
# This demonstrates that, when using async/await, a crash in the task will crash the caller
defmodule Tasker do
def good(message) do
IO.puts message
end
def bad(message) do
IO.puts message
raise "I'm BAD!"
end
@mmartinson
mmartinson / iterm2.md
Created June 9, 2016 18:43
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
Previous Tab + Left Arrow
Next Tab + Right Arrow
Go to Tab + Number
Go to Window + Option + Number
Go to Split Pane by Direction + Option + Arrow
Go to Split Pane by Order of Use + ] , + [
@mmartinson
mmartinson / gist:3d68f3de9488f204535a
Last active August 29, 2015 14:07 — forked from tkbeili/gist:62c440635a4f9ac86c24
Shell commands to config postgres server to start at login
To have launchd start postgresql at login:
mkdir -p ~/Library/LaunchAgents
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
Then to load postgresql now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist