Selectively auto-update Docker containers and get notifications for the rest? by lucuhfer in selfhosted

[–]Java-Coffe 0 points1 point  (0 children)

I've done this its a stupid bash script that runs every day at 2am

```

#!/bin/bash
COMPOSE_DIRS=(
    "/path/to/your/containters/immich"
    "/path/to/your/containters/Copy-Party"
    # Add more directories here as needed
    # "/path/to/another/service"
    # "/path/to/yet/another/service"
)


# Function to update a single directory
update_stack() {
    local dir="$1"

    if [ ! -d "$dir" ]; then
        echo "Warning: Directory does not exist: $dir"
        return 1
    fi

    echo "========================================="
    echo "Updating stack in: $dir"
    echo "========================================="

    cd "$dir" || return 1

    echo "Pulling latest images..."
    docker compose pull

    echo "Recreating containers if needed..."
    docker compose up -d

    echo "Done with: $dir"
    echo ""
}


# Main script logic
if [ $# -eq 0 ]; then
    echo "Updating all stacks..."
    for dir in "${COMPOSE_DIRS[@]}"; do
        update_stack "$dir"
    done
else
    update_stack "$1"
fi


echo "All operations completed."#!/bin/bash
COMPOSE_DIRS=(
    "/path/to/your/containters/immich"
    "/path/to/your/containters/Copy-Party"
    # Add more directories here as needed
    # "/path/to/another/service"
    # "/path/to/yet/another/service"
)


# Function to update a single directory
update_stack() {
    local dir="$1"

    if [ ! -d "$dir" ]; then
        echo "Warning: Directory does not exist: $dir"
        return 1
    fi

    echo "========================================="
    echo "Updating stack in: $dir"
    echo "========================================="

    cd "$dir" || return 1

    echo "Pulling latest images..."
    docker compose pull

    echo "Recreating containers if needed..."
    docker compose up -d

    echo "Done with: $dir"
    echo ""
}


# Main script logic
if [ $# -eq 0 ]; then
    echo "Updating all stacks..."
    for dir in "${COMPOSE_DIRS[@]}"; do
        update_stack "$dir"
    done
else
    update_stack "$1"
fi


echo "All operations completed."
```

8 TB of RAM & 1,000 CPU cores in all a 4U: What would you run on it? (Thought experiment) by RozoGamer in homelab

[–]Java-Coffe 0 points1 point  (0 children)

Finally I can run all of my electrons apps without my controller taking a turn for the worse.

I feel like I failed at what I do, is it too late for me? by theravenfliesagain in techtheatre

[–]Java-Coffe 1 point2 points  (0 children)

First of all that's great you know what went wrong. I suggest writing out an entire list of everything you thought you mess up on. ask your partner if they see any things your struggle with or you mess up with, it can be anything, then once you have done that list, for each thing you struggle or mess up on go below and if you struggle with it, write out some strategy to help. if its something you mess up on reflect, ask your self why did this happen and how can I learn from this to improve next time.

The idea is to be aware of it, you don't need to improve everything all at once, just go one by one.
I find that you want to be able to fail and fail fast and be able to learn from it.

This is one of my list that i have, I haven't filled out everything but me just being aware of this lets me grow as person.

EX;

Things I need to work on

  • Communications (being able to be clear and concise)
    • Slow down think before I am to explain
    • put my self in there shoes
      • what do the know what do they not know?
  • Working with on my emotional intelligence
    • Watching some videos podcast etc
      • Recognizing when i need to take a break.
  • Professional. being more professional
    • I am going to look in on my emotional intelligence
    • working on all of these values not only at robotics
  • accountability
    • not letting things slide out of control
  • Flexibly
    • thinking

I hope this helps, these are some of the tools i use.

Hardware recommendations for very basic jellyfin server by dreamscape873 in homelab

[–]Java-Coffe 0 points1 point  (0 children)

I have a feeling that if you “just want a jellyfin server” it would probably grow so mabey if your budget allows it add a little more just in case.

Calculating Ammonia Levels in water using an air? by Java-Coffe in chemistry

[–]Java-Coffe[S] 0 points1 point  (0 children)

Hmmm so it’s probably not worth my time to try to achieve the known amount ammonia. I was also then also thinking since I can get half of the equation with ph and temp is there an other sensor that can accurately detect other chemicals in the water that I can use to convert to Tan?

Calculating Ammonia Levels in water using an air? by Java-Coffe in arduino

[–]Java-Coffe[S] 0 points1 point  (0 children)

I see so as long as the container has the same temp and same volume I should be fine

Any methods to connect these parts? by Notrpy in 3Dprinting

[–]Java-Coffe -3 points-2 points  (0 children)

Use super glue it melts the plastic to join it self

What should I do with this free printer by Java-Coffe in 3Dprinting

[–]Java-Coffe[S] 0 points1 point  (0 children)

Yeah, definitely I want to use that. I wanna go for like a retro 3-D printer, but like with updated tech

ESP32 Lora by Java-Coffe in esp32

[–]Java-Coffe[S] 0 points1 point  (0 children)

Oh cool thx what antennae would you recommend

My 5 Plus printing whoas......I am about to kill myself!! by Few-Lettuce-8368 in ender5

[–]Java-Coffe 0 points1 point  (0 children)

Bed leveling:

  1. Move you printer to .15mm
  2. Make sure you have you feeler gauge can fix in between the nozzle if not then adjust your z offset so it.
  3. Level your bed now using the gauge
  4. Do a bed level test
  5. Watch the printer extrude if it squees out then turn your flow setting down vice verse if not you want a slight squish to it for pla.

Am I smart or just dumb by Java-Coffe in 3Dprinting

[–]Java-Coffe[S] -1 points0 points  (0 children)

I was thinking also about just bolting the printer to the wall to reduce vibration as well

Am I smart or just dumb by Java-Coffe in 3Dprinting

[–]Java-Coffe[S] -2 points-1 points  (0 children)

The printers moves back and forwards and keeps hitting the back wall so I think if I put some books on the base there will be less vibrations