prometheus-connectivity-exporter
youtube-cue
prometheus-connectivity-exporter | youtube-cue | |
---|---|---|
2 | 3 | |
1 | 14 | |
- | - | |
0.0 | 6.4 | |
about 2 years ago | 5 months ago | |
Go | JavaScript | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
prometheus-connectivity-exporter
- Ask HN: What apps have you created for your own use?
-
Internet magically gets faster when opening speedtest?
I don't trust speedtests. There are all kinds of wrong incentives, similar to GPU benchmarks. One thing I noticed was that the data speedtest.net sends has really low entropy. It just repeats 10 bytes. If I ran an ISP I would...
So I wrote chargen2p [1] as an extension to the classical chargen protocol.
I use it together with a Prometheus exporter [2] I wrote to periodically check my laptop's connectivity. The actual check runs over Wireguard, since I didn't want to open my chargen2p server to the public. This only checks download speeds, mind you. (The chargen2p library exports upload metrics, but the exporter doesn't use it.)
My graphs tell me the average is ~5 MBps, so 40 Mbps. This is between me (Switzerland) and a Hetzner DC in Germany. speedtest.net just now claimed 160 Mbps.
[1] https://github.com/tommie/chargen2p
[2] https://github.com/tommie/prometheus-connectivity-exporter
youtube-cue
-
Ask HN: What apps have you created for your own use?
> CLI: I wanted to download songs from youtube, but they were often stitched as complete albums - so I wrote a youtube-cue generator that generates cuesheets that can then be used to split and tag the yt-dlp downloaded audio file. (https://github.com/captn3m0/youtube-cue)
Thanks for this! I need to do some testing, this might automate the last manual step of my own script for converting YT mixes into distinct tracks. The problem I faced is that often the timestamps are not in the description, but instead in a comment, sometimes not even the pinned/top voted comment. That is why I paste it in via stdin for now.
As this fits the thread topic, a short description of this script. I enjoy YT mixes and wanted to listen to them in my car. I can use an USB stick with media files and playlists which are displayed decently by the infotainment system. I wrote a script that takes in a YT URL (or anything supported by yt-dlp), downloads & converts it to mp3, splits the mp3 file based on a list of timestamps, recognizes (tries to anyway) the songs via SongRec [0], tags & names the files correctly and finally generates an M3U playlist in the format recognized by my car. I use song recognition instead of parsing out the names from the timestamped list as the format of Artist - Title is nearly always slightly different. It was easier to use SongRec instead and get everything I need for tagging with >90% hit rate.
The heavy lifting is done by calling out to yt-dlp, ffmpeg and SongRec. I just glued them together with Python. I like your approach of a do one thing well and might add youtube-cue to the toolset.
[0] https://github.com/marin-m/SongRec
-
Beets is the media library management system for obsessive music geeks
Beets is amazing and comes with great defaults. I wrote code recently to generate CUE sheets from YouTube mixes[0] and beet imports it nicely and easily.
[0]: https://github.com/captn3m0/youtube-cue There is a bash snippet in readme to show the Beets integration.