Samuel Štancl Profile
Samuel Štancl

@samuelstancl

Followers
4K
Following
65K
Media
555
Statuses
6K

23 founder @archtechx

Joined July 2019
Don't wanna be here? Send us removal request.
@samuelstancl
Samuel Štancl
30 days
Just learned a horrifying thing about PHP asserts
1
0
11
@samuelstancl
Samuel Štancl
1 month
Here's what a full server configuration can look like
Tweet card summary image
gist.github.com
Forgejo NixOS server. GitHub Gist: instantly share code, notes, and snippets.
0
0
0
@samuelstancl
Samuel Štancl
1 month
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
@tekbog
terminally onλine εngineer
1 month
banning someone from github without a warning is fucked up @github @Microsoft i need to copy my repos damn
1
0
7
@samuelstancl
Samuel Štancl
2 months
brew install jj jj rebase -r C --insert-before A jj rebase -r B --insert-before A
@IroncladDev
IroncladDev
2 months
Senior dev checkpoint using only the git CLI, how do you reorder three commits in the order A, B, C to C, B, A?
1
0
4
@levelsio
@levelsio
2 months
Thank you @vonderleyen, very cool!
@MacRumors
MacRumors.com
2 months
AirPods Live Translation Blocked for EU Users With EU Apple Accounts https://t.co/b1LhRx2woo
283
414
9K
@samuelstancl
Samuel Štancl
3 months
Full article:
1
0
5
@samuelstancl
Samuel Štancl
3 months
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
@samuelstancl
Samuel Štancl
3 months
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
Tweet card summary image
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
@samuelstancl
Samuel Štancl
3 months
1
0
3
@samuelstancl
Samuel Štancl
3 months
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
@samuelstancl
Samuel Štancl
3 months
Why does ChatGPT now start every reply with "Ah, ..."
0
0
3
@samuelstancl
Samuel Štancl
3 months
NixOS rocks
0
0
4
@samuelstancl
Samuel Štancl
3 months
0
0
3
@samuelstancl
Samuel Štancl
3 months
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
@samuelstancl
Samuel Štancl
4 months
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
@samuelstancl
Samuel Štancl
4 months
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
@samuelstancl
Samuel Štancl
4 months
I'm using NixOS in production (Laravel site) and it's the single best experience I've had managing a server
1
0
6
@samuelstancl
Samuel Štancl
4 months
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