Gutless2615

joined 1 year ago
[–] Gutless2615@ttrpg.network 1 points 2 days ago

Tech bro knob slobber.

[–] Gutless2615@ttrpg.network 1 points 2 days ago (1 children)

Yeah this is more elegant and closer to what I’d actually want to implement. I was more just showing what could be done in literally thirty seconds on the can with ChatGPT.

[–] Gutless2615@ttrpg.network 4 points 4 days ago (3 children)

“Give me a Python script using yt-dlp that I can run on a cronjob that will download the videos from any of my subscribed channels since the last time the script was run”

You can use the following Python script to download videos from your subscribed channels since the last run. This script uses yt-dlp and stores the last download timestamp to track new videos.

First, ensure you have yt-dlp installed:

pip install yt-dlp

Then, create a script called download_videos.py:

import os
import json
import subprocess
from datetime import datetime

# Configuration
last_run_file = 'last_run.json'
download_directory = 'downloads'

# Ensure the download directory exists
os.makedirs(download_directory, exist_ok=True)

# Load the last run time
if os.path.exists(last_run_file):
    with open(last_run_file, 'r') as f:
        last_run = json.load(f)['last_run']
else:
    last_run = datetime.now().isoformat()

# Update the last run time to now
current_run = datetime.now().isoformat()

# Command to get videos from subscribed channels since the last run
command = [
    'yt-dlp',
    '--download-archive', 'archive.txt',
    '--output', f'{download_directory}/%(title)s.%(ext)s',
    '--date-after', last_run,
    '--no-post-overwrites',
    '--merge-output-format', 'mp4',
    'https://www.youtube.com/channel/CHANNEL_ID',  # Replace with your channel URL
]

# Run the command
subprocess.run(command)

# Save the current run time
with open(last_run_file, 'w') as f:
    json.dump({'last_run': current_run}, f)

print("Download complete. Next run will check for videos since:", current_run)

Setting Up the Cron Job

  1. Make the script executable:

    chmod +x download_videos.py
    
  2. Open your crontab:

    crontab -e
    
  3. Add a line to run the script at your desired interval (e.g., daily at 2 AM):

    0 2 * * * /path/to/python /path/to/download_videos.py
    

Notes

  • Replace CHANNEL_ID in the script with your actual channel IDs or use a playlist URL if preferred.
  • The archive.txt file keeps track of already downloaded videos to avoid duplicates.
  • Adjust the paths to Python and your script as needed.
[–] Gutless2615@ttrpg.network 2 points 4 days ago

Well you know what they say “Great minds think quicker than mine and probably have already had that thought.”

[–] Gutless2615@ttrpg.network 5 points 5 days ago

Donate to the EFF for fighting that fight in court already.

[–] Gutless2615@ttrpg.network 8 points 5 days ago (8 children)

Yes but literally throwing together a script to download the days subscription videos to a jellyfin media drive would be stupidly simple.

[–] Gutless2615@ttrpg.network -1 points 1 week ago (2 children)

The design has absolutely not “definitely” improved.

[–] Gutless2615@ttrpg.network 11 points 2 weeks ago

I don’t doubt the ten year olds ability to prepare the fish, only the ability to understand the weight of her actions.

[–] Gutless2615@ttrpg.network 4 points 3 weeks ago (2 children)

Any time anyone is able to claw back some scraps of justice or get some kind of recompense for wrongs or - here’s a big one - change the law: that’s lawyers too. The characterization of all lawyers as sharks and assholes has done more to exacerbate the justice gap then help.

[–] Gutless2615@ttrpg.network 1 points 1 month ago

Using the local address for the jellyfin instance solved things. I have no idea why whatever jellyfin is doing via jellycon is somehow more performant than just streaming via smb or nfs in vanilla kodi but 🤷‍♂️. Good pull.

[–] Gutless2615@ttrpg.network 1 points 1 month ago* (last edited 1 month ago)

Otw but after replacing the flat Ethernet cable (no change), and while waiting for the vero I switched to connecting to jellyfin / jellycon via its local address instead of its external one (🤦‍♂️) and zero buffering silky smooth everything. I don’t understand why but holding my breath for now while I wait for the vero when I can retire this unit at least to the office tv where it doesn’t have the responsibility of always performing for the family.

 

The toddler loves having Kodi full of all their faves but I haven’t been able to iron out all the buffering I’m getting streaming from my mini-pc NFS mounted shares to the pi4 libreelec hooked up via Ethernet in the living room. Everything is wired, so I wouldn’t think that would be an issue but here I am about to put down a couple hundred dollars for a Synology router that looks like the monolith from 2001. Is this going to do the trick, you think? Is there another router recommended to keep a distributed little homelab (any 10tb spread between various usb hdd, raspberry pi’s and mini PCs all hosting a variety of containers and services) running smoothly? Budget I’m hoping to keep under 300 and lower the better but happy toddler and buttery smooth streaming over lan is the priority.

 

Well, color me surprised when, with my Proton VPN enabled, I still faced a government-mandated MITM attack while attempting to visit 1337x.to

"AVVISO

L’accesso al presente sito, che diffondeva illecitamente contenuti protetti dal diritto d’autore, è stato disabilitato in esecuzione di un provvedimento dell’Autorità per le garanzie nelle comunicazioni ai sensi del Regolamento di cui alla delibera n. 680/13/CONS

Per maggiori informazioni visiti il sito www.agcom.it"

To be completely honest, I wasn’t aware this was possible when using a VPN. I’ve tried swapping to multiple servers within Proton, but all seem to be returning the same. Is there some commonly known workaround?

26
submitted 7 months ago* (last edited 7 months ago) by Gutless2615@ttrpg.network to c/selfhosted@lemmy.world
 

As far as I’m aware, the only self hosted player character builder is the charactermancer in plutonium, the patreon-accessible Foundry VTT plugin made by the 5e.tools folks — but man. My kingdom for a dndbeyond alternative, something self hosted that can take open 5th edition content and allow my players to build and save their character sheets. I don’t suppose I’m just missing something already out there, or are there any projects I should be following?

 

Basically the title. Loving PopOS as my daily, but I understand that PopOS uses their own process and makes sure that only a checked driver gets wide release. Great for stability, less great for playing games that just came out. Is there a distro that this community generally recommends for gaming?

 

In my ever-ongoing struggle to disentangle myself and my family from our corporate overlords I have gleefully dived into self-hosting and have a little intranet oasis available; media, passwords, backups, files, notes, contacts, calendars -- basically everything I needed the Big G suite for at one point, I'm hosting locally, and loving it. But Unfortunately... my ISP can be shitty. Normally its' fine and no complaints, but every now and then the network itself goes down for maintenance for a few hours, half a day, a day. When those outages happen even though I have a battery backup/generator, I'm basically stuck treading water, unable to even listen to podcasts. I'm wondering what the folks here' have as a contingency plan for these kinds of outages. Part of me is considering pricing out some kind of VPS for barebone, password manager, podcast player, notes etc for outages; but I haven't dipped my toe into that world yet. Just wondering what folks are doing/recommending/

 

cross-posted from: https://ttrpg.network/post/980439

I have enough machines on my network that I've long wanted to get better monitoring going on, and I finally bit the bullet and I'm trying to push through learning my way around grafana and prometheus/node extension. I have been following this guide: https://grafana.com/docs/grafana-cloud/monitor-infrastructure/metrics/metrics-prometheus/prometheus-config-examples/docker-compose-linux/ (great, btw!) but after importing the dashboards so I have three dashboards providing some intense readouts of three different machines, it got me wondering: how privacy protective is this? Is Prometheus just sending out a steady stream of diagnostic data for anyone to snoop on if they get access to my LAN? How can I/should I harden these setups to be privacy conscious?

 

I have enough machines on my network that I've long wanted to get better monitoring going on, and I finally bit the bullet and I'm trying to push through learning my way around grafana and prometheus/node extension. I have been following this guide: https://grafana.com/docs/grafana-cloud/monitor-infrastructure/metrics/metrics-prometheus/prometheus-config-examples/docker-compose-linux/ (great, btw!) but after importing the dashboards so I have three dashboards providing some intense readouts of three different machines, it got me wondering: how privacy protective is this? Is Prometheus just sending out a steady stream of diagnostic data for anyone to snoop on if they get access to my LAN? How can I/should I harden these setups to be privacy conscious?

 

Personally I’m running Foundry and have been meaning to spin up Owlbear 1.0 now that it’s self hostable - but I feel like there’s more i could be doing. Is anyone aware of a self hostable character sheet/character builder? I suppose i could go next cloud for storing folders and files but I don’t think anyone would use it - what self hosted services are you using at your tables?

 

I'm looking for a spaced repetition alternative to Anki, ideally something that I can self host and expose like any other webapp, and that is compatible with .apkg Anki decks (or at least that is compatible with something I can convert .apkg decks into). I'd like to not have to create an account with Anki or some other third party, and wasn't super happy with anki-web and the anki-sync-server container -- but maybe I was just using that wrong...

 

I have a suite of services exposed using a reverse proxy (npm) protected with passwords, but I'm always a bit nervous that username/passwords aren't enough -- is there a way to set up 2FA either on Nginx Proxy Manager side or on, e.g., the 'arr suite of apps?

 

With Owlbear Rodeo 2.0 getting officially released the developers haven't quite made made good on their promises to open source the original Owlbear Rodeo (releasing under a non-commercial license instead of a proper Open Source license what they are now calling “Owlbear Rodeo Legacy”), but the source is available on GitHub, complete with a docker-compose file to spin up your own instance.

view more: next ›