Skip to content

Instantly share code, notes, and snippets.

@antonijn
antonijn / list.h
Last active April 18, 2016 17:32
Linux kernel linked list, modified for userspace
#ifndef LINUX_LIST_H
#define LINUX_LIST_H
#include <stddef.h>
/**
* container_of - cast a member of a structure out to the containing structure
* @ptr: the pointer to the member.
* @type: the type of the container struct this is embedded in.
* @member: the name of the member within the struct.
@antonijn
antonijn / streaming.sh
Last active December 23, 2015 01:29 — forked from brodul/streaming.sh
#! /bin/bash
# originaly from http://tinyurl.com/twitch-linux from taladan
# www.youtube.com/user/taladan
# gist created by brodul
INRES="1280x800" # input resolution
#OUTRES="1024x640" # Output resolution
OUTRES="800x500" # Output resolution