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
@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
@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" \

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