Skip to content

Instantly share code, notes, and snippets.

View caladri's full-sized avatar

Juli Mallett caladri

View GitHub Profile
@caladri
caladri / spectre.c
Last active January 5, 2018 20:01 — forked from ErikAugust/spectre.c
Spectre example code; counter in a thread, no need for rdtscp.
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <x86intrin.h> /* for clflush */
/********************************************************************
Victim code.
********************************************************************/

Keybase proof

I hereby claim:

  • I am caladri on github.
  • I am juli (https://keybase.io/juli) on keybase.
  • I have a public key whose fingerprint is 5F77 18A3 BE23 B4E0 5C3B 972E 4B62 1DEC 437B 7D76

To claim this, I am signing this object:

@caladri
caladri / itunes-path-fix.pl
Created July 30, 2014 07:35
I moved my iTunes Library from a case-insensitive drive to a case-sensitive one and used this crummy script to fix up the path names in the library XML file.
#! /usr/bin/env perl
#
# vim: si ai
use strict;
use warnings;
use URI::Escape;
while (<>) {