Skip to content

Instantly share code, notes, and snippets.

View oz123's full-sized avatar
🎯
Focusing

Oz Tiram oz123

🎯
Focusing
View GitHub Profile
@oz123
oz123 / regex_example.c
Created December 1, 2014 08:34
A reminder to self on how to use regex in c
#include <regex.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char *argv[]){
regex_t regex;
int reti;
char msgbuf[100];
size_t max_groups = 1;
/* Test for hanged mounts */
#include <stdio.h>
#include <signal.h>
#include <string.h>
#include <sys/stat.h>
#include <time.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <stdlib.h>
#include <unistd.h>
@oz123
oz123 / jessie.preseed
Last active January 11, 2020 22:57 — forked from sturadnidge/wheezy.preseed
working preseed for debian testing
###
#
# Preseed for a Debian based machine on kvm
#
# Boot this file with: press TAB on the installer
# add the following to the boot parameters:
#
# install keymap=en_US locale=en_US netcfg/get_hostname=testserve \
# netcfg/get_domain=carfax.eu preseed/url=http://192.168.XXX.XXX:8000/wheezy.preseed
#
@oz123
oz123 / rppy.py
Last active December 24, 2015 12:19
Rppy - my little script to enjoy Radio Paradise. The script uses mplayer to play and libnotify to send messages with the song information to the desktop notification area. I tested it on Debian and Mate-Desktop
s