Skip to content

Instantly share code, notes, and snippets.

View rampantspark's full-sized avatar
💜
building things and breaking them

Anthony Lyons rampantspark

💜
building things and breaking them
View GitHub Profile
@rampantspark
rampantspark / web-servers.md
Created June 4, 2023 18:06 — forked from willurd/web-servers.md
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
@rampantspark
rampantspark / grub-fix.sh
Created December 13, 2022 16:03
GRUB grub_debug_malloc not founc fix
# Since the GRUB issue around the end of August 2022 I have had to chroot in and reinstall GRUB every time I update my system.
# I have been getting the grub_debug_malloc not found error on boot.
# The only remediation I have been able to implement is the following.
# Decrypt luks partition
cryptsetup luksOpen /dev/nvme1n1p2 crypt_device
# Mount root
mount /dev/mapper/crypt_device /mnt
# Mount /boot/efi Sometime this will not work and the /boot/efi directory needs to be specified with grub-install. See below.
mount /dev/nvme1n1p1 /mnt/boot/efi