Skip to content

Instantly share code, notes, and snippets.


Floris Bruynooghe flub

View GitHub Profile
flub /
Created Apr 28, 2022
Script to test App Store Connect credentials as they are used by sentry.
"""Test credentials.
- Paste in the KEY_ID, KEY, and ISSUER_ID.
- Install dependencies: ``pip install requests pyjwt[crypto]``
- Run: ``python``
import http.client

Keybase proof

I hereby claim:

  • I am flub on github.
  • I am flub ( on keybase.
  • I have a public key whose fingerprint is 0FB1 803B C91D 1B60 1E2A 2C22 702A 26DB 4CCB 3FFC

To claim this, I am signing this object:

View gist:b6d20e123a0b568e18a9
# -*- coding: utf-8 -*-
"""Generic host information"""
from __future__ import (absolute_import,
unicode_literals, print_function, division)
import abc
flub / gist:6365845
Last active Dec 21, 2015
greenlet solaris crasher Upon interrupting this (^C) this crashes reliably: $ pybin/bin/python ^CException in thread Thread-14: Traceback (most recent call last): File "/export/home/flub/issue546/greenlet-issue14/pybin/lib/python2.7/", line 551, in __bootstrap_inner File "", line 23, in run gt.switch() Sys…
View gist:6365845
import sys
import threading
import time
import greenlet
flub /
Created Jun 21, 2012
Demo script which makes greenlet raise SystemError
import random
import sys
import threading
import time
import dpkt
import eventlet
import eventlet.xthread
from import socket
flub /
Created Jun 1, 2012
pytest-django experiment
"""pytest plugin for testing django projects
This plugin handlers creating and destroying the test environment and
database. It is only enabled when DJANGO_SETTINGS_MODULES is set in
either the environment, the ini file or a file. In case
of files the django modules are only imported at the last
possible moment and it is also possible to test multiple sites
(multiple django settings modules) in one py.test process.
Similar to Django's TestCase, a transaction is started and rolled back