Skip to content

Instantly share code, notes, and snippets.

@manics
manics / requirements.txt
Created November 10, 2025 10:56
pip-tools
pip-tools
name: example-environment
channels:
- conda-forge
dependencies:
- python=3.14
- numpy
- pandas
- matplotlib
- pip
- pip:
pypi-timemachine
requests
@manics
manics / README.md
Created August 13, 2025 14:15
Hugo example
@manics
manics / extract-tag-changelog.py
Last active August 4, 2025 18:19
Extract relevant sections of a CHANGELOG for a given version
#!/usr/bin/env python
from argparse import ArgumentParser
from base64 import b64decode
from github import Github, GithubException
import os
import re
# If None then unauthenticated requests are made (may hit API limits)
GITHUB_TOKEN = os.getenv("GITHUB_TOKEN")
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
name: example-environment
channels:
- conda-forge
dependencies:
- python=3.12
- uv
- pip
- pip:
- juvio
name: gmft
channels:
- conda-forge
dependencies:
- pytorch
- pip
- pip:
- gmft
@manics
manics / omop-cdm-postgres.sh
Created March 20, 2025 17:51
OMOP CDM PostgreSQL database with example data
#!/bin/sh
# First run postgres, e.g.
# nerdctl run -it --rm -p5432:5432 -e POSTGRES_PASSWORD=password docker.io/library/postgres:17
set -eu
# Postgres connection details
PG_HOST=127.0.0.1
PG_USER=postgres
PG_SCHEMA=public
@manics
manics / k3s_gVisor_install.md
Created March 15, 2025 17:48 — forked from Frichetten/k3s_gVisor_install.md
How to install and configure gVisor for K3s

How to install and configure gVisor for K3s

This gist is a quick explainer on how to install and configure gVisor on K3s. There is a sort of hidden gotcha if you aren't reading the documentation thoroughly. If you already have a K3s cluster setup skip to the appropriate section below.

Install K3s

Install K3s as described in the documentation.

Install gVisor