Skip to content

Instantly share code, notes, and snippets.

View leachim6's full-sized avatar

Mike Donaghy leachim6

View GitHub Profile
@kmcallister
kmcallister / calc
Created July 28, 2019 17:11
Weight tracking scripts
#!/bin/sh
#set -e
./ewma.py < log > smoothed
echo
./progress.py "$@" < smoothed
echo
gnuplot < weight-graph.gpl
@TrentSPalmer
TrentSPalmer / 2018-02-13-051950_722x452_scrot.png
Last active May 26, 2024 18:52
Arch Headless Virt Install
2018-02-13-051950_722x452_scrot.png
@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
@willurd
willurd / web-servers.md
Last active July 22, 2024 08:45
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000