Skip to content

Instantly share code, notes, and snippets.

@erichschroeter
erichschroeter / file_completion.patch
Created Oct 9, 2012
dmenu filename tab completion
View file_completion.patch
--- dmenu.c 2012-10-09 15:30:08.605004976 -0500
+++ dmenu.c 2012-10-09 15:46:59.318016781 -0500
@@ -5,6 +5,7 @@
#include <string.h>
#include <strings.h>
#include <unistd.h>
+#include <wordexp.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/Xutil.h>
@erichschroeter
erichschroeter / 74x165.h
Last active Oct 10, 2015
Linux driver for 74x165 PISO chip.
View 74x165.h
#ifndef LINUX_SPI_74X165_H
#define LINUX_SPI_74X165_H
struct nxp_74x165_chip_platform_data {
/* number assigned to the first GPIO */
unsigned base;
/* GPIO used for latching chip(s) */
unsigned latch;
/* number of chips daisy chained */
unsigned daisy_chained;