Skip to content

Instantly share code, notes, and snippets.

View ezequielv's full-sized avatar

Ezequiel Valenzuela ezequielv

View GitHub Profile
@akatch
akatch / xboxdrv.service
Created October 24, 2014 01:54
systemd script for xboxdrv
# Systemd unit to enable xboxdrv driver for Xbox 360 controller
# Usage:
# save to /lib/systemd/system/xboxdrv.service
# to start: sudo service xboxdrv start
# to enable on boot: sudo systemctl enable xboxdrv
[Unit]
Description=Xbox controller driver daemon
[Service]
#!/usr/bin/env zsh
branch=`git rev-parse --abbrev-ref HEAD`
git show-branch | ack '\*' | ack -v "$branch" | head -n1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//'
# How it works:
# 1| Display a textual history of all commits.
# 2| Ancestors of the current commit are indicated
# by a star. Filter out everything else.