Skip to content

Instantly share code, notes, and snippets.

View 0xAF's full-sized avatar

Stanislav Lechev [0xAF] 0xAF

View GitHub Profile
@s1037989
s1037989 / tiny
Last active June 12, 2017 18:36
Tiny URL clone built with Mojolicious in 1 hour
#!/usr/bin/env perl
use Mojolicious::Lite;
use Mojo::Pg;
use List::Util qw(shuffle);
# tiny.conf
# { pg => 'postgresql://a:b@c/d', };
# Get a quick and free tiny hosted Postgresql database at
@jpouellet
jpouellet / cve_2016_0728.c
Last active March 20, 2018 18:40 — forked from gcmurphy/cve_2016_0728.c
cve_2016_0728 exploit
/* $ gcc cve_2016_0728.c -o cve_2016_0728 -lkeyutils -Wall */
/* $ ./cve_2016_072 PP_KEY */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <keyutils.h>
#include <unistd.h>
#include <time.h>
@Geal
Geal / future.c
Last active May 8, 2024 08:44
small future and promise library in C with pthreads
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <unistd.h>
#include <stdbool.h>
#include <time.h>
#include <stdarg.h>
#include <string.h>
#include "future.h"