Skip to content

Instantly share code, notes, and snippets.

@themagicalmammal
themagicalmammal / Optimizations_Artix.md
Last active March 6, 2026 11:15
Set of optimizations, I use on my Artix Setup

Artix Linux — Complete System Optimization Guide

Warning: This guide contains system-level modifications. Some steps are irreversible or can render your system unbootable. Read every section fully before executing any command. Know what you are doing, or do not proceed.

All examples are written for runit. Adapt service commands for OpenRC or s6 as needed.


Index

@stefanschmidt
stefanschmidt / remove-annotations.sh
Last active May 16, 2025 00:53
Remove all annotations from a PDF document
pdftk original.pdf output uncompressed.pdf uncompress
LANG=C sed -n '/^\/Annots/!p' uncompressed.pdf > stripped.pdf
pdftk stripped.pdf output final.pdf compress
@echristopherson
echristopherson / vimcat.sh
Created November 16, 2012 21:12
Modified version of Matthew Wozniski's vimcat.sh
#!/bin/bash
#!/usr/bin/env vim
#! This is a bash script that executes itself as a vimscript to do its work
#! vim:ft=vim:ts=2:sts=2:sw=2
: if 0
tmpfile=$(mktemp -t vimcat.XXXXXXXX)
exec 9<>"$tmpfile"
rm "$tmpfile"