Skip to content

Instantly share code, notes, and snippets.

View adambarta's full-sized avatar

Adam Barta adambarta

View GitHub Profile
2015-08-26 09:42:14 +0200
./configure
--disable-debug
--disable-shared
--disable-indev=jack
--prefix=/usr/local/Cellar/libav/11.4_1
--enable-gpl
--enable-nonfree
--enable-version3
@adambarta
adambarta / fan.c
Created August 7, 2012 14:49
FAN - pipe standard input to multiple command standard inputs
#include <stdio.h>
#define BUF 4096
static volatile int run = 0;
int main(char argc, char *argv[])
{
unsigned char buf[BUF];
FILE *fn[argc - 1];
@adambarta
adambarta / mutex.c
Created July 11, 2012 15:23
Mutexes on Linux (x86_64) in userspace using futex
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <stdio.h>
#include <sysexits.h>
#include <unistd.h>
#include <stdint.h>
#include <limits.h>
#include <asm-generic/mman.h>