Skip to content

Instantly share code, notes, and snippets.

NaN tobiisdesired

Block or report user

Report or block tobiisdesired

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tobiisdesired
tobiisdesired / countdown.sh
Last active Feb 15, 2018
Ever needed a well formatted countdown (aka tea timer) in your console?
View countdown.sh
#!/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
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...
View jenkins-notify.sh
#! /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; }
You can’t perform that action at this time.