Skip to content

Instantly share code, notes, and snippets.

View bkmeneguello's full-sized avatar

Bruno Meneguello bkmeneguello

View GitHub Profile
@bkmeneguello
bkmeneguello / skelfs.c
Created June 28, 2013 12:58
FUSE implementation skelekton
/*
FUSE: Filesystem in Userspace
Copyright (C) 2013 Bruno Meneguello
This program can be distributed under the terms of the GNU GPL.
gcc -Wall skelfs.c `pkg-config fuse --cflags --libs` -o skelfs
*/
#define FUSE_USE_VERSION 26
#!/bin/bash
sox $IN_FILE -r $RATE -b $BITS $OUT_FILE
#!/bin/bash
xprop _NET_WM_PID #PID da janela selecionada
#!/bin/bash
trap '<some command>' EXIT #XXX of SIG_XXX
<more commands> & #send to bg
wait #wait bg commands
#!/bin/bash
ffmpeg -f video4linux2 -r 25 -s 640x480 -i /dev/video0 -sameq $FILE
#!/bin/bash
x11vnc -shared -viewonly -ncache 10
#!/bin/bash
ffmpeg -y -f alsa -ac 2 -ar 128000 -ab 160k -i pulse -f x11grab -r 30 -s `xdpyinfo | grep 'dimensions:'|awk '{print $2}'` -i :0.0 -sameq -threads 0 $FILE