Skip to content

Instantly share code, notes, and snippets.

@raymontag
raymontag / Makefile
Created January 8, 2018 07:53 — forked from lattera/Makefile
Spectre example code
PROG= spectre
SRCS= spectre.c
MAN=
.include <bsd.prog.mk>
@raymontag
raymontag / spectre.c
Created January 4, 2018 19:21 — forked from ErikAugust/spectre.c
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
@raymontag
raymontag / gwfl.pl
Last active May 22, 2020 07:48
A simple Perl-script to extract and execute wget commands from a log
#!/usr/bin/perl
# A simple Perl-script to extract and execute wget commands from a log
# I wrote it originally for Kippo because it downloads only if wget
# goes to port 80 but it's maybe capable of some other
# usecases. I call it gwfl for "get wget from log"
#
# Don't forget to install missing packages from CPAN with "cpan" or
# your package manager
use strict;
u
@raymontag
raymontag / grayfox-dwmstatus.c
Created June 13, 2014 14:03
A dwmstatus program, based on profil's dwmstatus
/* made by grayfox, inspired by profil-dwmstatus
**
** Compile with:
** gcc -Wall -pedantic -std=c99 -lX11 status.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>