Skip to content

Instantly share code, notes, and snippets.

View yuwata's full-sized avatar

Yu Watanabe yuwata

View GitHub Profile
@yuwata
yuwata / prdvipdfmx.def
Created February 4, 2016 09:35 — forked from zr-tex8r/prdvipdfmx.def
LaTeX: To use priview package ('tightpage' option) with dvipdfmx
%
% prdvipdfmx.def
%
%% Avoids duplicate loading.
\csname bxpw@prdvipdfmx@loaded\endcsname
\def\bxpw@prdvipdfmx@loaded{\endinput}
%% If the engine is XeTeX or pdfTeX/LuaTeX then quits.
\@tempswatrue
\ifx\XeTeXversion\@undefined\else \@tempswafalse \fi
\ifx\pdfoutput\@undefined\else
@yuwata
yuwata / cve_2016_0728.c
Created January 20, 2016 09:31 — forked from libcrack/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>