Skip to content

Instantly share code, notes, and snippets.

View konomikitten's full-sized avatar

Konomi konomikitten

  • Melbourne, Australia
  • 04:49 (UTC +10:00)
View GitHub Profile
@obfusk
obfusk / VENV.md
Last active February 19, 2023 05:47
global venv

PEP 668 breaks --user

As a workaround, you can create a global venv that acts a lot like --user does now.

NB: this works for scripts that are part of the packages installed in the venv, but scripts that use e.g. #!/usr/bin/python3 will not be able to access the modules from the venv, only scripts called via ~/.venv/bin/python3 (or ~/.venv/bin/python, ~/.venv/bin/python3.11 etc.) will be able to access those.

Create venv

python3 -mvenv --system-site-packages --without-pip ~/.venv
@obfusk
obfusk / convert_to_requests.py
Last active December 12, 2022 14:31
-> https://github.com/obfusk/convert-to-requests | parse a curl command (e.g. from "copy as cURL") from stdin and use python requests to execute it
#!/usr/bin/python3
# SPDX-FileCopyrightText: 2022 FC Stegerman <flx@obfusk.net>
# SPDX-License-Identifier: GPL-3.0-or-later
import argparse
import json
import re
import shlex
import sys
@travisbrown
travisbrown / katherine_deves-deleted-tweets.md
Last active May 18, 2022 07:20
Deleted tweets by Liberal MP candidate Katherine Deves, Scott Morrison's "captains pick" for Warringah
@varqox
varqox / install_debian_with_debootstrap_howto.md
Last active April 14, 2024 21:18
Instructions how to install Debian using debootstrap