Skip to content

Instantly share code, notes, and snippets.

@AUAggy
AUAggy / aws-sso-config-guide.md
Created February 11, 2026 07:21
Configuring IAM Identity Center (AWS SSO) authentication with the AWS CLI - A comprehensive guide covering setup, configuration, security best practices, and troubleshooting

Configuring IAM Identity Center (AWS SSO) authentication with the AWS CLI

AWS SSO provides centralized access to multiple AWS accounts using identity federation. This guide explains how to configure the AWS CLI to authenticate with AWS SSO.

Prerequisites

  1. AWS CLI v2 installed (aws --version)
  2. Access to your AWS SSO portal (provided by your AWS administrator)
  3. Your SSO Start URL and SSO Region
  4. AWS Account IDs you need to access
@AUAggy
AUAggy / free-claude-code-with-ollama.md
Created February 11, 2026 04:31
Running Claude Code locally with Ollama and open-source models as a free alternative to the Anthropic API

Running Claude Code Locally with Ollama and Open-Source Models as a Free Alternative to the Anthropic API

Claude Code's API costs add up fast for heavy users, often $50 to $200+/month on Opus 4.5/4.6. Ollama (v0.14.0+) now supports the Anthropic Messages API natively, which means Claude Code can run against local open-source models at zero cost, with no data leaving the machine.

This guide covers the full setup: installing Ollama and Claude Code, choosing a model that fits 16 GB of RAM, connecting the pieces, and understanding the real tradeoffs.


The Cost Problem

@AUAggy
AUAggy / safe-rm-trash-alias.md
Created February 9, 2026 10:59
Safe rm alias for macOS: Move files to Trash instead of deleting permanently

Safe rm Alias for macOS: Move Files to Trash Instead of Deleting

This script replaces the standard rm command with a safer alternative that moves files to the macOS Trash instead of deleting them permanently. The implementation uses shell functions and aliases to intercept rm calls and redirect them to a custom safe_rm function.

Purpose

The primary purpose is to prevent accidental data loss. The standard rm command deletes files immediately and irreversibly. This implementation moves files to the system Trash (~/.Trash), where they can be recovered if needed.

How It Works

@AUAggy
AUAggy / docker-sandboxes-claude-code.md
Created February 7, 2026 05:01
Running Claude Code in Docker Sandboxes

Running Claude Code in Docker Sandboxes

You gave an AI agent the ability to run arbitrary shell commands on your machine. Congratulations. Now you need a way to make sure it doesn't rm -rf your home directory or email your SSH keys to a stranger.

Docker Sandboxes solve this by running Claude Code inside a microVM: a lightweight virtual machine that looks like your project directory but has no access to the rest of your system. The agent gets full autonomy. Your files stay where you left them. Everybody wins.

This guide walks through setup, daily use, verification, and troubleshooting. Written for macOS; Linux users, adjust accordingly.

What You Need