Skip to content

Instantly share code, notes, and snippets.

@logan2611
logan2611 / DeckforEnthusiasts.md
Last active May 20, 2024 05:25
Deck for Enthusiasts Guide
@logan2611
logan2611 / README.md
Last active February 25, 2023 06:56
BTRFS maintenance
@logan2611
logan2611 / alpine.sh
Last active August 1, 2020 20:24
Converts any OpenVZ VPS to Alpine Linux. Edited from https://gist.github.com/trimsj/c1fefd650b5f49ceb8f3efc1b6a1404d
#!/bin/sh -e
# Converts OpenVZ VPS to Alpine Linux
# WARNING: This script will wipe any data in your VPS!
# GPLv2; Based on https://gist.github.com/trimsj/c1fefd650b5f49ceb8f3efc1b6a1404d, which is partly based on https://gitlab.com/drizzt/vps2arch
server=http://images.linuxcontainers.org
version="3.12"
path=$(wget -O- ${server}/meta/1.0/index-system | \
grep $version | awk '-F;' '($1=="alpine" && $3=="amd64") {print $NF}' | tail -1)