Skip to content

Instantly share code, notes, and snippets.

# my profile is configured for us-west-2
export AWS_DEFAULT_REGION=us-west-1
export AWS_REGION=us-east-1
aws ec2 describe-instances --query 'Reservations[].Instances[].Placement.AvailabilityZone' --output text
us-east-1c
unset AWS_REGION
aws ec2 describe-instances --query 'Reservations[].Instances[].Placement.AvailabilityZone' --output text
us-west-1c
unset AWS_DEFAULT_REGION
@rothgar
rothgar / chime-tampermonkey.js
Last active August 13, 2020 20:50
Chime Keyboard shortcuts
// ==UserScript==
// @name Chime Keyboard Shortcuts
// @namespace http://app.chime.aws
// @version 0.1
// @description Simple keyboard shortcuts for chime
// @author justinleegarrison@gmail.com
// @match https://app.chime.aws/meetings/*
// @grant none
// @run-at document-end
// ==/UserScript==
@rothgar
rothgar / streamyard-tampermonkey.js
Last active December 3, 2021 16:40
Streamyard Keyboard Shortcuts
// ==UserScript==
// @name Streamyard Keyboard Shortcuts
// @namespace http://streamyard.com
// @version 0.1
// @description Simple keyboard shortcuts for streamyard
// @author justinleegarrison@gmail.com
// @match https://streamyard.com/*
// @grant none
// @run-at document-end
// ==/UserScript==
@rothgar
rothgar / index.html
Last active July 31, 2020 22:08
Kube spin
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
#wheel {
animation-name: spin;
animation-timing-function: ease-in-out;
animation-iteration-count: 1;
@rothgar
rothgar / time-me.sh
Created December 5, 2019 07:14
pod timer
#!/bin/bash
# run with time time-me.sh
# Checks how long it takes to schedule 100 nginx pods
kubectl scale deploy nginx --replicas 101
replicas=0
while [ $replicas -lt 101 ]; do
replicas=$(kubectl get deploy nginx -o template --template={{.status.availableReplicas}})
@rothgar
rothgar / searches
Created May 10, 2019 16:40
chrome://settings/searchEngines
# Search for container images on docker hub
Docker Hub, dhub, https://hub.docker.com/search/?isAutomated=0&isOfficial=0&page=1&pullCount=0&q=%s&starCount=0
# Search for emoji
emojipedia, emoji, https://emojipedia.org/search/?q=%s
# search Amazon
amazon, amz, http://www.amazon.com/s?k=%s
@rothgar
rothgar / 😁.gif
Last active April 25, 2019 05:23
😁
😁.gif
@rothgar
rothgar / up.gif
Last active April 25, 2019 05:22
Up
up.gif
@rothgar
rothgar / you.gif
Last active April 25, 2019 05:22
You
you.gif
@rothgar
rothgar / give.gif
Last active April 25, 2019 05:22
Give
give.gif