Gutless2615

joined 1 year ago
[–] [email protected] 99 points 3 days ago

Not a boat! Not a family vacation! Gasp! An… RV!?!?? SOMEONE THINK OF THE RIGHTSHOLDERS!

[–] [email protected] 7 points 3 days ago

404 don’t miss. Best tech journoing in the biz imho

[–] [email protected] 1 points 1 week ago

Tech bro knob slobber.

[–] [email protected] 1 points 1 week 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.

[–] [email protected] 4 points 1 week 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.
[–] [email protected] 2 points 1 week ago

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

[–] [email protected] 5 points 1 week ago

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

[–] [email protected] 8 points 1 week 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.

[–] [email protected] -1 points 2 weeks ago (2 children)

The design has absolutely not “definitely” improved.

[–] [email protected] 11 points 3 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.

[–] [email protected] 4 points 1 month 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.

 

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 8 months ago* (last edited 8 months ago) by [email protected] to c/[email protected]
 

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 have made good on their promises to open source the original Owlbear Rodeo (now “Owlbear Rodeo Legacy”) and the GitHub is available, complete with a docker-compose file to spin up your own instance.

 

Discord ain't it. There's got to be folks over on this instance e.g. that would be interested in setting up a Shadowdark community, right? Right?? I don't want to contribute to enshittified reddit's bottom line, but the Shawdowdark subreddit is one of the only reasons I still open up that tab every now and then...

view more: next ›