Skip to content

Instantly share code, notes, and snippets.

View Qalthos's full-sized avatar

Kate Case Qalthos

View GitHub Profile
@m-ou-se
m-ou-se / replace-debian-with-arch.txt
Last active October 22, 2023 12:16
Instructions to replace a live Debian installation with Arch
# Download latest archlinux bootstrap package, see https://www.archlinux.org/download/
wget 'ftp://ftp.nluug.nl/pub/os/Linux/distr/archlinux/iso/latest/archlinux-bootstrap-*-x86_64.tar.gz'
# Make sure you'll have enough entropy for pacman-key later.
apt-get install haveged
# Install the arch bootstrap image in a tmpfs.
mount -t tmpfs none /mnt
cd /mnt
tar xvf ~/archlinux-bootstrap-*-x86_64.tar.gz --strip-components=1
@dvarrazzo
dvarrazzo / ditaa_rst.py
Last active June 8, 2022 04:05
ditaa ascii art diagrams in reStructuredText
#!/usr/bin/env python
"""Custom reST_ directive for ditaa_ integration.
.. _reST: http://docutils.sourceforge.net/rst.html
.. _ditaa: http://ditaa.sourceforge.net/
"""
import os
import tempfile
from zlib import adler32
@pao
pao / getHeart.py
Created January 20, 2012 06:17
Script to batch download additional digital materials for Artificial Heart Level 4.
'''
Usage: python getHeart.py YOURCODE your@email.com someregex
The "someregex" matches against the link text.
For instance:
* "flac" will get all the FLAC downloads
* "flac|VIDEO" will get FLAC and video
and so on.
'''
import os