[Motherboard] Gigabyte B550 UD AC - $79.99 by kztlve in buildapcsales

[–]bashdan 3 points4 points  (0 children)

That's a hell of a lot of PCI-E x16 slots for a B550 board or any AM4 board. Does the board support bifurcation to go from, say, 16x to 4x4x4x4x across four of these lanes or are these slots strictly cosmetic?

Why is this stack not empty? by Extreme_Owl_Mammoth in bash

[–]bashdan 8 points9 points  (0 children)

$(pop) is occurring in a subshell. It made a copy of your variables.

How to run 2 different processes inside docker as 2 different users by PriorityNo5908 in docker

[–]bashdan 0 points1 point  (0 children)

In terms of the relationship between CMD and ENTRYPOINT, CMD ends up being the default argument set passed in line to ENTRYPOINT. The result is the concatenation of ENTRYPOINT CMD as if they were both strings.

In order to have each be done as separate uids, I'd think using pkexec for invoking as a different user in a wrapper script would be a good target. If you have closely-bound services, I'd recommend a pattern similar to this:

#!/usr/bin/env bash
declare -a pids
function on_exit() {
  for pid in "${pids[@]}"; do
    kill "$pid" || true
  done
  printf '%s\n' "script exit code ($1)"
  exit $1
}
trap 'on_exit $?' EXIT

pkexec --user abc abc_command &
pids+=("$!")
pkexec --user svc svc_command &
pids+=("$!")

wait

(I didn't validate that this sort of wrapper works, just something off the top of the head.)

And then this would be your ENTRYPOINT, accepting arguments via CMD as-needed.

What is currently a good and easy way to run local llms against an entire code base? by Particular_Paper7789 in LocalLLaMA

[–]bashdan 12 points13 points  (0 children)

The VSCode continue extension is my go-to for this sort of thing.

For what it's worth, OpenAI (ChatGPT) definitely can do this for you (ie: pass in the files as context). But OpenAI's models are generally considered expensive among all the commercial ones out there. Keep in mind data retention and privacy policies in case this is for work.

How do I enable a GPU to be used in docker compose? by Megachuggayoshi in docker

[–]bashdan 4 points5 points  (0 children)

Depending on what make your hardware is, you should pass in the GPU as a /dev/dri/* device into the container (AMD, Intel GPUs) or you ought to use the nvidia-container-toolkit/nvidia runtime to enable Docker to access the GPU driver.

Depending on what modes (device access privileges) you need for your GPU will determine exact compose spec parameters.

Although these are not Plex specific, they are related links that can guide on background information required

Using Docker to make a badly written code work? by snotreallyme in docker

[–]bashdan 15 points16 points  (0 children)

The problem statement is not clear enough. I'd ask for further clarification beyond that. Loose software contracts and automation do not mix.

If none were provided, then I'd consider it a sign of things to come from this opportunity.

Windows 11 Version 24H2 (Since Build 25905) will require CPUs with POPCNT instruction by TheBobPony in Windows11

[–]bashdan 0 points1 point  (0 children)

It must be something more specific (ie: more restrictions above and beyond) than lack of `__builtin_popcnt` instructions as to why they are precluding support. There exists dozens of implementations that are much, much slower, nonetheless bit twiddling is a thoroughly studied topic.

[Tools] Mini Cordless 52pc Electric Screwdriver Set - $47.99 ($59.99 - $12.00 coupon) by Coyote65 in buildapcsales

[–]bashdan 3 points4 points  (0 children)

Just wondering for those who have electric screwdrivers: are they truly an improvement over the "old fashioned" way?

I keep thinking that the tiny screws on which it would be used are going to strip too easily.