This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ksh | |
## configuration | |
CHROOT=$HOME/sid-debootstrap | |
USER=rsdy | |
USER_HOME=/home/$USER | |
WORKDIR=$USER_HOME/build | |
TERM=rxvt-unicode | |
PATH_EXTEND='$HOME/.cabal/bin' | |
BIND_LIST="/dev /proc /sys" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# these settings make the trackpoint scroll horizontally and vertically when the middle button is pressed | |
/usr/bin/xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1 | |
/usr/bin/xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2 | |
/usr/bin/xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Axes" 6 7 4 5 | |
/usr/bin/xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 150 | |
/usr/bin/xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Middle Button Timeout" 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.kde/share/apps/color-schemes/Solarized.colors | |
[ColorEffects:Disabled] | |
Color=56,56,56 | |
ColorAmount=0 | |
ColorEffect=0 | |
ContrastAmount=0.65 | |
ContrastEffect=1 | |
IntensityAmount=0.1 | |
IntensityEffect=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ~/bin/e | |
emacsclient --alternate-editor="emacs" -n "$@" 2>/dev/null & disown | |
# 4 is the number of the virtual desktop where emacs resides | |
# the wm should spawn a new instance there automagically | |
wmctrl -s 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
warming up | |
estimating clock resolution... | |
mean is 1.363583 us (640001 iterations) | |
found 3371 outliers among 639999 samples (0.5%) | |
2926 (0.5%) high severe | |
estimating cost of a clock call... | |
mean is 38.34752 ns (12 iterations) | |
found 1 outliers among 12 samples (8.3%) | |
1 (8.3%) low severe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ksh | |
# | |
# compile tarsnap, and install it to $BASEDIR | |
# | |
# put the files/dirs to be included into $BASEDIR/includes | |
# specify exclude patterns in $BASEDIR/excludes | |
# both files should contain either space or newline-separated items | |
# | |
# tweak $DELETE_ARCH to specify the retention time after which the | |
# archives will be deleted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do: | |
pandoc -f markdown -t latex plan.md > sections.tex | |
pdflatex plan.tex | |
pdflatex plan.tex | |
live: | |
while inotifywait plan.md; do \ | |
make do; \ | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# append to /etc/sudoers | |
# | |
yaourt ALL=(root) NOPASSWD: /usr/bin/pacman, /usr/bin/pacdiffviewer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import i3ipc | |
from sh import pkill | |
WNAME='browser' | |
PNAME='firefox' | |
def on_workspace(i3, e): | |
if e.current.props.name == WNAME: |