Skip to content

Instantly share code, notes, and snippets.

View farhaven's full-sized avatar
🦄
I'm a unicorn.

Gregor Best farhaven

🦄
I'm a unicorn.
View GitHub Profile
#!/bin/bash
iceweasel &
exec awesome
#!/bin/bash
sync
sleep 1
sync
sleep 1
wpa_cli disconnect
sleep 1
s2ram -f 1
28 Days Later.avi
28 Weeks later.avi
30 Days of Night.mkv
Battle Royale.divx
Blutnacht des Teufels.avi
Braindead.avi
Cannibal Holocaust.mpg
Dawn of the Dead.avi
Der Exorzismus der Emily Rose.mpg
Diary of the Dead.avi
#!/bin/env bash
datestamp=$(date +%d-%m-%y)
if [ -d $datestamp ]; then
exit -1
fi
mkdir $datestamp
/*
* A simple example of setting the XUrgencyHint on an xterm from a program
* running in it. Compile with:
*
* gcc -L/usr/X11R6/lib -lX11 urgent.c -o urgent
*
*/
#include <stdio.h>
#include <stdlib.h>
DMENU='dmenu -b '
DMENU=$DMENU'-o 0.9 '
DMENU=$DMENU'-nb #333333 -nf #999999 '
DMENU=$DMENU'-sb #1279bf -sf #ffffff '
DMENU=$DMENU'-fn -*-terminus-*-*-*-*-12-*-*-*-*-*-*-*'
#!/bin/env bash
# example pipe commands:
# 'while read u; firefox $u; done' -- useful to pipe urls into programs that don't handle them from stdin
# the first line of every cache file is the pipe command used for that file
# dmenu defaults
if [ -f ~/.dmenurc ]; then
source ~/.dmenurc
else
DMENU="dmenu"
\documentclass[a4paper]{book}
\usepackage{ngerman}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\usepackage{shortcuts}
\usepackage{times}
\usepackage{enumerate}
% uncomment for non-testing pdf production
#!/bin/bash
CMD=
if [ ! x$DISPLAY == x ]; then
CMD="urxvtc -name urxvt.cmus -e"
fi
if [ $(screen -ls | grep cmus | wc -l) -gt 0 ]; then
$CMD screen -raAd cmus
else
# include '/usr/share/themes/Elegant_Mine/gtk-2.0/gtkrc'
# include '/usr/share/themes/ThinIce/gtk-2.0/gtkrc'
# include '/usr/share/themes/Neutronium DeepBlack/gtk-2.0/gtkrc'
# include '/usr/share/themes/Xfce-dusk/gtk-2.0/gtkrc'
# include '/usr/share/themes/CleanIce/gtk-2.0/gtkrc'
# include "/home/gregor/.themes/Apathy/gtk-2.0/gtkrc"
# include '/usr/share/themes/Zenburn/gtk-2.0/gtkrc'
include '/home/gregor/.themes/zenfoo/gtkrc'