🌉 bridged from @MuttMutt@lemmy.world by Tidepool
MuttMutt
@muttmutt.lemmy.world.ap.tdpl.io
Found this electrical work under my house...
Been crawling around insulating the floors and came across this beauty. I took the original electric system out of service already as there was knob and tube still active when we bought the place. It was being used as a rental property and the slumlord was a real piece of work. The house was cheap and while making repairs and upgrades I'm free to do whatever I want.
For people using OpnSense who want some automatic snapshots.
So here is the deal. OpnSense is based on FreeBSD (as the users know but others may not understand) and utilizes ZFS Snapshots which are an amazing way to go back to a previous state when something breaks after an update. However for some reason the cron section has been changed so you can not add any random cron job and can only select from predefined options. This means we have to work from the CLI to add jobs, but even worse after an update the cron jobs are removed.... which becomes self defeating. I think I have a decent solution that will work to not only persist the backup script that will automatically create and remove snapshots but also recreate the cron jobs automatically. Ideally there would be some sort of addon where we could adjust things but this is the best I can do for now and want to share with everyone. Here is the script, place it at: /usr/local/etc/rc.syshook.d/start/99-snapshot-addon.sh and preform a chmod +x so that it is executable. Then reboot and the script to create the snapshot automatically and the cron job should be created. Since this runs on boot it will do this check after every update that requires a reboot or reboot in general and if the script and cron jobs are removed due to an update it will recreate them.
#!/bin/sh CAT_PATH="/usr/local/opnsense/scripts/auto_be_retention.sh" # Ensure target directory exists mkdir -p /usr/local/opnsense/scripts # 1. Write/Update the auto_be_retention.sh script cat << 'EOF' > "$CAT_PATH" #!/bin/sh WEEKLY_RETENTION=6 MONTHLY_RETENTION=4 TYPE=$1 if [ "$TYPE" != "weekly" ] && [ "$TYPE" != "monthly" ]; then echo "Usage: $0 [weekly|monthly]" exit 1 fi DATE_TAG=$(date +%Y%m%d_%H%M%S) BE_NAME="auto_${TYPE}_${DATE_TAG}" /sbin/bectl create "${BE_NAME}" if [ "$TYPE" = "weekly" ]; then KEEP=$WEEKLY_RETENTION else KEEP=$MONTHLY_RETENTION fi /sbin/bectl list -H | awk '{print $1}' | grep "^auto_${TYPE}_" | sort | \ awk -v keep="$KEEP" ' { lines[NR] = $1 } END { to_delete = NR - keep for (i = 1; i <= to_delete; i++) { print lines[i] } } ' | while read -r OLD_BE; do if [ -n "$OLD_BE" ]; then /sbin/bectl destroy -F -o "$OLD_BE" fi done EOF chmod +x "$CAT_PATH" # 2. Inject cron tasks into /etc/crontab if missing CRON_FILE="/etc/crontab" if ! grep -q "auto_be_retention.sh weekly" "$CRON_FILE"; then echo "0 3 * * 0 root /usr/local/opnsense/scripts/auto_be_retention.sh weekly" >> "$CRON_FILE" fi if ! grep -q "auto_be_retention.sh monthly" "$CRON_FILE"; then echo "30 3 1 * * root /usr/local/opnsense/scripts/auto_be_retention.sh monthly" >> "$CRON_FILE" fi # 3. Reload cron daemon service cron restartThis will check for and if missing create a script at /usr/local/opnsense/scripts/auto_be_retention.sh and it will check for and if missing create two cron jobs. The script located at /usr/local/opnsense/scripts/auto_be_retention.sh will create a snapshot with a timestamp named similar to: auto_monthly_20261001_033000 It will also look the count of previous snapshots (6 for weekly and 4 for monthly which can be adjusted if you choose) and delete the oldest one. Weekly snapshots will happen every Sunday at 3:00 AM and monthly snapshots will happen on the 1st of the month at 3:30 AM. ——— Why do we need this? We don't "need" this but the advantage is that if you can have automatic updates (which are an option that is available in the cron section) it's probably better to have a snapshot that can easily be rolled back to in the case of something acting up automatically created as well. The other option is try and undo the issue or take a config backup and reinstall then use that to get everything up and running again. Rolling back a snapshot takes a few minutes and gets everything back up and running until a solution for the issue/s are available. I ran the script and I am not seeing anything in the Settings > cron section!! You won't... that is part of the deal with how OpnSense has decided to handle things. You will need to look in: /etc/crontab This is because of how OpnSense is using menu drive cron selections, since the selections are not available it seems to not want to create or show them. I have done some testing and removed the files and jobs and also had them recreated. At the next update we will see if everything sticks around or if it is removed. Please remember that the script above is given without warranty or guarantee, use it at your own risk. I am not responsible if this script causes things not limited to but including data loss, testicular/breast shrinkage/growth, rude children, nagging wives/girlfriends/husbands/partners, alien visitation, global warming, or thermonuclear war. ID10T errors are also your own responsibility... you should not be running things you find on the internet without understanding how they work.
Turning an old Pixel 3a XL into a fully offline, battery-powered web server with postmarketOS & Lighttpd
I had an old Google Pixel 3a XL sitting around and decided to see if it could handle running as a fully offline, self-contained web server. I flashed postmarketOS 26.06 (headless Alpine Linux base) to it and set up a portable media node that broadcasts its own Wi-Fi AP, serves static pages, and streams video over a captive portal - no cell data or upstream internet needed. Quick Hardware/Tech Stack Breakdown: • Device: Google Pixel 3a XL (2019) • OS: postmarketOS 26.06 (CLI base with OpenRC) • Networking/AP: hostapd for the AP, dnsmasq for DHCP & wildcard DNS routing • Firewall: nftables redirecting port 80 requests to trigger the captive portal popup automatically • Web Server: Lighttpd handling HTTP requests and MP4 video range requests Performance & Power Draw: Under a test load streaming 720p video to 4 concurrent devices, total CPU usage averaged around 5% (load avg 0.51). Power draw stayed around ~2.4W off the internal battery, with temps holding steady at 54°C. Why build this? Mainly as an offline entertainment and information node. I run a non-profit foundation providing SCUBA training to young survivors of childhood abuse, and having a tiny, battery-powered web node lets us provide offline information and videos to people while traveling. I will also be able to use it to provide training videos if I am teaching in a location that does not have internet access available. I wrote up a complete overview covering the setup, and performance metrics if anyone wants to replicate it or build something similar. Over the coming weeks I will be posting configs and some other information to Github with a link from my site. https://www.muttmutt.us/geeky-stuff/portable-web-server-on-an-android-phone-for-offline-access/ Happy to answer any questions about postmarketOS setup or the networking config!
www.muttmutt.us
Spawning Giant Barrel Sponges
youtube.com
www.youtube.com
I bought a cheap pm2.5 sensor and got it working with ESPHome for my outdoor air quality sensor suite.
Long story short I'm in the process of building an outdoor air quality, temperature, humidity, pressure, and motion sensor setup for my front porch. One is the PM1006K which is a cheap (10.00 on Amazon) pm2.5 sensor. It's supposedly used in some consumer air filter systems and a review said it worked with ESPHome... well it does after a ton of poking and prodding with a little flogging of the wires. The link is to the github page where I have the final product posted. I know there are better sensors available but they tend to run more and the really good ones use a laser sensor and burn out over time so it becomes an ongoing (some only last 8000 hours) expense. This one is a DC01 Infrared PM2.5 Air Quality Sensor. And I'm pairing it with a DHT22 for temperature and humidity, a BMP280 temperature and barometric pressure sensor, an MQ-2 + MQ-7 + MQ-135 for hazardous gasses and smoke, and a BH1750 light sensor, a AM-312 + a HC-SR04 for motion detection. All running on an ESP32-S3 which is also acting as a Bluetooth Low Energy proxy. All the code will be able to be found at https://github.com/nightshade00013/MuttMutt-ESPHome when it's 100% completed. But being the pm2.5 working correctly was a huge step in the right direction. And the main reason why I am posting this now so others who are interested in building a cheap sensor can get started.
github.com
Palancar Horseshoe Sponge Spawning Event, Plus a Green Sea Turtle.
image image The premiere is at 3:00 PM Central (US)! https://www.youtube.com/watch?v=hwz-jhTsils This is the first of a series of dives I did while in San Miguel de Cozumel, Mexico from April 1st to April 23rd 2026. I know a lot of Lemmy users don't do YouTube but give me a chance. Being in the water has been life-changing for me. I’m a survivor of childhood abuse, and healing is still happening - day by day. I want to share that with other survivors, especially teens and young adults, by offering free training and a basic gear package. And I’m backing it with real work off-platform too: www.muttmutt.us (my personal page) www.doghousediving.org (where the foundation will live) The foundation will do one main thing for me: help put me in the water so I can create more content and train others. All it takes is you: watch, share, and help spread the word. MuttMutt P.S. If you want to do what Vulfpeck did I won't mind a bit. It's not like Google is going to lose anything. https://en.wikipedia.org/wiki/Sleepify
Giant Barrel Sponge Orgy Yesterday in Cozumel
Male is on the left. Female is on the right. Still taken from video while at Palancar Horseshoe, Cozumel, Mexico. Video of the event will be released at a later time on my Youtube channel https://www.youtube.com/@MuttMuttOutdoors
Green Moray Eel Spotted in the Open in Grand Cayman
youtube.com
Came around the corner of the reef after swimming under a shelf and this big green moray was just hanging around. Was amazing to see it sitting there out in the open though we probably spoiled its idea of grabbing a bite of some fish who happened to stumble upon it.
www.youtube.com
EyeCandy 2025 is here!!!
Green, spotted, and purplemouth moray eels in one dive. Cozumel Mexico.
youtube.com
www.youtube.com
Dive Shop owner caught on video bragging they can kill 2 people a year and it's no big deal.
NAUI had the video and decided it was NON-ACTIONABLE 8 years later a 12 year old girl took her final dive during training with the same shop.
I can't even believe a shop can be so blase about someone losing their life and the investigation was completely botched as well. The shop in question also trained many members of the local investigation dive team, not to mention the logs from the instructor and student were never downloaded.
divernet.com
Nurse Shark close encounter in Belize.
youtube.com
www.youtube.com
Furry Sea Pickle in Mexico
youtube.com
www.youtube.com
- Poetry
Slipper Lobster on the reef.
youtube.com
www.youtube.com
Slipper Lobster on the reef in Mahahual Mexico
youtube.com
www.youtube.com
Need some help trying to decide on an opening sequence
youtube.com
So I'm trying to make some adjustments for my channel on YouTube. I've made a couple opening sequences and I'm making a few more with some other changes and the plan is to have a couple on rotation. Anyway what I need to know is which ones are the best. Each one is 24 seconds long so it's going to be less than 5 minutes of your life. Watch the 4 clips over here: https://www.youtube.com/watch?v=s3BnZs7X1qU&list=PLj3yhIVQXodxw4XHR_olFHf8kwNeRgSmH And vote here: http://youtube.com/post/UgkxW2GcOF66oNqMF6zwiOt029bkXPsc-OGP Thank you very much. It may not seem like much but any help I can get is very appreciated.
www.youtube.com
Huge Green Moray Eel
youtube.com
www.youtube.com
Sometimes you have to do something that will help others to help yourself
For those who don’t know my diving started after my wife passed away. I have always had a love for water and being able to go under water has been something I have truly loved. My early life was one where I endured mental and physical abuse from my family and peers and sexual abuse from a family member. Diving has helped me survive one of the darkest periods of my life and grow beyond it, so I want to share diving with others. Particularly those people who have suffered sexual abuse as a child and are unable to afford it on their own. Today I registered the domain name and setup a website to take a beginning step off setting up the foundation. https://www.doghousediving.org/ I only hope that my vision will come to fruition in my lifetime.
The beginning of the DogHouse Diving Foundation
For those who don't know my diving started after my wife passed away. I have always had a love for water and being able to go under water has been something I have truly loved. My early life was one where I endured mental and physical abuse from my family and peers and sexual abuse from a family member. Diving has helped me survive one of the darkest periods of my life and grow beyond it, so I want to share diving with others. Particularly those people who have suffered sexual abuse as a child and are unable to afford it on their own. Today I registered the domain name and setup a website to take a beginning step off setting up the foundation. https://www.doghousediving.org/ I only hope that my vision will come to fruition in my lifetime.
Furry Sea Cucumber in Mahahual Village, Mexico
Took this in March 2025 with my new camera. Was really cool to see this huge cucumber on the reef, it was actually moving around a bit and the rest of the group missed it. Was a gorgeous dive in Mahahual, Mexico. Would love to go down with my 117’s and dive my ass off. Anyway full video is available here: https://www.youtube.com/watch?v=uzNvy9_WPnE If you do watch, help a guy out and maybe throw me a like? My images are stills from video that I have taken on my dives around the US and the Caribbean. https://www.youtube.com/@MuttMuttOutdoors/videos For anyone wondering I’m using a DJI Action 4 in a housing mounted on my DIY FigRig. https://www.muttmutt.us/my-current-camera-setup/