Skip to content

Instantly share code, notes, and snippets.

View rlafferty's full-sized avatar
:shipit:
sƃuᴉɥʇ ɹǝƃuɐɹʇs

Ross Lafferty rlafferty

:shipit:
sƃuᴉɥʇ ɹǝƃuɐɹʇs
  • Johnstown, PA
View GitHub Profile

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@rlafferty
rlafferty / gist:e32350cb908394b986380ab898258354
Created November 16, 2017 03:26 — forked from hummus/gist:8592113
aws cli + jq example
wget http://stedolan.github.io/jq/download/linux64/jq
aws ec2 describe-instances --filters "Name=tag:Name,Values=$NAME" \
"Name=instance-state-name,Values=running" \
| jq -r \
".Reservations[] | .Instances[] | .InstanceId" \
aws ec2 describe-volumes --filters \
"Name=status,Values=available" \
| jq -r ".Volumes[] | .VolumeId" \

Keybase proof

I hereby claim:

  • I am rlafferty on github.
  • I am rosslafferty (https://keybase.io/rosslafferty) on keybase.
  • I have a public key ASDTAIXbNsRsFC3oYMabNWuq1pHdyu5VC9HZhVD5wIvCuwo

To claim this, I am signing this object:

@rlafferty
rlafferty / values_pointers.go
Created February 24, 2018 05:39 — forked from josephspurrier/values_pointers.go
Golang - Asterisk and Ampersand Cheatsheet
/*
********************************************************************************
Golang - Asterisk and Ampersand Cheatsheet
********************************************************************************
Also available at: https://play.golang.org/p/lNpnS9j1ma
Allowed:
--------
p := Person{"Steve", 28} stores the value