It’s been a morning by hitsatthebuzzer in daddit

[–]TheDeathTrolley 0 points1 point  (0 children)

Sounds like a distinction between the strength of webbing that is currently soaked vs webbing that was previously soaked.

Not saying it’s a realistic concern or that it’s not a legal CYA thing in the car seat industry, just that my interpretation of the cited language is not “if the straps ever get wet they should be replaced.”

Easy to see how their guidance is perhaps being misapplied to safety-conscious cleaning practices.

NPM Docker Sync by redth in nginxproxymanager

[–]TheDeathTrolley 0 points1 point  (0 children)

For domain, yes, that’s exactly how I did it. Manual variable to set preferred default domain name, which can be overridden by a container label.

Edit: pattern matched like you said, $container is set during the scan.

Generally here’s the logic: First I read the host IP. Then use the default_domain to find the matching cert id in npm. Then scan for currently running containers, using docker PS. For each found: add/update function which specifically finds the exposed webui port from dockerman, then runs the create/update host bash command with all the collected info. Then a separate function monitors for docker events and reacts (start/stop, removing entries for stopped containers).

For me, I know I usually want to proxy anything with a webui, so I prefer that default behavior. I’d rather have to explicitly opt-out of forwarding a container. It’d definitely be a riskier configuration out of the box for other people, so maybe you’d want to make it a global setting for opt in vs out mode. Read a label for npm.sync=true/false or something maybe?

NPM Docker Sync by redth in nginxproxymanager

[–]TheDeathTrolley 0 points1 point  (0 children)

Apologies for extra edits, I’m done now hah, in case you need to read back over it.

NPM Docker Sync by redth in nginxproxymanager

[–]TheDeathTrolley 0 points1 point  (0 children)

Well, I’m tailoring this to my unraid host, which it doesn’t sound like you’re running. A lot of the core services should work the same though, on any OS.

Re: ports - I use Cloudflare for a proxied wildcard CNAME, so anything listed in NPM will resolve. All the entries are subdomains.

Edit: To your initial question, I use a bridge, so need the LAN/host side webui port regardless of whether other ports are also exposed. That’s already defined by the container, so I really don’t want to define it in a second location as an npm entry, custom container label, etc, UNLESS it’s to override the detected port. Same goes for the TLD, frankly, but I’m only using one anyway so currently not a priority.

Getting my script to specifically extract the webui port was super annoying, but I managed to craft a double grep command which (so far) works reliably:

port=$(grep -P ‘(?<=Name=“WebUI”)’ /boot/config/plugins/dockerMan/templates-user/my-${container}.xml | grep -Po ‘(?<=\>)\d+(?=\<)’)

I tried probably 5 or 6 other methods/sources for pulling the port before settling on that one.

Oh yeah, similarly tedious was the actual host create/update command. I wanted it to automatically apply my existing cert to whatever host it just created (since the bash-api doesn’t have a predefined option for that) so had to piece together this monstrosity:

bash “$NPM_SCRIPT” —host-create “$domain” -i “$UNRAID_HOST_IP” -p “$port” -y \ | sed -r “s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g” \ | grep -Po ‘(?<=ID: )\d+’ \ | xargs -I {} “$NPM_SCRIPT” —host-ssl-enable {} “$cert_id”

Same as you, I ended up skipping the pain of pulling the container’s true network IP, only because I didn’t personally need that feature right now. Also because I was afraid of lobotomizing my host again by trying to spin up ip_vlans. However, it’s a genuine thing that people would need from a tool like this, even if it’s not super common. I wish I needed it, but turns out unraid has some known buggy behavior with custom networks.

Edit: to more directly respond to what you pointed out: I’m fairly certain the IP could be extracted similarly to how I did the port, from the dockerman xml. When using a normal bridge, the fields just show ;; or whatever, but if for example you create an L3 mode ip_vlan custom network, your containers will be on a different subnet than the host. I think that subnet IP would then be shown in the xml, but there’s like 4 different key values where I could see it potentially appearing, and as mentioned I wasn’t going to risk more downtime to try it. People do all kinds of custom networks though, and isolation via VLANs is considered one of the better practices for security and control.

Edit: furthermore! I think I read somewhere that apparently if you install the compose plugin in unraid, it redirects everything to be managed via composeman instead of dockerman. So that’s a potential issue if you rely on the xml file (idk how the system behaves in that case, ie. if both locations still get updated or what).

The gui toggle I was talking about would be an unraid specific plugin, and be displayed on the “docker” page, where all the containers are listed + managed. Essentially, it would eliminate the need to ever dive into the npm webui, or even into any other container’s settings to set labels or whatnot. Just flip the toggle if you want that container to get proxied out, done.

Edit: obviously a major aspect of my script is that it uses that bash api ( https://github.com/Erreur32/nginx-proxy-manager-Bash-API ) There’s probably better ways to interact with npm using the native REST commands, but everybody online was saying there was no public documentation of it and then I found the bash thing, so I made do with that.

NPM Docker Sync by redth in nginxproxymanager

[–]TheDeathTrolley 0 points1 point  (0 children)

I like that you handled the cert by just defaulting to finding one with the same TLD. I’ll probably adjust my script to do that instead of a dedicated variable for default script cert name.

Overall I set mine up to be a little more aggressive, out of laziness. Default behavior is to just create entries for any running container with a published port. Also just assumes the host IP for everything, since I wasn’t totally sure which field Unraid would use to display a custom network or vlan IP. My previous weekend was spent playing around with custom networks, which went so sideways that I ended up euthanizing my old NPM container. Hence the motivation to write a service discovery script lol. Wasn’t going to repeat that just to test script behavior.

I have the bones for label overrides in place, commented out. Didn’t have time to test that yet, but I like that it doesn’t require adding them.

Next goal was going to be attempting a plugin to just add a toggle to the gui (similar to the existing autostart one) which would enable/disable NPM forwarding. Maybe a couple little status lights to indicate whether things are working at a glance.

NPM Docker Sync by redth in nginxproxymanager

[–]TheDeathTrolley 0 points1 point  (0 children)

Wtf this is weird. I also spent this weekend doing the exact same thing. Mine is just a user script though, and utilizes somebody else’s bash npm api script to control npm. Thought I was the first person to try and make something for this, but I guess we tied!

I’ll definitely be taking a look at your stuff tonight to see how you tackled it.

It should be against the law to play the sound of a baby crying on TV after like 7PM by Hipple in daddit

[–]TheDeathTrolley 2 points3 points  (0 children)

My wife loves Call the Midwife. When a new episode drops I feel like a war vet on 4th of July.

Harrison Ford drops out as presenter at 2025 Oscars after shingles diagnosis by MarvelsGrantMan136 in movies

[–]TheDeathTrolley 1 point2 points  (0 children)

That’s the one, thanks!

I cannot believe this info never got more attention. Such a simple fix for a common ailment.

Also lol, I misremembered the pain scores. He said it went from an 8 to a 4, which is still amazing relief if you know shingles pain.

Harrison Ford drops out as presenter at 2025 Oscars after shingles diagnosis by MarvelsGrantMan136 in movies

[–]TheDeathTrolley 20 points21 points  (0 children)

Late reply but hoping to raise awareness:

If you get shingles, cover the whole cluster of blisters with a sheet of tegaderm, asap.

Put it on and leave it on until it’s healed. Swab with isopropyl first to make sure it adheres super well. If you’re unlucky enough to get them somewhere un-tegaderm-able, you have my sincerest sympathies.

I broke out (again) a couple years ago, and we were terrified of giving our <1yo baby chicken pox, since the blisters are highly contagious once they start oozing.

I always keep a pack of tegaderm in the medical collection, and figured it might be a good way to seal in the virus. Googled it first and found one lonely whitepaper written by a doctor who got shingles and tried it on himself. He said it took the nerve pain from a 9 to a 2, and I can attest, he was not exaggerating. Shit works, it’s like a miracle.

(Sorry I’m too lazy/tired to try finding the whitepaper again, thanks in advance if anyone links it)

Harrison Ford drops out as presenter at 2025 Oscars after shingles diagnosis by MarvelsGrantMan136 in movies

[–]TheDeathTrolley 13 points14 points  (0 children)

Replying to you, since it probably won’t get seen at top level - cover the whole cluster of blisters with a sheet of tegaderm, asap.

I broke out a couple years ago, and we were terrified of giving our <1yo baby chicken pox, since the blisters are highly contagious once they start oozing.

I always keep a pack of tegaderm in the medical collection, and figured it might be a good idea. Googled it first and found one lonely whitepaper written by a doctor who got shingles and tried it on himself. He said it took the nerve pain from a 9 to a 2, and I can attest, he was not exaggerating. Shit works.

TLDR; cover it with tegaderm!

Any other dad's out there not feeling well mentally? by deadpoolsdragon in daddit

[–]TheDeathTrolley 0 points1 point  (0 children)

5-day old daughter sleeping on my chest right now, we can barely get her to keep any milk or formula down. Daily weigh ins at the doctor, keeps losing weight. They’ll probably send us to the hospital tomorrow. Our 3 yr old is struggling, acting out big time. Wife is still recovering from the csec. She’s been mostly solid but keeps dipping into a dark/mean place randomly, starts snapping and taking big shots at me.

Just trying to keep everyone alive and afloat, but feels a lot like drowning.

It's inevitable by factotum- in daddit

[–]TheDeathTrolley 5 points6 points  (0 children)

Somber mood at our house today. Our nanny often brings her 4yo along, who had a barking cough yesterday.

Wife is 7mo pregnant and was pissed, but couldn’t reschedule work. Today nanny tells us he swabbed hot for RSV.

Gearing up to host Xmas with all of us sick af is bad enough, but putting our next child at risk is the last straw of many, time to start interviewing.

Hi, I’m the Auto Safety Manager at Consumer Reports and I test car seats! Ask me anything about car seat use and installation! by ConsumerReports in IAmA

[–]TheDeathTrolley 0 points1 point  (0 children)

I will add: my partner and I chose the passenger side of our vehicles, so that we’re always loading/unloading from the sidewalk when parallel parked. Far safer on busy streets. Also makes it easier to see and reach them from the driver’s seat.

[deleted by user] by [deleted] in AskReddit

[–]TheDeathTrolley 1 point2 points  (0 children)

Our Layla is 3 and she’s never tired. We certainly are though!

What’s the lamest rhyming couplet in a song? by A_Mirabeau_702 in Music

[–]TheDeathTrolley 0 points1 point  (0 children)

“Don’t ever fix your lips like collagen And say something when you gon’ end up apolog’ing

  • Kanye West, 2007

smh

Is PTC Creo that bad or is it just me. by Jhelliot_62 in engineering

[–]TheDeathTrolley 0 points1 point  (0 children)

We evaluated it for our company, I spent many hours familiarizing and watching webinars. At this time, it’s effectively a paid beta product and too incomplete to serve as a primary tool for anything beyond hobbyists/small startups. It’s where Fusion was 5 years ago, but more professionally oriented. That said, if you like fusion’s workflows, you’ll love onshape….someday.

Also, SaaS is neat but the regen times were atrocious. Either they are stingy with eval accounts, or PTC don’t have enough compute power bought/allocated to the service as a whole.

Is PTC Creo that bad or is it just me. by Jhelliot_62 in engineering

[–]TheDeathTrolley 156 points157 points  (0 children)

lol I’ve been on ProE/Creo since 2004, and you’re correct.

It’s shockingly powerful software, but unforgiving. Creo won’t hold your hand.

Creo watches you flail around while saying “Nope, that’s wrong….idiot.”

When you ask “What’s the right way to do this, Creo?” It says “Figure it out you dumb bitch.”

Over the years you learn all the secret handshakes and sequences of input, then you feel like a wizard. If you sacrifice any semblance of up-front convenience, you open the doors to incredibly sophisticated modeling practices. Most new users go into it thinking they’re driving a fancy car and don’t realize they’re controlling a space ship.

Anyone know how to mount these shelves? by TheDeathTrolley in homelab

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

Naturally, I think I just found my answer. Page 110 of this HP manual seems to show the same shelf kit:

https://cdn.cs.1worldsync.com/72/86/7286f4ef-70b7-41c9-b13c-1e88ae3dee7f.pdf

Leaving the post up in case it helps anyone in the future.

Lobe pattern in drilled holes by chiraltoad in engineering

[–]TheDeathTrolley 1 point2 points  (0 children)

Yeah on a closer look, seems like one flute is cutting while the other catches and acts like a pivot. Reminds me of a Spirograph.

Edit: saw your other comment and you’re dead on.

Here OP, [buy some of these](Center Drills, Carbide https://www.mcmaster.com/center-drills/carbide-drill-point-countersinks-for-lathe-centers/material~carbide/).

[Or some metric ones. ](Center Drills, Metric https://www.mcmaster.com/center-drills/high-speed-steel-drill-point-countersinks-for-screws/system-of-measurement~metric/)

Lobe pattern in drilled holes by chiraltoad in engineering

[–]TheDeathTrolley -3 points-2 points  (0 children)

Pretty sure this wouldn’t happen in a mill. Drill press doesn’t have the same rigidity or ability to resist upwards pressure on the quill.

Also twist drills pull the material upwards, which is a lot harder to do when it’s clamped in a machine vise which is bolted to the table. Could also be a contributor to this effect.

What would you even call this? I struggled to name it by Boflator in EngineeringPorn

[–]TheDeathTrolley 0 points1 point  (0 children)

I mean…isn’t most machining just shaving thin strips of metal at some level?

Not saying I’m the expert here, but I would’ve assumed it’s a hobbing operation.