HackerTrans
TopNewTrendsCommentsPastAskShowJobs

_h9mb

no profile record

comments

_h9mb
·il y a 3 ans·discuss
I add all videos that I want to watch to a playlist and then run a script on my machine to download the videos. It will only download each video once as it keep tracks of downloaded videos through the file downloaded.txt so you can delete/move them freely. You can also add the script to a systemd timer or cron so to automate it.

This is the script: https://github.com/danisztls/yt-assistant. AFAIK the same can be done with a single line yt-dlp command and you can do the same to download all videos from a channel.
_h9mb
·il y a 3 ans·discuss
Shameless plug: https://github.com/danisztls/fzfx

It tries to solve the "now what" part.
_h9mb
·il y a 4 ans·discuss
Basically I use Git, ln and a setup script that I wrote.

https://github.com/danisztls/dotfiles

> primarily that I'd have to try to share it between professional and personal computers

My script has a recipes feature so you can store config at arbitrary places and have different recipes/configs for different situations.
_h9mb
·il y a 4 ans·discuss
I write data that makes sense to have as normalized in YAML format even if I'm not parsing it in any program because I may do so in the future and YAML is ergonomic.

But for things that shouldn't be normalized I write then as plain-text notes using markdown notation. It isn't true that nothing can parse plain text. I wrote a tool to do that and it works as expected. Of course it's bad design if you look exclusively from the software engineering perspective but ergonomics also matter and parsing text isn't hard.

Don't get me wrong also. I'm just a guy with peculiar use cases and bad experiences migrating away from Evernote and later Joplin.
_h9mb
·il y a 4 ans·discuss
https://blog.burntsushi.net/ripgrep/
_h9mb
·il y a 4 ans·discuss
AFAIK ripgrep is faster. Haven't used ag much so I can't compare features.
_h9mb
·il y a 4 ans·discuss
> Software engineering should be about more productive UX, not flexing one’s ability to parse arbitrary syntactic art.

Tasks lists are generally useless without their context. It makes sense to have tasks along their context (be it plain-text, markdown, JS, python...) Also it's more maintainable and portable. YAML/JSON/SQlite will be a headache when the user decide to migrate to another tool. This approach only require a text editor, any text editor in any platform. You can plug in whatever you prefer for syncing and sugar.

For a very few cases I use YAML to store data that isn't parsed by any program (only by me). And I can write a comment like 'TODO: Do something.' or "FIXME: X isn't working.' On the terminal using a code searcher and a text editor I can easily find and jump on those.
_h9mb
·il y a 4 ans·discuss
I had a similar insight some years ago. I write my TODOs mixed with text in markdown notes and use a CLI to do nice things like exploration and journaling. It purposefully doesn't have any state besides the notes in itself.

https://github.com/danisztls/journal

Lately I'm rarely using it because most of the things that I really have to do (work) are on my email inbox or containerized in project dirs. And for the later I just run 'rg "TODO:"' in the project dir.
_h9mb
·il y a 4 ans·discuss
[dead]
_h9mb
·il y a 4 ans·discuss
> In general keep in mind that your 8TB to backup likely has a power law distribution where your really important filesets are much smaller and can therefore be inexpensively backed up with more copies.

In my personal experience a simple ignore list can reduce size by an order of magnitude. Things that doesn't make sense to backup like thumbnails, cache files, development dependencies. And smaller is more robust, not only can it be inexpensively backed up with more copies but it can also be synced more frequently with a lower risk of partition and also is quicker to download and restore.
_h9mb
·il y a 4 ans·discuss
> there must be absolutely no way for the cloud or server hosting provider or someone gaining access to the server e.g. via an RCE in the SSH or other sync daemon to access any data (both content and metadata like file name) both in transit and at rest

Gocryptfs.
_h9mb
·il y a 4 ans·discuss
Linux has XDG base directories despite many vendors no using them.

https://wiki.archlinux.org/title/XDG_Base_Directory

PS. I don't know about Mac but Windows also have similar directories although more of a mess.

There's no reason to save artifacts or local user config along with data.
_h9mb
·il y a 4 ans·discuss
Have zero trust. Use E2E encryption.
_h9mb
·il y a 5 ans·discuss
Syncthing frequently stops syncing on my phone and requires me to delete everything and resync. I'm using receive-only folders. I think I'm an exception but it's been a pain in the ass.
_h9mb
·il y a 5 ans·discuss
Using Borg for more than a year I haven't had an issue yet. In the past I used a similar tool that had error-correction capability but the tool was buggy and slow when compared to Borg.
_h9mb
·il y a 5 ans·discuss
Suggestion: You can use pass to securely store and pipe your password, no superuser required.
_h9mb
·il y a 5 ans·discuss
It kind is, simple but effective. For comparison, take a look at my over-engineered backup script: https://github.com/danisztls/arbie/blob/main/arbie
_h9mb
·il y a 5 ans·discuss
I do something similar but using Borg (backup), gocryptfs (encryption) and rclone (sync) for cloud backup. No cascade.