Modifying Mastodon to allow 1024 character toots rather than "just" 500 (still way better than 140/280 cough cough) was fun, diff here:
https://gist.github.com/lindgrenj6/d2846a135656cfae20960b2fa156d62c
After the diff is applied, a `rake assets:precompile` recompiles the javascript and the frontend should _magically_ accept whatever you configured as the new toot length!
Finding out I can't debug Go binaries on OpenShift without modifying scc's (Security Context Constraints) is kind of saddening.
I was really looking forward to using this workflow:
1. `oc debug <pod name>` to spin up a debug pod
2. `oc exec -it <pod> -- dlv debug --headless --listen :2345` to start the debugger on port 2345
3. `oc port-forward <pod> 2345` to forward a port
4. `dlv connect localhost:2345` to debug!
It's all just to do with the way docker handles permissions, so it's not surprising. But was a fun exercise nonetheless!
Hello, World! #fediverse
Why hello there! You seem to have stumbled onto my website.
It is a mastodon instance in single-user mode, so you can follow me if you like.
I'll be posting blogs split up into 1024 character chunks.
topics:
ruby, elixir, linux, k8s, distributed systems, just life in general.