Skip to content

Instantly share code, notes, and snippets.

View caleb-allen's full-sized avatar

Caleb Allen caleb-allen

View GitHub Profile
@caleb-allen
caleb-allen / backup.sh
Created March 15, 2025 19:43
Android terminal Linux backup
#!/bin/bash
# --- Configuration ---
BACKUP_DIR="/mnt/shared/linux"
HOME_DIR="/home/droid"
DATE=$(date +%Y-%m-%d-%H-%M-%S)
BACKUP_FILE="$BACKUP_DIR/backup-$DATE.tar.gz"
PACKAGE_LIST="$BACKUP_DIR/packages-$DATE.txt"
REPO_LIST="$BACKUP_DIR/repositories-$DATE.list"
#!/usr/bin/env julia
#
# Find any Julia history entries with control sequences that corrupt the REPL state.
# By default, print the lines which are corrupted.
#
# usage: ./fix_history.jl [--delete_corrupted, --escape_corrupted]
#
# --delete_corrupted: remove entries which are corrupted from history.
#
# --escape_corrupted: sanitize the entries which are corrupted so that the corrupted
#!/usr/bin/julia
using Dates
import Base.read
import Base.:<
import Base.:>
import Base.isapprox
struct Clipboard
name :: String
read :: Cmd

Keybase proof

I hereby claim:

  • I am caleb-allen on github.
  • I am caleballen (https://keybase.io/caleballen) on keybase.
  • I have a public key ASCROH_2qpy4MN2nv1BNE1nptS83A44MtlEFi4lMCoFT2go

To claim this, I am signing this object: