

Having all your configuration hidden in ~/.config/
, so you can have ~
all to yourself is nice, IMO. Just having a handful of folders (including hidden ones) makes things a little more readable.
Having all your configuration hidden in ~/.config/
, so you can have ~
all to yourself is nice, IMO. Just having a handful of folders (including hidden ones) makes things a little more readable.
What’s a flatpak? Is that like a worse NixOS package?
Uh, just yesterday. Installed NixOS (with KDE) because I learned Debian at work, but am really missing the ability to track what I’ve installed via configuration. I like the idea of dotfiles in a repo, but want a bit more control like that for my OS.
Context: I’m a data engineer that writes Python. Python has pyproject.toml
files (toml ~= ini files) where you can specify which libraries you want to use, defining which version you minimally, maximally, or just specifically want. And I wished that setup existed for Debian as well, but it doesn’t. So after searching I found that NixOS is pretty much the closest thing. Windows 10 is EOL soon enough, so might as well switch beforehand and not wait until the last second.
(Seriously what would you even have multiple computers do.)
Setup k3s (pronounces “kubes”) on each computer as a node. Run scalable software - a website, database, some LDAP setup for users, maybe.
Check out /c/selfhosted@lemmy.world for inspiration :D
Would a commercial with Jesus on the cross saying he is thirsty and having a Roman Soldier pass him an ice cold Coca Cola be better?
I tried it using Sora, but “This content can’t be shown for now. We’re still developing how we evaluate which content conflicts with our policies. Think we got it wrong? Let us know.”
This was the prompt:
Give me a Coca Cola commercial where Jesus has been nailed to a cross, and says “I’m thirsty”, after which a Roman Soldier passes him an ice cold Coca Cola.
I tried replacing “Jesus” with a man, but no dice :(
Christmas celebrations
Christmas is more of a cultural celebration than a Christian one, and thus not political.
I’m atheist, but I still celebrate Christmas, because it’s a good excuse to gather friends and family, and have some fun together.
Pride is a political movement - or did they not fight for the rights of LGBT people? Flags are inherently political. Flying a flag signals allegiance and identity, which are political at their core.
This makes pride month political.
Being Lesbian/Gay/Bi/Transgender isn’t political in and of itself, but movements are.
I now have a stack of Thinkpads laying around. Right next to my two RPis 😂
If your ISP is blocking this website, set a DNS in windows to 1.1.1.1 (Cloudflare), 8.8.8.8/8.8.4.4 (Google), 9.9.9.9 (Quad9), https://www.dns0.eu/, or DNS4EU.
Yes, blocking certain sites is done in the Netherlands, due to Stichting BREIN using/abusing our legal system. Nobody likes them, but it is what it is.
PS: I’m using rargb, since it hasn’t been blocked (yet - BREIN has to sue per website being blocked).
“Have you read your SICP today?” still rings in my head, occasionally.
Refactoring
Once you know how to write code (in any language) it’s important to learn how to rewrite it (into something better)
Test-Driven Development with Python
Because manually stepping through your code is a PITA, so it’s better to put that process into code that you can save and re-run without thinking about it.
Head first java
Any of the Head First series are great introduction books. Head First Design Patterns is great to learn programming patterns that you can typically re-use in any language :D
Fundamentals of Software Architecture
Haven’t read this one, but learning about architecture is important so you can keep your UI, logic and data layers separate, so when you need to replace one layer (like the UI, because the boss wants a refresh), you don’t need to pull out all your hairs due to frustration!
Domain Driven Design
I don’t do DDD (at least not consciously), but understanding what a domain is really really important once you need to talk to business people (not something I like, but it’s necessary to write the right code).
Neuromancer
“The sky above the port was the color of television, tuned to a dead channel.” is such a banger of a first line. Outdated, because “dead channel” won’t make sense to younger kids, but I bet they’ll get a kick out of learning about how TVs used to be.
big yellow skips
A trash container? I’m neither Bri’ish, or 'Murican, so I have no idea 😂
I think I’ve seen a video showcasing this tactic. Dude with a Syringe just running around, picking up his teammates as soon as they downed. It was great :D
nipple
IBM® Trackpoint™ Styled Pointer, Pointing Stick, nub, nipple, xkcd.
You can see here my theme with autodetect of Python (I work a lot in Python). The orange bit is the error code returned by the previous command. Git is supported as well, and looks pretty much like powerline-gitstatus
, as you’ll read about below.
First, lets make Bash a little better:
# throw this in your `~/.bashrc`, and then `source ~/.bashrc` for it to take effect, or just restart your terminal.
# == shopts ==
# https://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html
shopt -s autocd # cd into folder without cd, so 'dotfiles' will cd into the folder
shopt -s cdspell # attempt spelling correcting on folders
shopt -s direxpand # expand a partial dir name
shopt -s checkjobs # stop shell from exit when there's jobs running
shopt -s dirspell # attempt spelling correcting on folders
shopt -s expand_aliases # aliases are expanded
shopt -s histappend # append to the history file, don't overwrite it
shopt -s histreedit # lets your re-edit old executed command
shopt -s histverify # I'm confused.
shopt -s hostcomplete # performs completion when a word contains an '@'
shopt -s cmdhist # save multiple-line command in single history entry
shopt -u lithist # multi-lines are saved with embedded newlines rather than semicolons; explictly unset
shopt -s checkwinsize # update LINES and COLUMNS to fit output
Autocd is a big one here, cdspell and direxpand as well. Ensures I don’t need Zsh for the same experience. With Zsh I’d just get annoyed by small stuff like having to wrap things in quotes (I think pip install some_lib[some_extra]
works in Bash, but not in Zsh And Ohmyzsh just felt it kept slowing things down, so I actually dislike Zsh ^(please don’t kill me) >_>
Anyway, I based this on powerline-status
+ powerline-gitstatus
(if you want to use that instead (no, my config doesn’t work), just sudo apt install powerline-status powerline-gitstatus
- DO NOT USE THE PYPI
VERSION (it’s too outdated, and a pain to install)) because I had issues with finding the right combination of my configuration and which libraries to install for bash - there are too damn many: powerline-bash, powerline-status, powerline-rs, powerline-go, etc, etc. And they all do things just that little bit different.
Anyway, here is my ~/.config/starship.toml
(archive1, archive2). It’s a little long, and can probably be shortered, but that might break something again, and I’m not willing to risk anything right now.
https://gist.github.com/NostraDavid/675a0706716b98816fd2809560ffe42c
What’s wrong with BSD?
What’s a flatpak? Is that like a worse NixOS package? I prefer NixOS, BTW.