misc tweaks; cleanup irrelevant

This commit is contained in:
turtlebasket
2026-02-19 17:52:31 -08:00
parent 5c5128be85
commit c33c7583f1
18 changed files with 107 additions and 2928 deletions

View File

@@ -1,6 +0,0 @@
wget https://dl.google.com/android/repository/commandlinetools-mac-9123335_latest.zip -O ~/Downloads/as-mac-cli-tools.zip
mkdir -p ~/opt

View File

@@ -1,19 +0,0 @@
#!/usr/bin/env python3
from concurrent.futures import ThreadPoolExecutor
from subprocess import run as srun
DEST="turtlebasket-gdrive:/macbook-air-m1"
paths=[
"Desktop"
"Documents/Personal Knowledge Base"
"Documents/Berkeley Notes"
]
with ThreadPoolExecutor(max_workers=4) as executor:
for path in paths:
fname = path.split("/")[-1]
srun("rclone", "sync",
path,
f'{DEST}/{fname}',
"--progress", "--rertries", 1, "--delete-excluded")

13
scripts/tmux2 Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# simple wrapper for tmux that creates a new session for current directory if one doesn't exist
# meant for scoping sessions by /Projects/<project-name>/
session="$(basename "$PWD")"
tmux has-session -t "$session" 2>/dev/null
if [[ $? -eq 0 ]]; then
exec tmux attach -t "$session"
else
exec tmux new -s "$session"
fi