A simple Python implementation of the ReAct pattern for LLMs
2024-12-28
A popular nightmare scenario for AI is giving it access to tools, so it can make API calls and execute its own code and generally break free of the...
1064 words
|
5 minutes
Using llama-cpp-python grammars to generate JSON
2024-12-26
[llama.cpp](https://github.com/ggerganov/llama.cpp) recently added the ability to control the output of any model using a grammar.
796 words
|
4 minutes
Piping from rg to llm to answer questions about code
2024-12-21
Here's a trick I've used a couple of times in the past few days.
999 words
|
5 minutes
Display EC2 instance costs per month
2024-12-21
The [EC2 pricing page](https://aws.amazon.com/ec2/pricing/on-demand/) shows cost per hour, which is pretty much useless. I want cost per month. The...
64 words
|
1 minute
eBPF-Based ADR: Real-time Application Defense
2024-12-20
Comprehensive guide to implementing Application Detection and Response (ADR) using eBPF for real-time threat detection and prevention in modern web applications.
4968 words
|
25 minutes
How to scp files to and from Fly
2024-12-19
I have a Fly instance with a 20GB volume, and I wanted to copy files to and from the instance from my computer using `scp`.
243 words
|
1 minute
How to deploy a folder with a Dockerfile to Cloud Run
2024-12-18
I deployed https://metmusem.datasettes.com/ by creating a folder on my computer containing a Dockerfile and then shipping that folder up to Google ...
298 words
|
1 minute
Using heroku pg:pull to restore a backup to a macOS laptop
2024-12-15
Today I worked out how to use the Heroku `pg:pull` command and [Postgres.app](https://postgresapp.com/) to pull a Heroku backup to my laptop.
221 words
|
1 minute