Skip to content

Instantly share code, notes, and snippets.

@Criomby
Criomby / pgp_backup.sh
Last active October 19, 2025 17:49
Easily create a backup archive of your pgp key.
#!/usr/env/bin bash
set -e
function print_help() {
echo "
Backup gpg keys and create a compressed archive for backup.
Creates the archive in the current directory.
Usage: gpg_backup.sh <email>
@Criomby
Criomby / custom.js
Last active September 21, 2025 13:03
gethomepage/homepage local-remote href slider
// -----------------
// Slider to switch between local/remote addresses.
// Allows you to change the domains of the href targets to the current domain (e.g. when using a VPN).
// -----------------
// these domain (href) will be changed to the current browser domain
// prevents changing links to other services/servers which should not be changed
const host = "pi-server.local"; // TODO: change this
const updateLocation = () => {