Skip to content

Instantly share code, notes, and snippets.

View arlimus's full-sized avatar

Dominik Richter arlimus

View GitHub Profile
@arlimus
arlimus / i3.conf
Last active January 29, 2018 08:39
i3 configuration
# arlimus i3 config; public domain
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+r exec TERMINAL=xfce4-terminal i3-sensible-terminal
@arlimus
arlimus / pacman_aur.sh
Last active December 16, 2015 11:48
One-liner to install a package from AUR. Does not resolve dependencies!
# short version, just copy-and-paste this line:
pacman_aur(){ for pn in $*; do rm -rf /tmp/$pn; mkdir -p /tmp/$pn; pushd /tmp/$pn; wget https://aur.archlinux.org/packages/${pn:0:2}/$pn/PKGBUILD; makepkg; popd; done; sudo pacman -U $(for i in $*; do echo /tmp/$i/*.tar.xz; done;); }
# install yaourt on a fresh arch:
# 1. get requirements
pacman -S base-devel yajl sudo
# 2. make sure your user is added to sudoers
# as root: visudo
# 3. install package-query and yaourt from aur
pacman_aur package-query yaourt
@arlimus
arlimus / scramble.coffee
Last active December 10, 2015 23:28
Small coffeescript to make text animate in a way similar to the one seen on 29c3.
# usage:
# eg have this in your html:
# <pre class="29c3">
# N.O-T/M
# Y-D/E.P
# A/R.T-M
# E-N/T
# 2.9-C/3
# </pre>
# then run this in javascript: