Skip to content

Instantly share code, notes, and snippets.

View zodiacfireworks's full-sized avatar
:octocat:
Working from home

Martín Josemaría zodiacfireworks

:octocat:
Working from home
View GitHub Profile
@zodiacfireworks
zodiacfireworks / image-tag-exists.sh
Last active February 21, 2019 21:38 — forked from outofcoffee/find-ecr-image.sh
Check if Docker image exists with tag in AWS ECR
#!/usr/bin/env bash
# Example:
# ./find-ecr-image.sh foo/bar mytag
if [[ $# -lt 2 ]]; then
echo "Usage: $( basename $0 ) <repository-name> <image-tag>"
exit 1
fi
IMAGE_META="$( aws ecr describe-images --repository-name=$1 --image-ids=imageTag=$2 2> /dev/null )"
// This will open up a prompt for text to send to a console session on digital ocean
// Useful for long passwords
(function () {
var t = prompt("Enter text to be sent to console, (This wont send the enter keystroke)").split("");
function f() {
var character = t.shift();
var i=[];
var code = character.charCodeAt();
var needs_shift = "!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -1
@zodiacfireworks
zodiacfireworks / sublime-text-2.sh
Last active June 4, 2016 23:37
Install Sublime Text 2 and 3 on non deb-based Linux Systems with x64 or x86 architectures
#!/usr/bin/env bash
# Usage: {script} [ OPTIONS ] TARGET VERSION
#
# TARGET Default target is "/usr/local".
# VERSION If not defined tries to get the build into the Sublime Text 2 website.
#
# OPTIONS
#
# -h, --help Displays this help message.
#