Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View MrMino's full-sized avatar
🚀
LTE → 🌘

Blazej Michalik MrMino

🚀
LTE → 🌘
View GitHub Profile
@MrMino
MrMino / repack.py
Last active July 20, 2021 15:43
Repack a wheel
# License: MIT
#
# This script repacks a wheel under "path/to/your/wheel"
# such that a "+myversion" suffix is added to the version.
#
# The new wheel is created in the directory specified by
# the path to "foo2 = WheelFile(...)" - it is optional,
# in case it's not given CWD is used.
#
# Use with wheelfile v0.0.7
@MrMino
MrMino / Dockerfile
Last active June 19, 2021 10:49
Repro container for ipython/ipython#12203
from ubuntu:18.04
run apt update
run apt install -y python3.8 python3-pip
run python3.8 -m pip install ipdb ipython
run echo '\
import unittest\n\
\n\
\n\
class Test(unittest.TestCase):\n\
#!/bin/bash
function usage
{
echo "Usage: $0 <-a addr> [-n iterations] [-nn count]"
exit 1
}
# If not enough arguments show usage
if [[ $# -lt 1 ]]