Pinned Tweet
Madeactual builds the operational software most shops leave unfinished.
Integrations, internal tools, cutovers, and the spreadsheet that quietly became the system of record. I quote a named slice, name the owner and the exception path, and I will not rewrite your ten-year codebase in week one.
Start with a free project review: madeactual.com/#quote
If your app exports CSVs that people open in Excel, check what happens to a text cell that starts with =, +, - or @. Excel treats it as a formula, so a customer who typed =HYPERLINK(...) into their name field now has a clickable link sitting in your ops team's spreadsheet.
The usual fix is to prefix those cells with a single quote (') on export so they open as plain text. OWASP calls this CSV injection, and it's worth one test case on every export.
2
1
13
Madeactual retweeted
As models improve, the switching costs for changing providers also decrease. Every tech-forward company is building model-agnostic internal tools at an accelerating pace.
A small Docker check for a VPS that keeps running low on disk: ask Docker where the space went.
docker system df
It splits usage into images, containers, local volumes and build cache, each with a RECLAIMABLE column. On a box that builds on every deploy, build cache is often the surprise.
docker builder prune --filter until=168h
clears build cache older than a week. Leave volumes alone unless you know what's in them; that's where database data lives.
A small Linux check for servers that have been up a while: see how much disk the systemd journal is holding.
journalctl --disk-usage
By default it can grow to 10% of the filesystem, up to 4G. To trim it now: sudo journalctl --vacuum-size=500M
To keep it there, set SystemMaxUse=500M under [Journal] in /etc/systemd/journald.conf, then run sudo systemctl restart systemd-journald.
4
40
A small systemd habit before trusting a new timer: ask systemd when it will actually fire.
systemd-analyze calendar "Mon..Fri 02:30" --iterations=5
That prints the next five run times, so a typo or a timezone surprise shows up now instead of at 2:30am. Once it's enabled, systemctl list-timers shows the last and next run for every timer on the box.
If scheduled jobs and the servers they run on are eating your week, we can take that off your plate: madeactual.com/#quote
18
A small systemd habit for scheduled jobs: give the service an OnFailure= so a failed nightly run actually reaches a person instead of sitting in the journal.
In the job's unit:
[Unit]
OnFailure=notify-failure@%n.service
Then [email protected] is a oneshot that runs ExecStart=/usr/local/bin/notify-failure %i, a short script that posts the failed unit's name and its last journal lines to Slack or email.
One template covers every job on the box. Test it once with a job that just runs false before you trust it.
1
23
A small habit for poking at a production Postgres without opening port 5432 to the internet: go through an SSH tunnel.
ssh -N -L 5433:localhost:5432 db-host
Then point psql or your GUI at localhost:5433. The database keeps listening only on localhost, and the only people who get in are the ones who already have an SSH key on that server. Close the terminal and the tunnel closes with it.
If you'd like us to set up access like this for your team: madeactual.com/#quote
1
30
A small Linux check for when an app says "No space left on device" but df -h shows plenty free: look at inodes.
df -i
Every file uses an inode, and a filesystem only has so many. Millions of tiny files, like old sessions, cache entries or a mail queue nobody drains, can use them all up while gigabytes sit free.
To find where they are:
sudo du --inodes -x / 2>/dev/null | sort -n | tail
Clear out that directory, then add a job that keeps it pruned.
1
22
A small Postgres check: find timestamp columns that don't store a time zone.
SELECT table_name, column_name FROM information_schema.columns WHERE data_type = 'timestamp without time zone';
Plain timestamp drops the zone, so one moment can read differently depending on which server wrote it. timestamptz stores the instant.
If the values were written in UTC:
ALTER TABLE orders ALTER COLUMN created_at TYPE timestamptz USING created_at AT TIME ZONE 'UTC';
On a big table that locks, so pick a quiet window.
Need a hand? madeactual.com/#quote
23
Before guessing which index a slow Postgres app is missing, ask Postgres which tables it keeps reading end to end:
SELECT relname, seq_scan, seq_tup_read, idx_scan
FROM pg_stat_user_tables
ORDER BY seq_tup_read DESC
LIMIT 10;
A big table near the top with millions of rows read is your lead. Find the query hitting it in pg_stat_statements and run EXPLAIN on it. Small lookup tables showing up there are fine, since a full scan is the right call for them.
3
33
Docker keeps every line a container prints, and with the default json-file log driver there's no size cap. On a small VPS, one chatty container can slowly fill the disk.
Set a limit once for the whole host in /etc/docker/daemon.json:
{ "log-driver": "json-file", "log-opts": { "max-size": "10m", "max-file": "3" } }
Then restart Docker in a quiet window. It only applies to containers created after the change, so recreate them with docker compose up -d --force-recreate.
Want a hand tidying up your servers? madeactual.com/#quote
1
33
Counting rows on a big Postgres table for a dashboard? SELECT count(*) has to scan the whole table, which gets slow once it's in the tens of millions.
If a close number is fine, ask the planner's estimate instead:
SELECT reltuples::bigint AS estimate
FROM pg_class
WHERE oid = 'public.orders'::regclass;
It's refreshed by VACUUM, ANALYZE and autovacuum, so it's usually close. On Postgres 14+ it shows -1 if the table has never been analyzed. Keep exact count(*) for the places that need it.
1
33
Worth checking on any Redis with a memory limit: what it does when it fills up.
redis-cli INFO memory | grep -E 'maxmemory_human|maxmemory_policy'
Self-hosted Redis defaults to noeviction, so at the limit writes start failing with OOM errors. For a pure cache, allkeys-lru is usually right. If the same instance also holds sessions, locks or queues, allkeys-lru can quietly evict those, so give them their own instance and leave that one on noeviction.
Need a hand with yours? madeactual.com/#quote
1
1
51
Never run KEYS * on a production Redis. It walks every key in one go, and since Redis runs commands one at a time, every other client waits until it finishes. Use SCAN instead, which hands back a small batch each call plus a cursor:
redis-cli --scan --pattern 'session:*' | head
In code, loop SCAN 0 MATCH session:* COUNT 500 until the cursor comes back as 0. SCAN can return the same key twice, so make whatever you do per key safe to repeat.
38
When something breaks and our app logs are JSON lines, the tool we reach for first is jq. One line pulls just the errors out of the noise:
journalctl -u myapp --since "1 hour ago" -o cat | jq -c 'select(.level == "error") | {time, msg, requestId}'
select() drops everything that isn't an error, and the {} keeps only the fields you care about, one compact line each. If some lines aren't JSON, use jq -R -c 'fromjson? | select(...)' so one stray line doesn't stop the run.
If your logs are a wall of text nobody can search, we can help: madeactual.com/#quote
27
A small Nginx habit for config changes: test first, then reload instead of restart.
sudo nginx -t && sudo systemctl reload nginx
nginx -t catches the missing semicolon or the wrong cert path before it can hurt anything. A reload starts new workers on the new config and lets the old ones finish their requests. A restart drops open connections, and if the config is broken, Nginx doesn't come back up.
When you need to see which file is actually winning, nginx -T prints the full merged config.
1
50
After importing rows with their old ids into Postgres, check the sequence before the app goes live. The import set the ids, but the sequence never moved, so the next normal insert hands out id 1 and fails with a duplicate key error.
One line puts it back in step:
SELECT setval(pg_get_serial_sequence('orders', 'id'), (SELECT max(id) FROM orders));
Run it for every table you loaded. It works for identity columns too.
If you have a migration or data move coming up and want a second set of hands: madeactual.com/#quote
18
If an app keeps its data in SQLite, don't back it up with cp while it's running. You can catch the file halfway through a write, and in WAL mode the newest changes may still be sitting in the -wal file next to it.
Take a consistent snapshot instead:
sqlite3 app.db "VACUUM INTO '/backups/app-nightly.db'"
That writes a clean, compacted copy without stopping the app (SQLite 3.27+). Then run PRAGMA integrity_check; on the copy before you trust it.
2
76
A small Proxmox habit if your VMs live on ZFS: make sure a failing disk actually reaches a person.
zpool status -x
That prints "all pools are healthy" or names the pool with a problem. Proxmox already schedules a monthly scrub, but a scrub that finds checksum errors doesn't help if nobody reads the result.
ZFS sends its alerts to ZED_EMAIL_ADDR in /etc/zfs/zed.d/zed.rc. On Proxmox that's usually root, so check that root's mail forwards to an inbox you read.
Want a second set of eyes on your setup? madeactual.com/#quote
19
When a third-party API starts failing, retrying on a fixed delay makes it worse. Every client that failed at the same moment retries at the same moment too, and the API gets hit in waves.
What we've been using lately is exponential backoff with full jitter:
delay = random(0, min(cap, base * 2 ** attempt))
With a 500ms base and a 30s cap, the retries spread out instead of stacking up. Cap the number of attempts, only retry timeouts, 429s and 5xx, and honor Retry-After when the API sends one.
1
21

