Skip to content

Instantly share code, notes, and snippets.

@erichschroeter
erichschroeter / file_completion.patch
Created October 9, 2012 20:58
dmenu filename tab completion
--- 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 November 3, 2023 06:56
Linux driver for 74x165 PISO chip.
#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;