Skip to content

Instantly share code, notes, and snippets.

View jonasc's full-sized avatar
🎓
Writing PhD thesis

Jonas jonasc

🎓
Writing PhD thesis
  • Berlin, Germany
View GitHub Profile
\begin{tikzpicture}[
>=triangle 60,
start chain=going below,
node distance=5mm and 70mm,
every join/.style={norm},
]
\tikzset{
base/.style={on chain, on grid, align=center},
term/.style={base, minimum height=1.75em},
proc/.style={term, draw, rectangle, text width=13em, minimum height=2em},
#!/bin/bash
if [[ $1 == -n ]]; then
file=$2
proc=$3
shift 3
spin $@ -run -d "$file" | sed --silent "/^\(proctype \)\?$proc/,/^\S\|^$/p" | awk '{print $1 " " $2}' | grep '^state' | sort -n | uniq | wc -l
else
file=$1
proc=$2
@jonasc
jonasc / better-trail
Created February 26, 2015 09:42
better trail file viewer for spin
#!/usr/bin/env python3
import sys
import os
import subprocess
import re
colors = [
'black',
[alias]
fuege-hinzu = add
zweig = branch
pfluecke-kirschen = cherry-pick
saeubere = clean
klone = clone
begehe = commit
beschreibe = describe
zeige-unterschied = diff
hole-ab = fetch
@jonasc
jonasc / command-notification.c
Last active August 29, 2015 14:02
modification of pidgin notification plugin
/*
* Original from
* https://guysoft.wordpress.com/2010/02/14/pidgin-x-chat-plugin-new-message/
*
* Command-notification
* Copyright (C) 2010 Guy Sheffer
* Copyright (C) 2006 Simo Mattila
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@jonasc
jonasc / playr
Last active December 11, 2015 10:38
#!/bin/bash
# Original von https://taach.wordpress.com/2013/01/21/playr-ein-ipod-shuffle-fur-die-bash/
TRACK_FILE="/tmp/.tracklist.playr"
TEMP_FILE="/tmp/.temp.playr"
function quit {
rm --force "$TRACK_FILE" "$TEMP_FILE"
exit 1