Skip to content

Instantly share code, notes, and snippets.

View alek-p's full-sized avatar
🏠

Alek P alek-p

🏠
View GitHub Profile
### Keybase proof
I hereby claim:
* I am alek-p on github.
* I am alekp (https://keybase.io/alekp) on keybase.
* I have a public key ASDSLl3NWuwpZ2Ltaufqn552Ojdn3A2iPoq8LNtE_8TZUgo
To claim this, I am signing this object:
@alek-p
alek-p / log_state.py
Last active July 30, 2018 22:30
Capture zfs and other debuging info
#!/usr/bin/python3
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A copy of the CDDL is available via the Internet at
# http://www.illumos.org/license/CDDL.
#
@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