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.
| curl -L "https://github.com/docker/compose/releases/download/`curl -fsSLI -o /dev/null -w %{url_effective} https://github.com/docker/compose/releases/latest | sed 's#.*tag/##g' && echo`/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose |
| #!/bin/bash | |
| # Update the package list | |
| sudo apt-get update | |
| # Install necessary packages | |
| sudo apt-get install ca-certificates curl gnupg | |
| # Create a directory for the keyring | |
| sudo install -m 0755 -d /etc/apt/keyrings |
| using UnityEngine; | |
| using System.Collections.Generic; | |
| // Written by Steve Streeting 2017 | |
| // License: CC0 Public Domain http://creativecommons.org/publicdomain/zero/1.0/ | |
| /// <summary> | |
| /// Component which will flicker a linked light while active by changing its | |
| /// intensity between the min and max values given. The flickering can be | |
| /// sharp or smoothed depending on the value of the smoothing parameter. |
I hereby claim:
To claim this, I am signing this object:
| # NOTE | |
| # | |
| # | |
| # Use sed on the instance up to replace the INSTANCE_ID and DNS_RESOLVER with the following commands | |
| # | |
| #################################################################################################### | |
| # Fetch the private IP for resolving DNS dynamically in nginx | |
| # We also need to escape the `.` from it for usage in later sed | |
| # | |
| # DNS_RESOLVER=`grep nameserver /etc/resolv.conf | cut -d " " -f2 | sed 's/\./\\./g'` |
| # Rock64 Install (Adjust IPs/Hostnames/DNS to your deployment) | |
| Disable NetworkManager and DHCP Client | |
| sudo systemctl stop dhcpcd | |
| sudo systemctl stop NetworkManager | |
| sudo systemctl disable dhcpcd | |
| sudo systemctl disable NetworkManager | |
| sudo systemctl daemon-reload |
| #!/bin/bash | |
| echo "Container Linux installation script" | |
| echo "This will install:" | |
| echo " - Docker Community Edition" | |
| echo " - Docker Compose" | |
| echo " - Kubernetes: kubeadm, kubelet and kubectl" | |
| echo "" | |
| set -xeo pipefail |
| provider "aws" { | |
| region = "eu-west-1" | |
| } | |
| data "http" "ip" { | |
| url = "http://icanhazip.com" | |
| } | |
| resource "aws_security_group" "ssh" { | |
| name = "ssh" |