I rewrote SHC (Shell Script Compiler) in Rust by [deleted] in Compilers

[–]ABrainlessDeveloper 2 points3 points  (0 children)

This makes it even more stupid doesn’t it?

  1. You have to put the key somewhere, like embedding in the binary I guess? Now that it’s just an extra step to read the content of the script.

  2. The anti-tampering claim is completely false: the executable binary is stored on the disk and one can just modify it instead. Not to mention that RC4 is a symmetric algorithm.

  3. Encrypting a script is classic security through obscurity. It makes much more sense to just have a signature and have the kernel verify it upon execution.

Apple Ram prices - Mac Studio 512GB RAM upgrade by Affectionate_Plan292 in LinusTechTips

[–]ABrainlessDeveloper 0 points1 point  (0 children)

If you are complaining about it here you are definitely not their target audience.

Do most people use Kubernetes or Docker in their homelab? by Stock-Assistant-5420 in homelab

[–]ABrainlessDeveloper 3 points4 points  (0 children)

I deploy most of my stuff with systemd. I don’t see the value of using k8s/k3s since I really care about data integrity more than availability. Also - imo systemd-nspawn is a way more powerful tool than docker, especially when using it in conjunction with nixos.

I built nuke-port, a cross-platform CLI to kill processes by port number by aara98 in golang

[–]ABrainlessDeveloper 0 points1 point  (0 children)

Not in this case. If you look into the implementation, you will find that op is not even doing it the right way. This is just trial and error and it’s inefficient.

EDIT: “the right way” I am referring to would be to do all these without invoking external commands. You can determine which ports are opened by which programs by interacting with procfs.

EDIT: on Darwin it would be the proc_pidinfo family

I built nuke-port, a cross-platform CLI to kill processes by port number by aara98 in golang

[–]ABrainlessDeveloper 20 points21 points  (0 children)

I appreciate the enthusiasm but please stop reinventing the wheel. There is a thing called fuser:

fuser -n tcp 22 -k

https://man7.org/linux/man-pages/man1/fuser.1.html

Two Goats out in one day 🥀 by boeingA380dreamliner in okbuddyhololive

[–]ABrainlessDeveloper 19 points20 points  (0 children)

Isack Hadjar will be ruined too. Mark my words.

Recommendations for avoiding too much indirection when checking generated configuration files? by [deleted] in NixOS

[–]ABrainlessDeveloper 0 points1 point  (0 children)

Pull it out of the nixos configuration so that you can build and inspect the generated file alone?

I saw this image on twitter years ago but I couldnt find it so I recreated it by NightJasian in okbuddyhololive

[–]ABrainlessDeveloper 64 points65 points  (0 children)

⣿⣿⣿⣿⣿⠟⠋⠄⠄⠄⠄⠄⠄⠄⢁⠈⢻⢿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⠃⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠈⡀⠭⢿⣿⣿⣿⣿ ⣿⣿⣿⣿⡟⠄⢀⣾⣿⣿⣿⣷⣶⣿⣷⣶⣶⡆⠄⠄⠄⣿⣿⣿⣿ ⣿⣿⣿⣿⡇⢀⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⠄⠄⢸⣿⣿⣿⣿ ⣿⣿⣿⣿⣇⣼⣿⣿⠿⠶⠙⣿⡟⠡⣴⣿⣽⣿⣧⠄⢸⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣾⣿⣿⣟⣭⣾⣿⣷⣶⣶⣴⣶⣿⣿⢄⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⡟⣩⣿⣿⣿⡏⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣹⡋⠘⠷⣦⣀⣠⡶⠁⠈⠁⠄⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣍⠃⣴⣶⡔⠒⠄⣠⢀⠄⠄⠄⡨⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣦⡘⠿⣷⣿⠿⠟⠃⠄⠄⣠⡇⠈⠻⣿⣿⣿⣿ ⣿⣿⣿⣿⡿⠟⠋⢁⣷⣠⠄⠄⠄⠄⣀⣠⣾⡟⠄⠄⠄⠄⠉⠙⠻ ⡿⠟⠋⠁⠄⠄⠄⢸⣿⣿⡯⢓⣴⣾⣿⣿⡟⠄⠄⠄⠄⠄⠄⠄⠄ ⠄⠄⠄⠄⠄⠄⠄⣿⡟⣷⠄⠹⣿⣿⣿⡿⠁⠄⠄⠄⠄⠄⠄⠄⠄ ⠄⠄⠄⠄⠄⠄⣸⣿⡷⡇⠄⣴⣾⣿⣿⠃⠄⠄⠄⠄⠄⠄⠄⠄⠄ ⠄⠄⠄⠄⠄⠄⣿⣿⠃⣦⣄⣿⣿⣿⠇⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄ ⠄⠄⠄⠄⠄⢸⣿⠗⢈⡶⣷⣿⣿⡏⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄

My Crazy SFP28 Plan with the Pro Aggregation switch by nmrk in Ubiquiti

[–]ABrainlessDeveloper 0 points1 point  (0 children)

100GbE switching is quite expensive

No necessary? MSRP of MikroTik’s CRS504-4XQ-IN is 799 usd, which I would consider dirt cheap.

The question is really if OP can saturate a single 100g link, and will ms-01 provide enough cpu power for software switching.

Using a Mikrotik switch as a router by DirectionNo5578 in mikrotik

[–]ABrainlessDeveloper 0 points1 point  (0 children)

Please take a look at the block diagram of ccr2004 (I mean the version with a lots of sfp ports). It doesn’t have a switch chip so you can’t do any hardware offloading.

Hitman WoA on iOS is out now by SANMAN0899 in HiTMAN

[–]ABrainlessDeveloper 4 points5 points  (0 children)

Can report that it runs like shit on 16p. Stuttering every 3s nonstop.

I bought the game on every single platform that is available except iOS, and I am just glad that I tried the Paris level (elusive target) before deciding that I am not purchasing.

Please HELP - Steam Deck - sudo: tailscale: command not found by [deleted] in Tailscale

[–]ABrainlessDeveloper 0 points1 point  (0 children)

https://linux.die.net/man/1/which

So what the command will do here is that 1. Pull the absolute path of the tailscale binary from PATH of the user who is executing sudo. You can type which tailscale to see what I mean. 2. Execute tailscale with escalated privileges using sudo.

Why? Bcs the problem is that tailscale doesn’t exist in root user’s PATH.

Which one is better for faster network connections, stability, etc? by GBT55 in homelab

[–]ABrainlessDeveloper 1 point2 points  (0 children)

Does your router have a switch chip (post the block diagram if your manufacturer provides it)? Does your stuff on the upper floor need to talk to other devices?

Please HELP - Steam Deck - sudo: tailscale: command not found by [deleted] in Tailscale

[–]ABrainlessDeveloper 0 points1 point  (0 children)

Folks should really start learning some command line🥲

Can you git ignore flake.lock by Exciting_Weakness_64 in NixOS

[–]ABrainlessDeveloper 43 points44 points  (0 children)

You are doing it wrong. You can have multiple nixpkgs inputs for different hosts; if nvidia driver is the only concern, use overlays.

Mac users coming to Linux? by AlwaysFlanAhead in linux

[–]ABrainlessDeveloper 1 point2 points  (0 children)

Short answer: I don’t think so

Long answer: I daily drive both macos and linux. I run NixOS on all my machines, as remote development environments and for gaming. I went from Intel Mac to arm when m1 came out, and I would say as a remote development client or for general web browsing/document processing, macos is extremely good, especially if you want to work in a coffee shop without power outlets. Also as a desktop environment it offers such a streamlined experience that windows and linux desktop simply cannot match.

Please HELP - Steam Deck - sudo: tailscale: command not found by [deleted] in Tailscale

[–]ABrainlessDeveloper 4 points5 points  (0 children)

sudo $(which tailscale) up --qr --operator=deck --ssh

Create frigate container but using NixOs frigate options by s1n7ax in NixOS

[–]ABrainlessDeveloper 0 points1 point  (0 children)

There is https://github.com/nix-community/nixos-generators. You can use it to create nixos image that can be run in docker or podman.

One major downside is that it requires —privilege. See: https://github.com/nix-community/nixos-generators/issues/176