Skip to content

Instantly share code, notes, and snippets.

View kristianpaul's full-sized avatar

Cristian Paul Peñaranda Rojas kristianpaul

View GitHub Profile
@kristianpaul
kristianpaul / segfault.py
Created December 19, 2019 13:36 — forked from coolreader18/segfault.py
Make CPython segfault in 5 lines of code.
class E(BaseException):
def __new__(cls, *args, **kwargs):
return cls
def a(): yield
a().throw(E)
@kristianpaul
kristianpaul / spi.py
Created February 18, 2016 15:22 — forked from jordens/spi.py
# -*- coding: utf-8 -*-
#
# Copyright 2013-2015 Robert Jordens <jordens@gmail.com>
#
# This file is part of pdq2.
#
# pdq2 is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.