Date: 2025-12-18
Last Updated: 2025-12-18 23:45 UTC
Model: Claude Opus 4.5 (claude-opus-4-5-20251101) for both approaches
Projects Evaluated: 6 projects (URL Shortener, Linkcheck, Git Hooks Manager, Env Validator, API Mock Server, Cron Parser)
Methods: autospec all (spec-driven) vs claude -p (prompt-driven)
| #!/bin/bash | |
| # Claude Code PostToolUse Hook for Auto-formatting and Linting | |
| # | |
| # This script integrates with Claude Code's hook system to automatically | |
| # format and lint files after they're edited or created. | |
| # | |
| # How it works: | |
| # 1. Claude Code calls this script after Write/Edit/MultiEdit|Update operations | |
| # 2. The script receives JSON input via stdin containing: | |
| # - session_id: Current Claude session |
| !/bin/sh | |
| # Kitty fzf to tab! | |
| # Author: Ariel Frischer | |
| # Add below mapping to your kitty.conf file (usually in ~/.config/kitty/) | |
| # map super+j launch --type=overlay --stdin-source=@screen_scrollback /PATH_OF_THIS_FILE/fzf-kitty-tabs.sh | |
| active_tab="$( | |
| kitty @ ls | jq -r ' |
Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.
If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.
Error
The authenticity of host 'github.com (140.82.113.4)' can't be established.
Fix
ssh-keyscan github.com >> ~/.ssh/known_hosts| # The following comments fill some of the gaps in Solargraph's understanding of | |
| # Rails apps. Since they're all in YARD, they get mapped in Solargraph but | |
| # ignored at runtime. | |
| # | |
| # You can put this file anywhere in the project, as long as it gets included in | |
| # the workspace maps. It's recommended that you keep it in a standalone file | |
| # instead of pasting it into an existing one. | |
| # | |
| # @!parse | |
| # class ActionController::Base |
| sudo yum install autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool make mercurial pkgconfig zlib-devel -y | |
| mkdir ~/ffmpeg_sources | |
| # nasm | |
| cd ~/ffmpeg_sources | |
| curl -O -L https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.14.02.tar.bz2 | |
| tar xjvf nasm-2.14.02.tar.bz2 | |
| cd nasm-2.14.02 | |
| ./autogen.sh | |
| ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" |
| image: nikolaik/python-nodejs:latest | |
| stages: | |
| - install | |
| - test | |
| - deploy | |
| prodInstall: | |
| stage: install | |
| script: |
| import logging | |
| import logging.config | |
| from datetime import datetime | |
| import os | |
| import sys | |
| LOGFILE = '/tmp/{0}.{1}.log'.format( | |
| os.path.basename(__file__), | |
| datetime.now().strftime('%Y%m%dT%H%M%S')) |
How to:
- create a Docker-based AWS Fargate/ECS deployment
- without the Docker containers having a public IP
- with an Application Load Balancer as reverse proxy / SSL termination proxy sitting in front of the containers
For Fargate/ECS to be able to access your Docker images hosted on ECR (or somewhere else) you'll have to allow outbound internet access to the Fargate subnets. Here's how you do it.