_h9mb's comments

_h9mb | 2 years ago | on: Anti-Anti-Adblocker uBlock filter to get rid of the annoying YouTube message

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 | 4 years ago | on: Show HN: A plain-text file format for todos and check lists

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 | 4 years ago | on: Show HN: A plain-text file format for todos and check lists

> 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 | 4 years ago | on: Show HN: A plain-text file format for todos and check lists

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 | 4 years ago | on: Google Drive users stung by macOS '.DS_Store' copyright infringement issue

> 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 | 4 years ago | on: Restic – Backups Done Right

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 | 4 years ago | on: Restic – Backups Done Right

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 | 4 years ago | on: Restic – Backups Done Right

I do something similar but using Borg (backup), gocryptfs (encryption) and rclone (sync) for cloud backup. No cascade.

_h9mb | 4 years ago | on: Command line tools for productive programmers

I use a similar trick but with aliases.

If I want to cd to let's say "~/work/john/some-project" I just type 'fcd' on the console and then "w j s" and "ENTER". Most of the times it work as expected and is really fast.

This is a mode provided by a helper that I wrote for fzf to make it easier to use and more useful. In essence it's just a shell script with a bunch of fzf tricks pre-configured.

https://github.com/danisztls/fzfx/

_h9mb | 4 years ago | on: Launch HN: Fig (YC S20) – Autocomplete for the Terminal

May be the setup you used. Too many plugins may make the shell unresposive. Anedoctally I autocompleted `ls /etc/` on zsh with a few plugins and on a bash with minimal setup. They were pretty much instantaneous. Maybe zsh was faster.
page 1