Skip to content

Instantly share code, notes, and snippets.

$ lsmod
Module Size Used by
uinput 8308 0
rc_dvbsky 1127 0
m88ds3103 20615 2
snd_hda_codec_hdmi 27857 4
kvm_intel 123597 0
kvm 388889 1 kvm_intel
cx25840 49221 1
gpio_ich 4544 0
@olebowle
olebowle / PKGBUILD
Created June 4, 2013 20:57
PKGBUILD pidgin-gnome-shell-extension-git
pkgname=pidgin-gnome-shell-extension-git
pkgver=20130430
pkgrel=1
pkgdesc="A GNOME Shell extension that provides integration with Pidgin."
arch=('any')
url="https://github.com/Psykar/gnome-shell-extensions-pidgin"
license=('unknown')
depends=('gnome-shell' 'pidgin')
makedepends=('git')
source=('git://github.com/Psykar/gnome-shell-extensions-pidgin.git')
@olebowle
olebowle / PKGBUILD
Last active August 29, 2015 13:57
sm-ftl
pkgname=('sm-ftl')
pkgver=$(pacman -Q linux | cut -f2 -d' ' | cut -f1 -d'-')
pkgrel=1
_extramodules=extramodules-3.14-ARCH
url='http://www.kernel.org/'
pkgdesc="SmartMedia-xD new translation layer module"
arch=('i686' 'x86_64')
license=('GPL2')
depends=("linux=$pkgver")
makedepends=("linux-headers=$pkgver")
@olebowle
olebowle / WEC1020.patch
Last active August 29, 2015 13:57
WEC1020
--- a/drivers/media/rc/winbond-cir.c 2012-12-11 04:30:57.000000000 +0100
+++ b/drivers/media/rc/winbond-cir.c 2013-02-18 12:53:12.656741282 +0100
@@ -951,7 +951,10 @@
if (!(pnp_port_len(device, 0) == EHFUNC_IOMEM_LEN &&
pnp_port_len(device, 1) == WAKEUP_IOMEM_LEN &&
pnp_port_len(device, 2) == SP_IOMEM_LEN)) {
- dev_err(dev, "Invalid resources\n");
+ dev_err(dev, "Invalid resources len0:%u/%u (%u) len1:%u/%u (%u) len2:%u/%u (%u)\n",
+ pnp_port_len(device, 0), EHFUNC_IOMEM_LEN, pnp_port_valid(device, 0),
+ pnp_port_len(device, 1), WAKEUP_IOMEM_LEN, pnp_port_valid(device, 1),
@olebowle
olebowle / Makefile
Last active August 29, 2015 14:08
blinkLink
TARGET = blinkLink
# Build configuration
VPATH += cmsis_boot cmsis_boot/startup
CRT0 = system_stm32f10x.o startup_stm32f10x_md.o
VPATH += stm_lib/src
ST_OBJ = stm32f10x_gpio.o stm32f10x_rcc.o
# Source files configuration
$ make
arm-none-eabi-gcc -Wall -ffunction-sections -fno-builtin -mcpu=cortex-m3 -mthumb -g -Os -flto -Icmsis -Icmsis_boot -Istm_lib/inc -Iusb_hid -Iusb_hid/inc -Iirmp -DSTM32F103C8 -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -c -o main.o main.c
arm-none-eabi-gcc -Wall -ffunction-sections -fno-builtin -mcpu=cortex-m3 -mthumb -g -Os -flto -Icmsis -Icmsis_boot -Istm_lib/inc -Iusb_hid -Iusb_hid/inc -Iirmp -DSTM32F103C8 -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -c -o usb_hid/usb_hid.o usb_hid/usb_hid.c
arm-none-eabi-gcc -Wall -ffunction-sections -fno-builtin -mcpu=cortex-m3 -mthumb -g -Os -flto -Icmsis -Icmsis_boot -Istm_lib/inc -Iusb_hid -Iusb_hid/inc -Iirmp -DSTM32F103C8 -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -c -o cmsis_boot/system_stm32f10x.o cmsis_boot/system_stm32f10x.c
arm-none-eabi-gcc -Wall -ffunction-sections -fno-builtin -mcpu=cortex-m3 -mthumb -g -Os -flto -Icmsis -Icmsis_boot -Istm_lib/inc -Iusb_hid -Iusb_hid/inc -Iirmp -DSTM32F103C8 -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -c -o irmp/irsnd.o irmp/irsnd.c
i
@olebowle
olebowle / main.c
Last active August 29, 2015 14:08
STM32F103C8-010_new
/*
* IR receiver, sender, USB wakeup, motherboard switch wakeup, wakeup timer,
* USB HID device, eeprom emulation
*
* Copyright (C) 2014 Jörg Riechardt
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
@olebowle
olebowle / irmpctl
Created November 4, 2014 12:36
irmpctl
irmpctl
-d --detect autodetect device
-f/--flash=fw flash firmware fw
-g --get
-c get capabilities
-r --reset
-s --set
-a/--alarm wakeup alarm in seconds from now
-w/--wakeslot=x wakeup ir-code of slot x
-t/--trigcmdslot=x trigger command of slot x
@olebowle
olebowle / PKGBUILD
Created February 1, 2015 09:22
eventlircd-svn
# Maintainer: Jörg Hansen (joerg dot hansen at gmx dot net)
pkgname=eventlircd-svn
pkgver=44
pkgrel=3
pkgdesc="Eventlircd daemon providing functions for LIRC devices"
arch=('i686' 'x86_64')
url="https://code.google.com/p/eventlircd"
license=('GPL2')
depends=('libsystemd')
makedepends=('subversion')
@olebowle
olebowle / PKGBUILD
Created February 9, 2015 13:03
dpic
# Maintainer: Matteo Agostinelli <matteo@agostinelli.me>
pkgname=dpic
pkgver=20150204
pkgrel=1
pkgdesc="A pic language interpreter"
arch=('i686' 'x86_64')
url="http://www.ece.uwaterloo.ca/~aplevich/dpic/"
license=('BSD')
depends=('glibc')
source=('https://ece.uwaterloo.ca/~aplevich/dpic/dpic.tar.gz')