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
\documentclass[a4paper]{book}
\usepackage{ngerman}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\usepackage{shortcuts}
\usepackage{times}
\usepackage{enumerate}
% uncomment for non-testing pdf production
#!/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"
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-*-*-*-*-*-*-*'
/*
* 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>
#!/bin/env bash
datestamp=$(date +%d-%m-%y)
if [ -d $datestamp ]; then
exit -1
fi
mkdir $datestamp
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/bash
sync
sleep 1
sync
sleep 1
wpa_cli disconnect
sleep 1
s2ram -f 1
#!/bin/bash
iceweasel &
exec awesome
#ifndef __XCB_ATOM_H__
#define __XCB_ATOM_H__
#include <xcb/xcb.h>
#ifdef __cplusplus
extern "C" {
#endif
enum xcb_atom_fast_tag_t {
#!/bin/sh
usage(){
cat <<EOF
Usage: $0 [add|del] pkg
add add pkg to the system
del remove pkg from the system
EOF
exit 255