This file contains 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
# -*- coding: utf-8 -*- | |
# | |
# frwd to other interested parties at the institute | |
# | |
import datetime, time, sys | |
leave_at = datetime.datetime(2012, 12, 13, 12, 00) | |
first = True | |
while True: | |
delta = leave_at - datetime.datetime.now() |
This file contains 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/sh | |
# | |
# Take a photo of you, whenever you make a commit | |
# | |
# This is an improved version of Víctor Martínez original post: | |
# http://coderwall.com/p/xlatfq | |
# | |
# Improvements: | |
# * This is non-blocking (you dont have to wait for your image to be taken) |
This file contains 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
# version for bash 2.03 | |
# no use of =~ and BASH_REMATCH allowed | |
function parse_git_branch { | |
if [[ `uname -s` == "SunOS" ]]; then | |
return 1 | |
fi | |
if git rev-parse --git-dir >/dev/null 2>&1 | |
then | |
git_status="$(git status 2> /dev/null)" | |
remote_pattern="# Your branch is " |