Better HN
topnewbestaskshowjobs
Log inSign up

_h9mb

1 karma · joined Sep 3, 2024 (2y ago) · 25 submissions

Submissions

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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

It tries to solve the "now what" part.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

https://blog.burntsushi.net/ripgrep/

comment 4y ago · link · parent

AFAIK ripgrep is faster. Haven't used ag much so I can't compare features.

comment 4y ago · link · parent

> 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.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

> 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.

comment 4y ago · link · parent

> 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.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

Have zero trust. Use E2E encryption.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

Suggestion: You can use pass to securely store and pipe your password, no superuser required.

comment 5y ago · link · parent

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

comment 5y ago · link · parent

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

comment 5y ago · link · parent

find and grep are mandatory tools of the Linux toolbox but I use fd and ripgrep most of the time.

comment 5y ago · link · parent

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/

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

https://github.com/zsh-users/zsh-autosuggestions

comment 5y ago · link · parent

You need no tool at all as you can do I reverse search in any shell with ^R. If you want to do it with a better UX you can use fzf. If you want the suggestions you can use zsh-autosuggestions or fish shell. Setting them up is straightforward. And if you want an example config for Zsh you can look mine. Zinit, the package manager, automatically load/install the plugins when loading the shell.

https://github.com/danisztls/dotfiles/blob/main/shell/zshrc

comment 5y ago · link · parent

I wrote it to improve my shell scripting but I've found myself using it it on a daily basis.

24.

Journal: Todo based task management and note taking(github.com ↗)

1 points · by _h9mb · 5y ago · 1 comment