Skip to content

Instantly share code, notes, and snippets.

Avatar
🤷‍♂️
fine

Justin Garrison rothgar

🤷‍♂️
fine
View GitHub Profile
View gist:a6ed5803fa925ed04cd82f25e6b6d59b
# 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 Aug 13, 2020
Chime Keyboard shortcuts
View chime-tampermonkey.js
// ==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 Oct 1, 2020
Streamyard Keyboard Shortcuts
View streamyard-tampermonkey.js
// ==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 Jul 31, 2020
Kube spin
View index.html
<!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;
View time-me.sh
#!/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
chrome://settings/searchEngines
View searches
# 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
You can’t perform that action at this time.