Samuel Štancl
@samuelstancl
Followers
4K
Following
65K
Media
555
Statuses
6K
23 founder @archtechx
Joined July 2019
Here's what a full server configuration can look like
gist.github.com
Forgejo NixOS server. GitHub Gist: instantly share code, notes, and snippets.
0
0
0
If you have serious projects on GitHub, it's a good idea to set up mirrors of your repos on other forges. Very easy to do with Gitea/Forgejo. Self-hosting Forgejo is also super easy, if you have a NixOS server you can just add it as a service and put it behind nginx like this
banning someone from github without a warning is fucked up @github @Microsoft i need to copy my repos damn
1
0
7
Thank you @vonderleyen, very cool!
283
414
9K
This is what my entire server config looks like. On NixOS, this configures: - nginx - php-fpm - SSL certificates (including renewals) - cron for Laravel schedule - users and groups - queue worker - firewall - ssh keys, and more For as many sites as I want. Article link below
2
14
114
The system is meant to be fully editor-based (as in an editor that can search is all you *need*) but for convenience I've also written a simple CLI tool in Rust for getting a quick look at all the TODOs within a project in a nicely structured way https://t.co/ehWilxxiY7
github.com
An intuitive system for organizing TODOs in code. Contribute to archtechx/todo-system development by creating an account on GitHub.
0
0
2
New article about a system for organizing TODOs in code that I use in pretty much every project Came up with it a few years ago while working on some brutal refactors and stuck with it since. It has worked exceptionally well in every project I've worked on
1
1
31
New article — some things to consider when using SQLite in production (from the point of view of Laravel apps). Covers: 1. Journal mode 2. Data types 3. Concurrent transactions (the dreaded "database is locked" error) Link below
4
6
34
As much as I love SQLite one thing that's annoying about using it with PHP in production is that it doesn't handle concurrent locks well. This really is more of a PHP limitation and one that should be imo addressed The issue is basically that there's no way to tell PDO to begin
4
0
12
Another cool thing you can split like this is two sets of (data) outputs I remember writing a script that was used as: ./thing > usd_output.txt 2>eur_output.txt
0
0
1
I'm using NixOS in production (Laravel site) and it's the single best experience I've had managing a server
1
0
6
One thing I like to do in custom CLI utils is separate the "real output" from any additional informative output into stdout and stderr. That way I can pipe either one into a file or even the clipboard (`| pbcopy` on macOS)
1
0
4