Skip to content

Instantly share code, notes, and snippets.

View chriscowley's full-sized avatar

Chris Cowley chriscowley

View GitHub Profile
@RaminHAL9001
RaminHAL9001 / timer.bash
Last active August 29, 2015 14:12
Command line oven timer program written in Bash script. Specify wait time in "hh:mm:ss" or "mm:ss" format.
#!/bin/bash
# An oven timer. This script uses the "notify-send" program to display a
# message after a certain amount of time specified as command line arguments.
# It optionally plays a sound using "mplayer" after calling "notify-send".
# Waiting time can be specified in a user friendly (hours : minutes : seconds)
# format, e.g. "hh:mm:ss" or "mm:ss".
#
# Copyright (C) Ramin Honary 2014, all rights reserved.
# Licensed under the GNU General Public License:
# http://www.gnu.org/licenses/gpl.html
#! /usr/bin/env bash
# Skip all of this if we don't have a TTY
tty -s || return 0
# Colors + \[...\] wrapping to ensure there's no odd wrapping on command line
C_OFF="\[$(tput sgr0)\]"
C_BOLD="\[$(tput bold)\]"
C_BLACK="\[$(tput setaf 0)\]"
C_RED="\[$(tput setaf 1)\]"
@kwmt
kwmt / Castle.xml
Last active November 9, 2021 01:16 — forked from bemasher/Castle.xml
<?xml version="1.0" encoding="UTF-8" ?>
<Data>
<Series>
<id>83462</id>
<Actors>|Nathan Fillion|Stana Katic|Molly C. Quinn|Jon Huertas|Seamus Dever|Tamala Jones|Susan Sullivan|Ruben Santiago-Hudson|Monet Mazur|</Actors>
<Airs_DayOfWeek>Monday</Airs_DayOfWeek>
<Airs_Time>10:00 PM</Airs_Time>
<ContentRating>TV-PG</ContentRating>
<FirstAired>2009-03-09</FirstAired>
<Genre>|Drama|</Genre>