Skip to content

Instantly share code, notes, and snippets.

View pioz's full-sized avatar
🧙‍♂️
[object Object]

Enrico pioz

🧙‍♂️
[object Object]
View GitHub Profile
@pioz
pioz / gist:727212
Created December 3, 2010 16:56
Text 2 Speech
mplayer -really-quiet "http://translate.google.com/translate_tts?tl=LOCALE&q=TEXT"
@pioz
pioz / autoclick.c
Last active July 10, 2023 15:24
Autoclick
// Written by Pioz.
// Compile with: gcc -o autoclick autoclick.c -lX11
#include <stdio.h> // printf, fprintf and fflush
#include <string.h> // memset
#include <unistd.h> // sleep and usleep
#include <X11/Xlib.h> // X11
#include <X11/Xutil.h> // XGetPixel and XDestroyImage
// Simulate mouse click
@pioz
pioz / gist:707537
Created November 20, 2010 02:00
Nifty color
Nifty color: #4B7399
@pioz
pioz / gist:655455
Created October 30, 2010 16:06
Copy partitions table
$ sfdisk -d /dev/sda > partitions.txt
$ sfdisk /dev/sdb < partitions.txt
@pioz
pioz / gist:403496
Created May 17, 2010 07:28
Adding system user
adduser --system --no-create-home --group --shell /bin/false runner
@pioz
pioz / gist:403137
Created May 16, 2010 20:28
gstreamer-properties: remove blue color
videobalance hue=-1 ! autovideosink
ffmpegcolorspace ! video/x-raw-yuv,format=(fourcc)YV12 ! xvimagesink