Skip to content

Instantly share code, notes, and snippets.

View xurble's full-sized avatar

Gareth Simpson xurble

View GitHub Profile
@xurble
xurble / venv_picker
Last active February 16, 2024 07:59
Python venv selection function for .zshrc
function ve() {
printf "Select a venv:\n"
# Populate venv_list array with folder names
venv_list=()
i=1
for d in ~/venvs/*/; do
folder_name=$(basename "$d")
venv_list+=("$folder_name")
printf "%d) %s\n" "$i" "$folder_name"
@xurble
xurble / cloudflare_reader.js
Last active October 11, 2022 11:29
A super simple Cloudflare worker to read from cloudflare protected sources
/**
* This worker allow crawlers to bypass
* cloudflare's protection by fetching the feed on cloudflare's own
* infrastrcture.
*
* To use, create a new cloudflare worker and replace it with the
* contents of this file.
*
* To read a feed, instead read https://[name-of-worker].[your-worker-account].workers.dev/read/?target=[url-to-read]
*/