This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROG= spectre | |
SRCS= spectre.c | |
MAN= | |
.include <bsd.prog.mk> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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> |