Skip to content

Instantly share code, notes, and snippets.

View benkaiser's full-sized avatar
🌴
Loving Life

Benjamin Kaiser benkaiser

🌴
Loving Life
View GitHub Profile
@benkaiser
benkaiser / Packages
Last active December 18, 2015 14:19
My Arch Packages. To be moved to my new machine
abs
acpi
alsa-utils
arp-scan
autoconf
automake
baobab
bash
bison
btrfs-progs
@benkaiser
benkaiser / .zshrc
Last active December 18, 2015 01:48
My zshrc as of 2013-06-04. Custom aliases for Ubuntu / Work with vim turned on also.
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt autocd
bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/benkaiser/.zshrc'
@benkaiser
benkaiser / application.js
Created March 28, 2013 01:49
Check if variable was initialised from JSON file.
$(document).ready(function() {
if(data !== undefined){
// the data loaded just fine
loaded = true;
}
});
@benkaiser
benkaiser / how_to_ffmpeg_screencast.sh
Last active December 14, 2015 01:19
hi-res ffmpeg capture without lag
ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s <widthxheight> -i :0.0<+offsetx,offsety> -acodec pcm_s16le -vcodec libx264 -r 25 -preset ultrafast -crf 0 -threads 0 <filename>.mkv
@benkaiser
benkaiser / wmiirc
Last active December 13, 2015 23:49
My wmiirc (WMII configuration file)
#!/bin/dash -f
# Configure wmii
wmiiscript=wmiirc # For wmii.sh
. wmii.sh
# Configuration Variables
MODKEY=Mod1
UP=k
DOWN=j