Skip to content

Instantly share code, notes, and snippets.

View stuaxo's full-sized avatar
💭
 

Stuart Axon stuaxo

💭
 
View GitHub Profile
@stuaxo
stuaxo / cairo-manylinux.sh
Last active December 4, 2019 00:15 — forked from anntzer/cairo-manylinux.sh
manylinux build script for pycairo
#!/bin/bash
# Written by Antony Lee (@anntzer).
set -e
PYTHON_VERSION=37
PIP="/opt/python/cp$PYTHON_VERSION-cp${PYTHON_VERSION}m/bin/pip"
if ! [[ -e "$PIP" ]]; then
# Not in the manylinux image yet: call self from within docker.
docker run -it \
@stuaxo
stuaxo / rails.ipynb
Created May 22, 2018 16:45 — forked from l15n/rails.ipynb.json
Rails and Jupyter
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stuaxo
stuaxo / instfdnp.bat
Created May 6, 2017 10:33 — forked from chaliy/instfdnp.bat
Install FDNPKG tool for FreeDOS.
cd c:\freedos
wget http://downloads.sourceforge.net/project/fdnpkg/fdnpkg/v0.99.6/fdnpkg.zip
unzip fdnpkg.zip
@stuaxo
stuaxo / processify.py
Last active April 29, 2023 21:20 — forked from schlamar/processify.py
processify
# modified from https://gist.github.com/schlamar/2311116#file-processify-py-L17
# also see http://stackoverflow.com/questions/2046603/is-it-possible-to-run-function-in-a-subprocess-without-threading-or-writing-a-se
import inspect
import os
import sys
import traceback
from functools import wraps
from multiprocessing import Process, Queue