Skip to content

Instantly share code, notes, and snippets.

@elonen
elonen / redact-clapshot-db-0.5.6.sh
Created May 29, 2024 07:32
Make redacted copy of a Clapshot 0.5.6 database for analysis
#!/bin/bash
set -e
# This script redacts sensitive information from a Clapshot 0.5.6 database
# and saves the redacted database as a new file.
DB_FILE_ORIG="clapshot.sqlite"
DB_FILE="clapshot.redacted.sqlite"
cp "$DB_FILE_ORIG" "$DB_FILE"
@elonen
elonen / install-clapshot-deb12.sh
Last active May 20, 2024 10:12
Bash script to install Clapshot + Htadmin on Debian 12
#!/bin/bash
set -e
# This script install Clapshot with Htadmin Basic auth
# on Debian 12 Bookworm (might also work on Bullseye).
#
# It doesn't set up HTTPS, you are encouraged to
# set use a reverse proxy in front of it.
#
# First, mount a block device at $DATA_DIR run `apt update`.

Keybase proof

I hereby claim:

  • I am elonen on github.
  • I am elonen (https://keybase.io/elonen) on keybase.
  • I have a public key ASBx1_9rZ2mIt4Cjj-Z_H-oQnoGox4eBYa1Pzj2d0qHd6go

To claim this, I am signing this object: