Pinned toot

btw. I'm moving to @wolf480pl because niu is closing.

Gonna miss the leet character limit.

Pinned toot

Theory:
1. Reinvent a square wheel
2. Understand what's so hard about making wheels
3. Observe how a round wheel someone invented a while ago performs better than your square one.
4. Appreciate the brilliant and simple solutions to all wheel design issues that a round wheel implements.
5. Throw away your square wheel.

Practice:
1. Reinvent a square wheel
2. Push it to production

Pinned toot

The purpose of an open-source project is making source code.

Wolf480pl boosted

If you don't know where to go after shutdown and you don't mind using Pleroma, I would recommand:

- kawen.space (by @karen)
- outerheaven.club (by @solidsanek)
- iscute.moe (by @steph)

btw. I'm moving to @wolf480pl because niu is closing.

Gonna miss the leet character limit.

Wolf480pl boosted
Wolf480pl boosted

One week left till niu.moe closes, guess I should start posting from here

What do you do if you need to absolutely prevent unprivileged users from listening on ports,
but then you need an aria2c seeding a torrent as root that has to be able to listen on a tcp port?

You tell it to listen below 1024 and whitelist that port in iptables.

But what if aria2c refuses to listen on a port below 1024?

Then you tell it to listen on port below 2048 and set sysctl net.ipv4.ip_unprivileged_port_start = 2048

>be in initramfs
>have a working thing that generates scripts for aria2c download completion hooks and puts them in /
>be me
>try to be smart
>move those scripts to /run
>/run is mounted noexec

Wolf480pl boosted
Wolf480pl boosted

initramfs-tools has this weird quirk:

when you have a script that's supposed to be ran as part of init in initramfs, and initramfs-tools is about to include it in initramfs, it first runs it like:

./myscript prereqs

and it's supposed to print its dependencies and exit.

That's a weird way of specifying dependencies, but it has one advantage:
it checks your script's syntax BEFORE you try booting from the new initramfs

I need a manager. A manager who will take care of all the organizing and move non-technical obstacles out of my way so that I can focus on my job.

Wolf480pl boosted

When you run out of RAM, just kill a bunch of WebContent processes. The tabs handled by them stop consuming resources, but you can easily resurrect them should you need them. No more "will I be able to find that page again if I close the tab" dillema.

Show thread

I love the smell of crashed browser tabs in the morning.

Wolf480pl boosted

Mastodon's attempts to provide for both public, semi-private, and private posts have resulted in a really confusing #UX, where even experienced users are sometimes unsure exactly what level of privacy is offered by each of the scope options (Public, Unlisted, Followers-only, Direct), and newbies may not even know they exist. This has resulted in all sorts of user expectations not being met. Public posts users thought were private, and vice-versa.

I asked on their IRC ( on OFTC) and it looks like sometimes some packages are removed during point releases, eg. here: (scroll to "Removed packages")
debian.org/News/2020/20200208

Maybe I should host my own snapshot of their repo.

Show thread
Wolf480pl boosted

@Wolf480pl so, we live in times when you not only need to backup all the stuff you use, but also all the resources you're depending on?

What do I do when a debian package suddenly disappears from official repos?

Wolf480pl boosted

A stated design goal of builds.sr.ht is to never make you push weird commits just for the sake of the CI. That means using `git push -o skip-ci` instead of putting `[skip ci]` in your commit message, or letting you paste build manifests into the website to test them instead of pushing a bunch of test commits to see if your CI config works.

(Repeating comment from a thread with a locked participant)

Zig isn't as small of a language as I thought, especially with its large number of ad-hoc builtins[1].

That being said, I could read and understand the whole language spec/documentation in one day, and reading the stdlib code is pretty fun. It's kinda like reading Lua code of an OS for Minecraft computers (OpenComputers or ComputerCraft).

[1]: ziglang.org/documentation/mast

Show more
niu.moe

Welcome to your niu world ! We are a cute and loving international community οΌ―(≧▽≦)οΌ― !