This is a personal reference workflow for minimizing token usage while maintaining project continuity across Claude Code (Sonnet 4 with file access).
Claude loads CLAUDE.md automatically at session start.
| #!/bin/bash | |
| # @parseArger-begin | |
| # @parseArger-help "eric - Generic AI Orchestration Script for Multi-Step Project Implementation" --option "help" --short-option "h" | |
| # @parseArger-version "1.0.0" --option "version" --short-option "v" | |
| # @parseArger-verbose --option "verbose" --level "0" --quiet-option "quiet" | |
| _has_colors=0 | |
| if [ -t 1 ]; then # Check if stdout is a terminal | |
| ncolors=$(tput colors 2>/dev/null) | |
| if [ -n "$ncolors" ] && [ "$ncolors" -ge 8 ]; then | |
| _has_colors=1 |
This document contains excerpts from my web server logs collected over a period of 7 years that shows various kinds of recon and attack vectors.
There were a total of 37.2 million lines of logs out of which 1.1 million unique HTTP requests (Method + URI) were found.
$ sed 's/^.* - - \[.*\] "\(.*\) HTTP\/.*" .*/\1/' access.log > requests.txt
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1 | |
| # --no-check-cerftificate was necessary for me to have wget not puke about https | |
| curl -LJO https://github.com/joyent/node/tarball/v0.7.1 |