Skip to content

Instantly share code, notes, and snippets.

View alek-p's full-sized avatar
🏠

Alek P alek-p

🏠
View GitHub Profile
@alek-p
alek-p / spectre.c
Created January 9, 2018 17:39 — 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
@alek-p
alek-p / zfs_revert-0.1.py
Created August 11, 2017 16:57
Revert ZFS changes by destroying uberblocks
#!/usr/bin/python
# -*- coding: utf-8 -*-
#Script for reverting ZFS changes by destroying uberblocks
#Author: Martin Vool
#E-mail: mardicas@gmail.com
#Version: 0.1
#Date: 16 November 2009