Skip to content

Instantly share code, notes, and snippets.

View richkeenan's full-sized avatar
👋

Rich Keenan richkeenan

👋
View GitHub Profile
export ANDROID_HOME=/Users/$USER/Library/Android/sdk
RUNNING_EMU="$($ANDROID_HOME/platform-tools/adb devices | grep emulator -c)"
if [[ $RUNNING_EMU -eq 0 ]]
then
# If we're not given an AVD to run on let's find a suitable one to use
if [ $# -eq 0 ]
then
# if Pixel exists (dev has run the setup scripts) run that
if [ -f $HOME/.android/avd/Pixel.ini ]
docker stop $(docker ps -a -q) && docker system prune -a --volumes
@richkeenan
richkeenan / go.mod
Created March 8, 2022 17:18
K8s pod density check
module podchecker
go 1.16
require (
github.com/olekukonko/tablewriter v0.0.5 // indirect
k8s.io/api v0.22.4 // indirect
k8s.io/apimachinery v0.22.4 // indirect
k8s.io/client-go v0.22.4 // indirect
)