Skip to content

Instantly share code, notes, and snippets.

View andrew-stclair's full-sized avatar

Andrew St Clair andrew-stclair

View GitHub Profile
@andrew-stclair
andrew-stclair / export-manual.sh
Last active July 5, 2024 02:20
Export the Linux Manual to /opt/man in pdf format
#!/bin/bash
echo "Installing required software"
apt-get update
apt-get install groff man manpages manpages-dev -y
echo "Creating output directory if it does not exist"
SEARCH_DIR="/usr/share/man/"
OUT_DIR="/opt/man"
mkdir -p $OUT_DIR
#!/bin/sh
gpg --dearmor -o /etc/apt/trusted.gpg.d/andrew-stclair-keyring.gpg << EndOfMessage
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGWXbFMBEADAcCiOGQDOlVFUkoyNX4P7jJHZ4AMaHXKKfuG5gv92KbLBvGfU
sG1R+i32h6rmtyMpIjp4vLLxOAPfYIuGdaY30ChVTvRH9m+hP2Ky5sB+LJSrwX9j
Jgeh3H4TRm2EqslnY/84HyxxGJRIySebOLi15/O2vROdneTzVItNeaS3J2XQvDaW
HJkGLd99IK/bYQnyzCaiTDcvmwQ7bkJUr7ezrOaZmA15X6jyJEs6UAxsBNsv3780
pljDxnZ52u0yItMW//ejw5k/vsKuqBGEv4IiXsbQfLZwnjA1x2VDGZ2a9s4MZRjM
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGWXbFMBEADAcCiOGQDOlVFUkoyNX4P7jJHZ4AMaHXKKfuG5gv92KbLBvGfU
sG1R+i32h6rmtyMpIjp4vLLxOAPfYIuGdaY30ChVTvRH9m+hP2Ky5sB+LJSrwX9j
Jgeh3H4TRm2EqslnY/84HyxxGJRIySebOLi15/O2vROdneTzVItNeaS3J2XQvDaW
HJkGLd99IK/bYQnyzCaiTDcvmwQ7bkJUr7ezrOaZmA15X6jyJEs6UAxsBNsv3780
pljDxnZ52u0yItMW//ejw5k/vsKuqBGEv4IiXsbQfLZwnjA1x2VDGZ2a9s4MZRjM
JkI1TcYC64psPB01A2RcRXZTDdma7LV5VNHAtMFxdeFt12HKb2096734jYqP6Stg
erJF/RcBNir/GK92mzu4fdxO4rDPGy5bliDofsmuA3x3LV4sfK/eoO3hv9Q5Cd+F
5vFxA3RN3KjD79QhjSyD5us9nSuEg5MBDHsWTGm6jXXNONPSA+/pKwqwgyVvzP8K
@andrew-stclair
andrew-stclair / README.md
Created September 12, 2025 06:59
Convert Sequentially named images into a video

Converting sequentially named images into a video

Step 1: Rename the files in sequence

rename 'our $i; s/_.*/sprintf("_%03d.png", $i++)/e' *.png

This command assumes the file name followes something like image_001.png or IMG_001.png etc...

It will then change the numbers at the end to start from 001 to however many images there are without skipping a number