Skip to content

Instantly share code, notes, and snippets.

View tobiisdesired's full-sized avatar

NaN tobiisdesired

View GitHub Profile
#! /usr/bin/env ruby
$connections = [
{"user@host1.com" => "development server"},
{"user@host2.com" => "QA test"}
]
Signal.trap("SIGINT") do
puts ("\nexit")
exit
@tobiisdesired
tobiisdesired / countdown.sh
Last active February 15, 2018 13:30
Ever needed a well formatted countdown (aka tea timer) in your console?
#!/bin/bash
#
# Simple tea timer
#
start=$(date +%s)
function print_help() {
cat <<EOF
usage: $(basename $0) DRUATION
@tobiisdesired
tobiisdesired / jenkins-notify.sh
Last active May 9, 2018 21:08
This is a simple bash script to monitor multiple Jenkins CI jobs for build failures. The script requires rsstail to be installed. Depending on your environment it is also possible to specify a notification command like /usr/bin/notify-send to show status updates directly on your desktop. Usage: ./jenkins-notify jenkins_url job_name...
#! /usr/bin/env bash
JENKINS_SERVER=${1}
shift
JOBS=$*
CHECK_INTERVAL=30
NOTIFY_CMD=
# NOTIFY_CMD=/usr/bin/notify-send
command -v rsstail >/dev/null 2>&1 || { echo >&2 "This script requires rsstail to be installed. See http://www.vanheusden.com/rsstail"; exit 1; }