This file contains hidden or 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 | |
set -e | |
set -u | |
set -o pipefail | |
NAMESPACE=${1:-default} | |
RELEASE_NAME=${2:-} | |
KUBE_CONTEXT=${3:-""} |
This file contains hidden or 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 | |
candidates=( | |
"chromium" | |
"google-chrome" | |
"google-chrome-stable" | |
"chromium-browser" | |
) | |
(for c in "${candidates[@]}"; do |
This file contains hidden or 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 | |
set -e | |
aws_retry() { | |
last_aws_call="" | |
local max_attempts=${ATTEMPTS-8} | |
local timeout=${TIMEOUT-2} | |
local attempt=0 | |
local exitCode=0 |
This file contains hidden or 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 | |
# https://explainshell.com/explain?cmd=set+-euxo%20pipefail | |
set -eou pipefail | |
yell() { echo "$0: $*" >&2; } | |
die() { yell "$*"; exit 111; } | |
try() { echo "$ $@" 1>&2; "$@" || die "cannot $*"; } | |
# log to syslog and echo output | |
info() { |
This file contains hidden or 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
(new ActiveXObject("Shell.Application")).ShutdownWindows(); |
I hereby claim:
- I am danijeel on github.
- I am danijeel (https://keybase.io/danijeel) on keybase.
- I have a public key whose fingerprint is F928 2329 DBF9 5448 27B9 9D6F F23E 000A 2F0D 0C55
To claim this, I am signing this object:
This file contains hidden or 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 oWMP = CreateObject("WMPlayer.OCX.7") | |
set colCDROMs = oWMP.cdromCollection | |
wscript.sleep 10 | |
do | |
if colCDROMs.Count >= 1 then | |
for i = 0 to colCDROMs.Count -1 | |
colCDROMs.Item(i).Eject | |
Next | |
For i = 0 to colCDROMs.Count -1 | |
colCDROMs.Item(i).Eject |