trash-cli: Alias rm to move files to trash instead of deleting permanently.#html #markdownnpx -y chokidar-cli '**/*.js' -c 'npm run build' #markdownnpx -y mapscii shows a map on the terminal. Not too useful, not maintained, but very interesting..cast files to animated SVG suitable for embedding in GitHub (e.g. via mise x github:MrMarble/termsvg -- termsvg export file.cast --minify). The animated SVG is ~10X larger than the .cast file. The GZipped size is fine but saving it as .svgz is not recognized by GitHub. In contrast, agg, the official asciinema-to-GIF converter, creates .GIF files that are only 5X larger. The most efficient seems to be embedding via asciinema.orgusql queries MySQL, Postgres, SQLite, MSSQL, Oracle, etc via a single interface. For example, usql 'mysql://rfamro:@mysql-rfam-public.ebi.ac.uk:4497/Rfam' -c "SELECT * FROM clan limit 3;". But DuckDB is more versatile, IMHO. #databaseINSTALL mysql; LOAD mysql;
ATTACH 'host=mysql-rfam-public.ebi.ac.uk port=4497 user=rfamro database=Rfam' AS rfam (TYPE mysql);
SELECT * from rfam.Rfam.clan LIMIT 3;
SELECT * FROM 'file.xlsx' LIMIT 3;
SELECT * FROM 'file.csv' LIMIT 3;
#code-agents# Create a new session
tmux new-session -d -s $SESSION 'uv run --with pandas,httpx,lxml python -iqu'
# Capture output to a log file
tmux pipe-pane -t $SESSION -o "cat >> /tmp/$LOG"
# Run a command
tmux send-keys -t $SESSION 'print(1 + 2)' C-m
# See output
cat /tmp/$LOG
# Capture the last 5 lines of the pane
tmux capture-pane -p -t $SESSION -S -5
#848#automation #best-practices #code-agents #github #prompt-engineering#best-practices #prompt-engineering#pricing #speech-to-text #tts#ai-coding #automation #code-agents #prompt-engineering #voice-cloningWrite a Malcolm Gladwell article based on this talk description to teach me the topic and passed it this talk proposal: Your Causal Parrot might be lying to you. The story it wrote is very engaging and informative! #learning #lessontmux helps avoid timeout cancellation, and hence allowing resuming Peter Steinberger #code-agents