Skip Navigation
TubeSync: Sync YouTube playlists offline. Because YT Music is too costly
  • The video in YT and the music played in YTMusic are two different uploads, you can easily get one in YT by checking the YTM URL and getting the ID. So yeah, yt-dlp should get you only the song if you created a playlist with only songs instead of music videos.

  • Do you have any advice, recommendations, and/or tips for someone wanting to host a public/non-personal Lemmy instance?
  • I don't think there are services like that, since usually this means deploying and destructing an instance, which takes a few minutes (if you just turn off the instance you still get billed).
    Probably the best option would be to have a snapshot, which costs way less than the actual instance, and create from it each day or so yo run on the images since it was last destroyed.

    This is kind of what I do with my media collection, I process it on my main machine with a GPU, and then just serve it from a low-power one with Jellyfin.

  • "Backup" your fedi account, when not self hosting?
  • IIRC this was already addressed and should be automatic.
    There was an issue specifically mentioning GDPR and the devs implemented a way to automatically delete the data of an account within the given time.

    It's not a GDPR request in itself, but AFAIK a normal delete account request should be compliant... INAL

  • What would tools/services would you recommend for hosting without self hosting?
  • Start by learning docker, you don't have to selfhost anything yet, just learn to run a container, specially to run automated stuff. Then learn to build the images and run docker compose.

    Also you could start checking any form or infrastructure as code. I usually hear about ansible and nixos.
    This helps having a way to redeploy your services in any hardware easily.

  • Is there a way to hide dependabot commits in the history of a repo?

    I'm trying to see how active a project is, but dependabot spam makes it annoying to find actual commits and to know if those commits are relevant.

    There's no need for me to know chai was updated from 5.1.1 to 5.1.2, I want to see what were the most recent actual features implemented.

    5
    Cession de bail tandis processus avec le tribunal

    Savez-vous si il y aura des problèmes avec cette situation?

    J'ai juste rejeté l'augmentation du loyer pis la compagnie as envoyé le cas au TAL. Si je fait une cession de bail, le prochain propriétaire auras des problèmes? Je me demande au cas où cela pourrait effrayer les candidats possibles ou si j'aurai des problèmes.

    Je crois aussi que la compagnie pourrait rejeter ces deux processus parce que les deux département sont à eux, c'est ça?

    Que me recommandez-vous?

    Mon département est 3 1/2, et le outre est 4 1/2, pour seulement ~$30 plus.

    0
    Alternative to syncthing for large music collection?
  • Why do you need the files in your local?
    Is your network that slow?

    I've heard of multiple content creators which have their video files in their NAS to share between their editors, and they work directly from the NAS.
    Could you do the same? You'll be working with music, so the network traffic will be lower than with video.

    If you do this you just need a way to mount the external directory, either with rclone or with sshfs.


    The disks on my NAS go to sleep after 10 minutes idle time and if possible I would prefer not waking them up all the time

    I think this is a good strategy to not put additional stress in your drives (as a non-expert of NAS), but I've read the actual wear and tear of the drives is mostly during this process of spinning up and down. That's why NAS drives should be kept spinning all the time.
    And drives specifically built for NAS setups are designed with this in mind.

  • Is Earth mostly liquid, like a water balloon?
  • There's a difference between water and liquid.

    Not sure if the solid core has more mass than the mantle.
    In any case, I'd say it's like a balloon with something solid floating in the middle.

  • Why do podcasts have preroll ads now?
  • IIRC they mentioned is next to impossible without actually processing the video and guessing when then ad stops on your client (since the ads will change per user, so it can't be done on a server for all users)

  • Why do podcasts have preroll ads now?
  • Yes, most podcasts are hosted outside of your podcast player and distributed via RSS (even if this is Spotify which already hosts music).
    So when a service has the podcast it means it lists the response from the RSS feed, but usually they just copy the text data, including the URL where the actual audio is stored.
    This audio is served by whatever other service the creator of the podcast uses, which means you're a free user to that service even if you pay for Spotify, which means the wonderful benefit of ads.

    And these are ads you can't block since they're included in the audio stream (yay! /s).
    Podverse (the player I use) mentions this as an issue when creating clips of the podcasts because they can't know how much the timestamp has been offset by those ads, so your clip probably only sounds good to you.

  • Mexico’s First Female President Takes Office | A climate scientist and former mayor, Claudia Sheinbaum will be inaugurated on Tuesday as the first woman to lead the country.
  • As long as you mean a landslide win by a party lead by a guy who said a religious charm was better during the pandemic than any medication, vaccine or any countermeasure, a guy who said "women deserve to go to heaven" when asked if he's feminist, a guy who has said all the power should be concentrated in the government, not in independent entities, a guy who said eolic turbines make the landscape ugly, and who made two big investments in refineries during his administration... Yeah, it's a good thing to see the left-wing in the power.

  • Mexico’s First Female President Takes Office | A climate scientist and former mayor, Claudia Sheinbaum will be inaugurated on Tuesday as the first woman to lead the country.
  • She IS AMLO's administration, there was no word from her before he said something about anything during her campaign.

    AMLO had said since the beginning of his term he was going to disappear from the public to his state after today, but earlier this year he said he would come back if the circumstances demanded it, and just last month I think he said he will stay around.

    I don't wish her luck, I wish México luck.

  • Cloud storage/backup
  • I use rclone and duplicati depending on the needs of the backup.

    For long term I use duplicati, it has a GUI and you can upload it to several places (mines are spread between e2 and drive).
    You configure the backend, password for encryption, schedule, and version retention.

    rclone, with the crypt submodule, you use it to mount your backups as am external drive, so you need to manually handle the actual copy of the data into it, plus versioning and retention.

  • Protests in Mexico as controversial judicial reform passed
  • No, it doesn't suit the needs of the country, it suits the needs of the political party of the president.

    Everyone with half a brain agrees this is bad and will make any judge bound by their promises in campaign (ha, more like the promises to their party and promoter) and allow any one to do the job of someone that should have good qualifications.

  • Is there any way to save storage on similar images?

    So, I'm selfhosting immich, the issue is we tend to take a lot of pictures of the same scene/thing to later pick the best, and well, we can have 5~10 photos which are basically duplicates but not quite. Some duplicate finding programs put those images at 95% or more similarity.

    I'm wondering if there's any way, probably at file system level, for the same images to be compressed together. Maybe deduplication? Have any of you guys handled a similar situation?

    50
    How to get total rows in mysql if there was no `LIMIT` clause?

    I was using SQL_CALC_FOUND_ROWS and SELECT FOUND_ROWS(); But this has been deprecated https://dev.mysql.com/doc/refman/8.0/en/information-functions.html#function_found-rows

    The recommended way now is first to query with limit and then again without it selecting count(*). My query is a bit complex and joins a couple of tables with a large number of records, which makes each select take up to 4 seconds, so my process now takes double the time compared to as I just keep using found rows.

    How can I go back to just running the select a single time and still getting the total number of rows found without the limit?

    4
    How to get a list of launchable activities of all installed apps?

    cross-posted from: https://lemmy.pe1uca.dev/post/1512941

    > I'm trying to configure some NFC tags to automatically open an app, which is easy, just have to type the package name. > But I'm wondering how I can launch the app in a specific activity. > > Specifically when I search for FitoTrack in my phone I get the option to launch the app directly into the workout I want to track, so I don't have to launch the app, click the FAB, click "Record workout" and then select the workout. > So I want to have a tag which will automatically launch this app into a specific workout. > > How can I know what's the data I need to put into the tag to do this? > > Probably looking at the code will give me the answer, but this won't apply to closed source apps, so is there a way to get all the ways all my installed apps can be launched?

    1
    How to get a list of launchable activities of all installed apps?

    I'm trying to configure some NFC tags to automatically open an app, which is easy, just have to type the package name. But I'm wondering how I can launch the app in a specific activity.

    Specifically when I search for FitoTrack in my phone I get the option to launch the app directly into the workout I want to track, so I don't have to launch the app, click the FAB, click "Record workout" and then select the workout. So I want to have a tag which will automatically launch this app into a specific workout.

    How can I know what's the data I need to put into the tag to do this?

    Probably looking at the code will give me the answer, but this won't apply to closed source apps, so is there a way to get all the ways all my installed apps can be launched?

    6
    Any good linux voice changer?

    I'm using https://github.com/rhasspy/piper mostly to create some audiobooks and read some posts/news, but the voices available are not always comfortable to listen to.

    Do you guys have any recommendation for a voice changer to process these audio files? Preferably it'll have a CLI so I can include it in my pipeline to process RSS feeds, but I don't mind having to work through an UI. Bonus points if it can process the audio streams.

    13
    Why is my chromecast trying to access other devices in my network?

    cross-posted from: https://lemmy.pe1uca.dev/post/1434359

    > I was trying to debug an issue I have connecting to a NAS, so I was checking the logs of UFW and found out there are a lot of connections being blocked from my chromecast HD (AndroidTV) on different ports via the local IP. > > Sometimes I use jellyfin, but that's over tailscale, so there shouldn't be any traffic over local IP, just over tailscale's IP. > But shouldn't have traffic right now since I wasn't using it and didn't have tailscale on. > > The ports seem random, just sometimes they are tried two times back to back, but afterwards another random port is tried to be accessed. > > After seeing this I enabled UFW in my daily machine and the same type of logs showed up. > > So, do you guys know what could be happening here? > Why is chromecast trying to access random ports on devices in the same network?

    1
    Why is my chromecast trying to access other devices in my network?

    cross-posted from: https://lemmy.pe1uca.dev/post/1434359

    > I was trying to debug an issue I have connecting to a NAS, so I was checking the logs of UFW and found out there are a lot of connections being blocked from my chromecast HD (AndroidTV) on different ports via the local IP. > > Sometimes I use jellyfin, but that's over tailscale, so there shouldn't be any traffic over local IP, just over tailscale's IP. > But shouldn't have traffic right now since I wasn't using it and didn't have tailscale on. > > The ports seem random, just sometimes they are tried two times back to back, but afterwards another random port is tried to be accessed. > > After seeing this I enabled UFW in my daily machine and the same type of logs showed up. > > So, do you guys know what could be happening here? > Why is chromecast trying to access random ports on devices in the same network?

    0
    Why is my chromecast trying to access other devices in my network?

    I was trying to debug an issue I have connecting to a NAS, so I was checking the logs of UFW and found out there are a lot of connections being blocked from my chromecast HD (AndroidTV) on different ports via the local IP.

    Sometimes I use jellyfin, but that's over tailscale, so there shouldn't be any traffic over local IP, just over tailscale's IP. But shouldn't have traffic right now since I wasn't using it and didn't have tailscale on.

    The ports seem random, just sometimes they are tried two times back to back, but afterwards another random port is tried to be accessed.

    After seeing this I enabled UFW in my daily machine and the same type of logs showed up.

    So, do you guys know what could be happening here? Why is chromecast trying to access random ports on devices in the same network?

    3
    What am I doing with iptables?

    I've only used ufw and just now I had to run this command to fix an issue with docker. sudo iptables -I INPUT -i docker0 -j ACCEPT I don't know why I had to run this to make curl work.

    So, what did I exactly just do? This is behind my house router which already has reject input from wan, so I'm guessing it's fine, right?

    I'm asking since the image I'm running at home I was previously running it in a VPS which has a public IP and this makes me wonder if I have something open there without knowing :/

    ufw is configured to deny all incoming, but I learnt docker by passes this if you configure the ports like 8080:8080 instead of 127.0.0.1:8080:8080. And I confirmed it by accessing the ip and port.

    10
    How 0% APR credits make money?

    I mean, the price of the product is the same, I'm taking a loan for the duration of the credit but paying no interest? What's the catch? I can keep my money making a bit of interest instead of giving it right away and without increasing the price of what I was already planning to buy. When or why wouldn't I choose 0% credits?

    26
    datahoarder @lemmy.ml pe1uca @lemmy.pe1uca.dev
    What are you average file sizes for movies and series?

    I'm looking at my library and I'm wondering if I should process some of it to reduce the size of some files.

    There are some movies in 720p that are 1.6~1.9GB each. And then there are some at the same resolution but are 2.5GB. I even have some in 1080p which are just 2GB. I only have two movies in 4k, one is 3.4GB and the other is 36.2GB (can't really tell the detail difference since I don't have 4k displays)

    And then there's an anime I have twice at the same resolution, one set of files are around 669~671MB, the other set 191 each (although in this the quality is kind of noticeable while playing them, as opposed to the other files I extract some frames)

    What would you do? what's your target size for movies and series? What bitrate do you go for in which codec?

    Not sure if it's kind of blasphemy in here talking about trying to compromise quality for size, hehe, but I don't know where to ask this. I was planning on using these settings in ffmpeg, what do you think? I tried it in an anime at 1080p, from 670MB to 570MB, and I wasn't able to tell the difference in quality extracting a frame form the input and the output. ffmpeg -y -threads 4 -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -i './01.mp4' -c:v h264_nvenc -preset:v p7 -profile:v main -level:v 4.0 -vf "hwupload_cuda,scale_cuda=format=yuv420p" -rc:v vbr -cq:v 26 -rc-lookahead:v 32 -b:v 0

    9
    How to conduct a software audit?

    cross-posted from: https://lemmy.pe1uca.dev/post/1137911

    > I need to help auditing a project from another team. > I got the pointers on what's expected to be checked, but I don't have like templates for documents for what's expected from an audit report which also means I'm not sure what's the usual process to conduct an internal audit. > I mean I might as well read the whole repo, but maybe that's too much? > > Any help or pointers on what I need to investigate to get started would be great!

    2
    How to conduct a software audit?

    I need to help auditing a project from another team. I got the pointers on what's expected to be checked, but I don't have like templates for documents for what's expected from an audit report which also means I'm not sure what's the usual process to conduct an internal audit. I mean I might as well read the whole repo, but maybe that's too much?

    Any help or pointers on what I need to investigate to get started would be great!

    12
    What is the technical explanation to limit size of sdd to connect?

    cross-posted from: https://lemmy.pe1uca.dev/post/1136490

    > I'm checking this mini pc https://www.acemagic.com/products/acemagic-ad08-intel-core-i9-11900h-mini-pc > > It says the M2 and SATA ports are limited to 2TB, but I can't imagine why that's the case. > Could there be a limit on the motherboard? On the CPU? > If most likely this is done in software (windows) probably it won't matter since I'm planning to switch to linux. > > What I want to avoid is buying it and being unable to use an 8TB drive.

    5
    What is the technical explanation to limit size of sdd to connect?

    I'm checking this mini pc https://www.acemagic.com/products/acemagic-ad08-intel-core-i9-11900h-mini-pc

    It says the M2 and SATA ports are limited to 2TB, but I can't imagine why that's the case. Could there be a limit on the motherboard? On the CPU? If most likely this is done in software (windows) probably it won't matter since I'm planning to switch to linux.

    What I want to avoid is buying it and being unable to use an 8TB drive.

    4
    What's a good use for an edge TPU?

    I started tinkering with frigate and saw the option to use a coral ai device to process the video feeds for object recognition.

    So, I started checking a bit more what else could be done with the device, and everything listed in the site is related to human recognition (poses, faces, parts) or voice recognition.

    In some part I read stable diffusion or LLMs are not an option since they require a lot of ram which these kind of devices lack.

    What other good/interesting uses can these devices have? What are some of your deployed services using these devices for?

    7
    Sharing caddy HTTPS certificates

    I have a few servers running some services using a custom domain I bought some time ago. Each server has its own instance of caddy to handle a reverse proxy. Only one of those servers can actually do the DNS challenge to generate the certificates, so I was manually copying the certificates to each other caddy instance that needed them and using the tls directive for that domain to read the files.

    Just found there are two ways to automate this: shared storage, and on demand certificates. So here's what I did to make it work with each one, hope someone finds it useful.

    Shared storage

    This one is in theory straight forward, you just mount a folder which all caddy instances will use. I went through the route of using sshfs, so I created a user and added acls to allow the local caddy user and the new remote user to write the storage. setfacl -Rdm u:caddy:rwx,d:u:caddy:rwX,o:--- ./ setfacl -Rdm u:remote_user:rwx,d:u:remote_user:rwX,o:--- ./ setfacl -Rm u:remote_user:rwx,d:u:remote_user:rwX,o:--- ./

    Then on the server which will use the data I just mounted it remote_user@<main_caddy_host>:/path/to/caddy/storage /path/to/local/storage fuse.sshfs noauto,x-systemd.automount,_netdev,reconnect,identityfile=/home/remote_user/.ssh/id_ed25519,allow_other,default_permissions,uid=caddy,gid=caddy 0 0

    And included the mount as the caddy storage { storage file_system /path/to/local/storage }

    On demand

    This one requires a separate service since caddy can't properly serve the file needed to the get_certificate directive

    We could run a service which reads the key and crt files and combines them directly from the main caddy instance, but I went to serve the files and combine them in the server which needs them.

    So, in my main caddy instance I have this: I restrict the access by my tailscale IP, and include the /ask endpoint required by the on demand configuration. ``` @certificate host cert.localhost handle @certificate { @blocked not remote_ip <requester_ip> respond @blocked "Denied" 403

    @ask { path /ask* query domain=my.domain domain=jellyfin.my.domain } respond @ask "" 200

    @askDenied path('/ask*') respond @askDenied "" 404

    root * /path/to/certs @crt { path /cert.crt } handle @crt { rewrite * /wildcard_.my.domain.crt file_server }

    @key { path /cert.key } handle @key { rewrite * /wildcard_.my.domain.key file_server } } ```

    Then on the server which will use the certs I run a service for caddy to make the http request. This also includes another way to handle the /ask endpoint since wildcard certificates are not handled with *, caddy actually asks for each subdomain individually and the example above can't handle wildcard like domain=*.my.domain. ```go package main

    import ( "io" "net/http" "strings"

    "github.com/labstack/echo/v4" )

    func main() { e := echo.New()

    e.GET("/ask", func(c echo.Context) error { if domain := c.QueryParam("domain"); strings.HasSuffix(domain, "my.domain") { return c.String(http.StatusOK, domain) } return c.String(http.StatusNotFound, "") })

    e.GET("/cert.pem", func(c echo.Context) error { crtResponse, err := http.Get("https://cert.localhost/cert.crt") if err != nil { return c.String(http.StatusInternalServerError, "") } crtBody, err := io.ReadAll(crtResponse.Body) if err != nil { return c.String(http.StatusInternalServerError, "") } defer crtResponse.Body.Close() keyResponse, err := http.Get("https://cert.localhost/cert.key") if err != nil { return c.String(http.StatusInternalServerError, "") } keyBody, err := io.ReadAll(keyResponse.Body) if err != nil { return c.String(http.StatusInternalServerError, "") }

    return c.String(http.StatusOK, string(crtBody)+string(keyBody)) })

    e.Logger.Fatal(e.Start(":1323")) } ```

    And in the CaddyFile request the certificate to this service ``` { on_demand_tls { ask http://localhost:1323/ask } }

    *.my.domain { tls { get_certificate http http://localhost:1323/cert.pem } } ```

    1
    datahoarder @lemmy.ml pe1uca @lemmy.pe1uca.dev
    SSD hides contents after a few days

    Seems the SSD sometimes heats up and the content disappears from the device, mostly from my router, sometimes from my laptop. Do you know what I should configure to put the drive to sleep or something similar to reduce the heat?

    I'm starting up my datahoarder journey now that I replaced my internal nvme SSD.

    It's just a 500GB one which I attached to my d-link router running openwrt. I configured it with samba and everything worked fine when I finished the setup. I just have some media files in there, so I read the data from jellyfin.

    After a few days the content disappears, it's not a connection problem from the shared drive, since I ssh into the router and the files aren't shown. I need to physically remove the drive and connect it again. When I do this I notice the somewhat hot. Not scalding, just hot.

    I also tried this connecting it directly to my laptop running ubuntu. In there the drive sometimes remains cool and the data shows up without issue after days. But sometimes it also heats up and the data disappears (this was even when the data was not being used, i.e. I didn't configure jellyfin to read from the drive)

    I'm not sure how I can be sure to let the ssd sleep for periods of time or to throttle it so it can cool off. Any suggestion?

    4
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)PE
    pe1uca @lemmy.pe1uca.dev
    Posts 54
    Comments 286