Case studies
#powershell#debugging#windows#electron#docker#pterodactyl#python#csharp#wpf#bash#security#cpp#git#performance#ci#nodejs#pyside6#react-native
43 posts
Clear filters·5 min read

Pterodactyl yolks · Story
A MySQL init file full of passwords, and a CI check that raced it
MySQL's first start needs a SQL file with the root and app passwords in it. I moved it out of the startup line, locked down the run directory, and fixed a test that raced the cleanup.
In short
- The init file is now referenced from the generated config (init-file=...), not appended to the startup line and echoed to the console.
- The socket and pid file moved from /tmp into a run directory created with mode 700.
- The CI step that asserts the init file is gone now waits for the removal instead of racing it.
#mysql#docker#pterodactyl#security#ci
·5 min read

Pterodactyl yolks · Story
The n8n image had no bash, so my entrypoint became POSIX sh
My first n8n entrypoint assumed bash, setsid and a package manager. The base image had none of them. Rewriting it in plain sh meant rethinking how shutdown reaches the process.
In short
- The base image n8nio/n8n has no bash and no package manager, so the apk add line and the bash entrypoint both had to go.
- The entrypoint became POSIX sh, and the passwd entry for uid 988 points at /bin/sh.
- Shutdown now uses kill -TERM -1, which is only safe because the script is PID 1 in the container.
#docker#shell#n8n#pterodactyl#posix
·5 min read

Pterodactyl yolks · Story
One missing curl flag broke my mail server setup
Stalwart's first-start setup could not open a JMAP session. I printed the response, and fifty seconds later the fix was a single letter: curl -L.
In short
- The setup script asked for the JMAP session with curl -fsS, which treats a redirect as success but does not follow it.
- A debug commit printed the response body on failure, then -L made curl follow the redirect.
- The CI checks that call the same URL needed the same flag, or they would have asserted on the wrong status code.
#curl#jmap#docker#pterodactyl#debugging