Skip to content

Instantly share code, notes, and snippets.

View res0nat0r's full-sized avatar
🤗

Stefhen Hovland res0nat0r

🤗
  • Austin, TX
View GitHub Profile
@res0nat0r
res0nat0r / oneliners.md
Last active March 31, 2026 21:39
Oneliners and code snippets
  • List EC2 Instances:
function li() {
  aws ec2 describe-instances \
    | jq -r '.Reservations[].Instances[] | [(.Tags[]|select(.Key=="Name").Value),.InstanceId,.PrivateIpAddress,.VpcId,.State.Name,.LaunchTime] | @csv' \
    | mlr --c2p --implicit-csv-header label Nmae,InstanceId,PrivateIpAddress,VpcId,State,LaunchTime then sort -f LaunchTime then cat
  }
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@mxcl
mxcl / uninstall_homebrew.sh
Created August 26, 2011 11:25
Uninstall Homebrew
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e