Paul's website

I'm Paul Beard. These are some of my projects: tools for skydivers, command-line tools, and a few odds and ends.

This C program prints my name.

#include <stdio.h>
int(main)(){int(x)=0;while(putchar((int)(x<5?(((-0.25*x-3.83)*x+14.7)*x+6.3)*x++
+80.9:((((0.99167*x-39.375)*x+612.292)*x-4668.13)*x+17474.2)*x++-25627.1))-10);}
How it works

The program computes the character codes of my name with two polynomials, one for "Paul " and one for "Beard", found with these Wolfram Alpha queries:

interpolating polynomial {0,80},{1,97},{2,117},{3,108},{4,32} = x (x ((-x/4-23/6) x+59/4)+19/3)+80

interpolating polynomial {5,66},{6,101},{7,97},{8,114},{9,100},{10,10} = x (x (x (((119 x)/120-315/8) x+14695/24)-37345/8)+1048453/60)-25628

The brackets, as in int(main)(), let it do without any whitespace.

Skydiving

Command-line tools

GoPro Media Library CLI

gpmlcli is a tool for uploading, and downloading GoPro videos to, and from the GoPro Media Library.

Videos are matched by name, so a video that is already in the library is not uploaded again, and a video that is already in the directory is not downloaded again. Downloaded videos are given the modification time of when they were captured.

Usage
$ gpmlcli -h
gpmlcli version 1.4.0
Copyright (c) 2026 Paul Beard.
Website: paulbeard.name

gpmlcli is a tool for uploading, and downloading GoPro videos to, and from the GoPro Media Library.

Usage: gpmlcli [-h] COMMAND

Commands:
 login EMAIL PASSWORD
 logout
 list [-t] [-c]
 find [-c] SRC...
 rename FROM TO
 delete NAME...
 upload   [-v] [-P PARALLEL] SRC...
 download [-v] [-P PARALLEL] [-C CHANGE_DIRECTORY] [NAME...]

Options:
 -h                   show this help
 -t                   sort by captured at timestamp
 -c                   align the output in columns
 -v                   report videos that already exist
 -P PARALLEL          number of transfers at once
 -C CHANGE_DIRECTORY  download into this directory
 EMAIL                account email address
 PASSWORD             account password
 SRC                  file or directory to upload or find
 FROM                 current video name
 TO                   new video name
 NAME                 video name

Examples:
  Upload all missing videos from the Downloads directory, four at a time
    gpmlcli   upload -P 4    ~/Downloads
  Upload a particular video, and show the progress meter
    gpmlcli   upload         GH011234.MP4
  Download all missing videos to the Downloads directory, four at a time
    gpmlcli download -P 4 -C ~/Downloads
  Download a particular video to the current directory
    gpmlcli download         GH011234.MP4

Source on GitHub

lnbackup

lnbackup is a backup program capable of creating backup directories that mirror the source without duplicating unmodified files.

Each run results in a new backup directory named with the date and time the backup started. Each backup directory is a complete mirror of the source. Unmodified backup files are hard linked. New backup files are created as copy-on-write duplicates of source files if possible. Files are also indexed by hash to identify moved, renamed, and duplicate files. Unless -q is given, older backups are pruned: after a day, one is kept for each day, and after a month, one for each week.

Usage
$ lnbackup -h
lnbackup version 1.5.2
Copyright (c) 2026 Paul Beard.
Website: paulbeard.name

lnbackup is a backup program capable of creating backup directories that mirror the source without duplicating unmodified files.

Usage: lnbackup [-h] [-q] [-e EXCLUDE_FROM] SRC_FROM DEST
       lnbackup [-h] -p DEST

Options:
 -h              show this help
 -p              only prune   the destination directory
 -q              skip pruning the destination directory
 -e EXCLUDE_FROM read exclude list from file
 SRC_FROM        read source  list from file
 DEST            destination directory

Source on GitHub

Odds and ends

Bash one-liners

One-line Bash commands for everyday jobs.

# Find large files and directories:

du -amx /|sort -t$'\t' -k1nr,1|head -100|sort -t$'\t' -k2,2

# Convert TSV files to CSV:

sed 's/"/""/g;s/'$'\t''/","/g;s/^/"/;s/$/"/'