Skip to content

Instantly share code, notes, and snippets.

Avatar
👺
Hacking away at my workstation

Harikrishnan V hazkaz

👺
Hacking away at my workstation
View GitHub Profile
@rootkea
rootkea / spectre.c
Created Jan 4, 2018
PoC from Spectre Attacks: Exploiting Speculative Execution (https://spectreattack.com/spectre.pdf)
View spectre.c
#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
@shreyansb
shreyansb / flask_profiler.py
Last active Mar 2, 2022
A profiler for Flask apps
View flask_profiler.py
"""
This module provides a simple WSGI profiler middleware for finding
bottlenecks in web application. It uses the profile or cProfile
module to do the profiling and writes the stats to the stream provided
To use, run `flask_profiler.py` instead of `app.py`
see: http://werkzeug.pocoo.org/docs/0.9/contrib/profiler/
and: http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xvi-debugging-testing-and-profiling
"""
@staltz
staltz / introrx.md
Last active Aug 11, 2022
The introduction to Reactive Programming you've been missing
View introrx.md