Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block Nervengift

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Nervengift / 30-touchpad.conf
Created May 1, 2019
View 30-touchpad.conf
Section "InputClass"
Identifier "touchpad"
Driver "libinput"
MatchIsTouchpad "on"
Option "NaturalScrolling" "true"
Option "ClickMethod" "clickfinger"
Option "Tapping" "on"
Nervengift / 50-wacom.conf
Last active May 1, 2019
Enable native libinput gestures for wacom displays (tested with Thinkpad X230t). Copy to /etc/X11/xorg.conf.d/50-wacom.conf
View 50-wacom.conf
Section "InputClass"
Identifier "Wacom touch options"
MatchDriver "wacom"
MatchProduct "Finger"
Option "Gesture" "off"
Nervengift / apa102.js
Created Mar 23, 2019
apa102 LED driver for neonious one
View apa102.js
// polyfill for Array.prototype.fill
if (!Array.prototype.fill) {
Object.defineProperty(Array.prototype, 'fill', {
value: function(value) {
if (this == null) {
throw new TypeError('this is null or not defined');
var O = Object(this);
Nervengift /
Last active Mar 9, 2019
statusline for German high speed trains (ICE)
set -e
tripInfo=$(curl -s|jq '.trip')
status=$(curl -s
next=$(echo $tripInfo|jq '.stopInfo.actualNext as $next|.stops[]|select(.station.evaNr == $next)')
if [ -z "$next" ]; then
echo "Endstation"
exit 0
Nervengift /
Created Oct 29, 2017
notification script for notmuch/afew
#!/usr/bin/env python3
# Send notifications for all mails with the "notify" tag via notify-send
# This is best used in combination with afew. To notify for all new messages just add
# the following filter to your ~/.config/afew/config just before [InboxFilter]:
# [Filter.0]
# message = notify
# query = tag:new AND NOT tag:killed AND NOT tag:spam
Nervengift / snd-dmenu
Last active May 18, 2016
dmenu/rofi menu for Entropia's sound board
View snd-dmenu
# use sound effects at Entropia via a dmenu
# run "snd update" to load and update the local cache of available sounds
# by Nervengift
[[ "x$XDG_CACHE_HOME" == "x" ]] && CACHEDIR="$HOME/.cache" || CACHEDIR="$XDG_CACHE_HOME"
[[ "x$1" == "xupdate" ]] && ssh bash -c \'find /home/entropia/clubautomation/snd -type f -printf \"%P\\n\" \' | tee $CACHEDIR/snd_dmenu
Nervengift / pandoc-md
Last active Jul 31, 2019
Automatically build markdown file on change using pandoc
View pandoc-md
function pandoc-md {
while true ;do
inotifywait -e modify $1 2>/dev/null
pandoc $1 -V geometry:margin=2cm -o $1.pdf
Nervengift / post-receive
Last active Feb 25, 2016
Generate a signed timestamp for all git commits using openssl and the DFN server
View post-receive
# install on central git repo as hooks/post-receive
# generates timestamp signatures for all commits
read oldrev newrev refname
mkdir -p timestamps
oldrev=$(git rev-parse $oldrev)
newrev=$(git rev-parse $newrev)
git rev-list "$oldrev..$newrev" | while read commit; do
echo "creating timestamp signature for $commit..."
Nervengift / foo.service
Last active Oct 16, 2015
Simple template unit file for running daemons via systemd
View foo.service
# Start after network (network may still not be online on start, see
# If the program forks to background
ExecStart=<full path to program [with parameters and option]>
# Run as specific user
Nervengift /
Last active Oct 17, 2019
Choose pulseaudio sink via rofi/dmenu
# choose pulseaudio sink via rofi or dmenu
# changes default sink and moves all streams to that sink
sink=$(ponymix -t sink list|awk '/^sink/ {s=$1" "$2;getline;gsub(/^ +/,"",$0);print s" "$0}'|rofi -dmenu -p 'pulseaudio sink:' -location 6 -width 100|grep -Po '[0-9]+(?=:)') &&
# alternate version using dmenu:
# sink=$(ponymix -t sink list|awk '/^sink/ {s=$1" "$2;getline;gsub(/^ +/,"",$0);print s" "$0}'|dmenu -p 'pulseaudio sink:'|grep -Po '[0-9]+(?=:)') &&
ponymix set-default -d $sink &&
for input in $(ponymix list -t sink-input|grep -Po '[0-9]+(?=:)');do
You can’t perform that action at this time.