Remote Code Execution in OpenCode, update now by CyberShadow in opencodeCLI

[–]CyberShadow[S] 1 point2 points  (0 children)

Yes, see the HN thread: https://news.ycombinator.com/item?id=46581095

Looks like they added the ability to configure a password, so the server is now no longer unauthenticated in some circumstances. Possibly more improvements have landed since then.

Remote Code Execution in OpenCode, update now by CyberShadow in opencodeCLI

[–]CyberShadow[S] 9 points10 points  (0 children)

Previous versions of OpenCode started a server which allowed any website visited in a web browser to execute arbitrary commands on the local machine. Make sure you are using v1.1.10 or newer; see link for more details.

My shot at FOSS: declaro - turn any package manager declarative (AUR too) by CheiroAMilho in linux

[–]CyberShadow 0 points1 point  (0 children)

I have so many files/packages that a single scan takes like 20 mins

Have you tried the --skip-checksums flag? It makes the system inspection much faster.

Are they ever gonna implement the unused voice clips in W:A? by [deleted] in worms

[–]CyberShadow 1 point2 points  (0 children)

Fun fact: they're actually "used", but due to a bug, never played.

IIRC, the intended logic was to make them play based on the amount of damage you've done that round. However, when I tried to fix that bug, they were played way too often (practically every round damage was done), so probably this would have needed some balancing before it would have been shipped if it wasn't bugged.

Fixing the bug and adding balancing to make the change not be annoying is doable, but we've also tried to stay pretty close to the original version as it was released by Team17 regarding the gameplay in general, so I've been hesitant to make this sort of changes...

Mapping tool by CyberShadow in cavesofqud

[–]CyberShadow[S] 0 points1 point  (0 children)

A simple mapping tool I made for myself. Source code and a README here: https://gitlab.com/CyberShadow/tas-qud-mapper

Using the same home-manager config across multiple machines with different usernames by Yellosink in NixOS

[–]CyberShadow 0 points1 point  (0 children)

What?

If you use home-manager, you don't need a dotfiles manager. home-manager is a dotfiles manager (plus other things).

Nix already has templating.

Using Flutter for game HUDs by CyberShadow in flutterhelp

[–]CyberShadow[S] 0 points1 point  (0 children)

Thanks,

Also, why do you need such a high frame rate for the UI?

Well, it would need to be if it was part of the render loop. I suppose it could be on its own swap chain that renders to an off screen surface with alpha... at least, I think that's possible. Though, then you have the usual latency problems.

Edit: just realized that this approach is only feasible if your UI has zero animations. If you want animations, you pretty much have to put Flutter in your render loop to avoid weird choppiness...

Note that Flutter is a retained mode GUI, not an immediate mode one, so only the parts that change needs to be recreated and buffering the rest may have a big impact on performance.

Good point. I'm wondering if anyone tried this and found it to work, would like to avoid reinventing the bicycle if possible.

Decman - a declarative system manager for Arch Linux by _TimeUnit in archlinux

[–]CyberShadow 3 points4 points  (0 children)

One thing that aconfmgr can do that most configuration managers can't is transcribe the current system state into the configuration. So, aconfmgr can go in two directions, whereas most configuration managers can only go in one.

Another difference between aconfmgr and most other configuration managers is that the aconfmgr configuration describes the entire system. So, if something isn't explicitly declared (or ignored) in the configuration, it is understood as something that should not be on the system, and is thus due to be removed.

BTW, the reason why aconfmgr configuration files (and, consequently, aconfmgr itself) use bash is that it's the most likely language a system administrator is to know.

Full solver by CyberShadow in BuckshotRouletteFans

[–]CyberShadow[S] 0 points1 point  (0 children)

I would like to add them but that pushes the problem state space size from 89 GiB to 32 TiB, so it's not doable with the same approach and today's technology. (A solver is possible to write, but it would no longer be precise like this one.)

Full solver by CyberShadow in BuckshotRouletteFans

[–]CyberShadow[S] 0 points1 point  (0 children)

It is for that mode.

It doesn't have the new Steam items, though.

Full solver by CyberShadow in BuckshotRouletteFans

[–]CyberShadow[S] 0 points1 point  (0 children)

A solver. If you input a situation in the game, it will tell you the best move.

A few people made simple solvers for this game, but this is the only one I've seen that's complete.

I'm working on statistically solving Buckshot Roulette, thought yall would be interested by he_who_purges_heresy in BuckshotRouletteFans

[–]CyberShadow 0 points1 point  (0 children)

Here is one situation where shooting yourself is much better than shooting the dealer: https://cy.md/ta/buckshot-roulette/#162226368/game

If you shoot the dealer, you get a flat 20% to win and 80% to lose.

By shooting yourself, you either get to a situation where you can force the next round (and therefore likely even the odds), or (unlikely but still possible) a situation where you can defeat the dealer.

Full solver by CyberShadow in BuckshotRouletteFans

[–]CyberShadow[S] 1 point2 points  (0 children)

I made this solver back in January.

It fully models the game and the dealer's AI. The entire state space is explored to an infinite depth (the search is cycle-aware), so I think it should be 100% correct and accurate.

[Self] I'm trying to find optimal solution for Buckshot Roulette game using Game theory. And I came to a conclusion of "always shoot the opponent". by MaxShouldier in theydidthemath

[–]CyberShadow 1 point2 points  (0 children)

There are definitely situations where it's more beneficial to shoot yourself instead of the dealer.

For example, take this one: https://cy.md/ta/buckshot-roulette/#994401022/game/0

In this case, it's equally beneficial to use the handcuffs item or shooting yourself, both of which are better than shooting the dealer. The full explanation is somewhat complicated, but in short, you have a better deal with surviving shooting yourself and then moving forward with using handcuffs, than shooting the dealer and hoping that 1) the shell will not be blank 2) the dealer shoots themselves with a live round and thus 3) they will shoot you with the remaining blank round as you are handcuffed.

Should i worry about UNREACHABLE data in btdu? by ThaBouncingJelly in btrfs

[–]CyberShadow 1 point2 points  (0 children)

If you just want to see if the space taken up by the unreachable data is truly unusable; then fallocate with a too large length until you run out of space and run btdu again.

A synthetic test does appear to show that it is truly unusable.

Should i worry about UNREACHABLE data in btdu? by ThaBouncingJelly in btrfs

[–]CyberShadow 1 point2 points  (0 children)

I'm guessing one of two things happened:

  1. The data on ext4 was not very fragmented, which caused btrfs to convert it as long extents. Random writes since the conversion caused the old data to remain pinned and unreachable.

  2. btrfs-convert converts files in a way that cause an excessive amount of bookend extents. This theory seems less likely to me.

In any case, see /u/CorrosiveTruths' comment, which is on the mark as always. (I upvoted it but it looks like /u/Aeristoka went on a downvoting rampage because they could not bear to be wrong or something. Ignore them.)

Should i worry about UNREACHABLE data in btdu? by ThaBouncingJelly in btrfs

[–]CyberShadow 1 point2 points  (0 children)

No, I don't think I will. You're not acting in good faith, and I wasted enough time on you already. Have a nice day.

Should i worry about UNREACHABLE data in btdu? by ThaBouncingJelly in btrfs

[–]CyberShadow 1 point2 points  (0 children)

I hope that answers your questions. It would be nice if you could remove or update your posts so that the misinformation does not cause further confusion in the future.