Skip to content

Instantly share code, notes, and snippets.

@xqms
xqms / Makefile
Created October 12, 2014 19:04
i2c-rk3x clock rate change tester
ifneq ($(KERNELRELEASE),)
obj-m := i2c-clk-tester.o
i2c-clk-tester-y := tester.o
else
KDIR ?= /lib/modules/`uname -r`/build
@xqms
xqms / opensync-google-calendar.py
Created August 25, 2010 19:14
Google calendar plugin for opensync
"""
Google calendar plugin for opensync.
Installation:
- Install the opensync python plugin (debian: opensync-module-python)
- Copy this file to /usr/lib/opensync/python-plugins/ (may have to create the directory)
Quite ugly, but works for me.
If someone wants to work on it:
- opensync-style configuration (Google AuthSub session token)
@xqms
xqms / googletoken.py
Created August 26, 2010 07:59
Generate a google session token for google calendar
"""
Get a google AuthSub token for google calendar
Usage: just run and follow the instructions.
Author: Max Schwarz <Max@x-quadraht.de>
"""
import gdata
@xqms
xqms / latex_compile.sh
Created May 16, 2011 13:11
PdfLatex, Bibtex and Chapterbib
#!/bin/bash
find . -name '*.aux' -print0 | xargs -0 rm
pdflatex report
dirs="dir1 dir2 dir3"
for dir in $dirs; do
for f in $dir/*.aux; do
static void eject_dock(struct dock_station *ds)
{
struct acpi_object_list arg_list;
union acpi_object arg;
acpi_status status;
acpi_handle tmp;
/* all dock devices should have _EJ0, but check anyway */
status = acpi_get_handle(ds->handle, "_EJ0", &tmp);
if (ACPI_FAILURE(status)) {
static void eject_dock(struct dock_station *ds)
{
struct acpi_object_list arg_list;
union acpi_object arg;
acpi_status status;
acpi_handle tmp;
/* all dock devices should have _EJ0, but check anyway */
status = acpi_get_handle(ds->handle, "_EJ0", &tmp);
if (ACPI_FAILURE(status)) {
jhbuild -f jhbuildrc build \
xserver \ # xorg core
xf86-video-intel \ # my video driver
xf86-input-evdev \ # input via evdev
xkeyboard-config \ # for keymaps and so on
xf86-input-synaptics # touchpad
@xqms
xqms / build.sh
Created September 25, 2011 19:20
Getting XI2.1 on your machine - http://xqms.github.com/blog/getting_xi21.html
jhbuild -f jhbuildrc buildone inputproto xserver libXi xf86-input-evdev
add_subdirectory(libpublictransporthelper)
add_subdirectory(applet)
add_subdirectory(applet-graphicaltimetableline)
add_subdirectory(engine-openstreetmap)
add_subdirectory(icons)
#add_subdirectory(runner)
add_subdirectory(applet-flights)
add_subdirectory(engine)
#add_subdirectory(timetablemate)