This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
set -e | |
# Verify that dashboards are ready | |
response_code=0 | |
while [ "$response_code" -ne 200 ] ; do | |
echo "Waiting for dashboards to be ready..." | |
sleep 5 | |
path="/api/dashboards/uid/some_dashboard" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hex_to_b32(hex) { | |
let alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"; | |
let bytes = []; | |
for (let i = 0; i < hex.length; i += 2) { | |
bytes.push(parseInt(hex.substr(i, 2), 16)); | |
} | |
let bits = 0; | |
let value = 0; | |
let output = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
git checkout master | |
git remote prune origin | |
git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name AWS ECS list view | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Default to list view on AWS ECS | |
// @author Kenneth Skertchly | |
// @match https://console.aws.amazon.com/ecs/home?region=us-east-1 | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Upgrade an existing terraform installation. | |
currentVersion=$(terraform version | head -n1 | awk '{print $2}' | cut -c 2-) | |
installPath=$(which terraform) | |
echo "Checking latest release..." | |
LATEST_RELEASE=$(curl -# https://api.github.com/repos/hashicorp/terraform/releases/latest | jq --raw-output '.tag_name' | cut -c 2-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Create 1080p and 4k timelapse | |
# Requires imagemagick, mencoder and parallel | |
# Resizes and crops images and creates video | |
if [[ "$#" == 0 ]]; then | |
echo "Usage: $0 <sourcedir>" | |
exit 1 | |
fi |