Live data from Hacker News

Ask HN: Programs that saved you 100 hours?

news.ycombinator.com

511–520 of 531 posts

Re: Ask HN: Programs that saved you 100 hours?

#512
post #199

Earlier quoted context omitted.

Curious, what do you think of multi-cursor as a replacement for macros? (I’m on the team)

Multicurors aren't replacement for macros in the same sense as loops aren't replacement for recursion.

Honest question: when are loops not replacement for recursion?

My (admittedly naive) mental model of recursion is basically a loop where you bring your entire stack frame with you (or less, in the case of tail recursion).

Re: Ask HN: Programs that saved you 100 hours?

#515
post #179

For better or worse, I find GUI git clients to be less useful than the CLI. But like any CLI tool, it's productivity is limited by your ability to type without errors. Git has an Autocorrect[1] that will help you out. > git config --global help.autocorrect 1 Based on bash history data, I've also added a simple alias to my bash config: > alias gti="git" [1]: https://git-scm.com/book/en/v2/Customizing-Git-Git-Configura…

"Based on bash history data" is an interesting point, because it highlights that you can use your history to periodically check what you do inefficiently in the terminal, and which aliases you still need to add to your config: compute some statistics on the number of 1-word and 2-word commands you use the most, and see if they are more than e.g. 4 letters. With zsh: "history 1 | awk '{print $2}' | sort | uniq -c | so…

`history 200000 | awk '{print $2" "$3}' | sort | uniq -c | sort -n`

Re: Ask HN: Programs that saved you 100 hours?

#516
post #176

Delver Lens has saved me tons of time scanning Magic: the Gathering cards: https://delverlab.com .

Oh, dude! I'm very glad you enjoyed my app!

Of course you'd be on here. I know you mentioned this was a tool for primarily store owners but a lot of my friends and I use these to scan our old collections.

Re: Ask HN: Programs that saved you 100 hours?

#517
post #513

TamperMonkey! I've dealt with some monstrous websites which needed in-browser user-friendly automation, and TamperMonkey is that tool for the job.

can you share some examples please ?

I cannot, as it was for a past employer and the code is not open-source.

I used TamperMonkey to include https://www.papaparse.com/, then injected a button into a web page. The user would navigate to the "start" page, and a button would appear, it was just a normal form button. They would upload a CSV, which I slurped into a cookie, webdb... and something else. That would then walk a known set of URLs to scrape the unknown URLs and click the required buttons to trigger javascript calls by the website itself, before building a further set of URLs to navigate. It would visit the "final" set of URLs, gather the info into a secondary CSV, then walk back up to the entrypoint before going to the second entry.

At the end, it would download the secondary CSV to the users disk in a format that was uploadable to another system.

The entire thing was in a single if statement because I was just learning JavaScript and did not know any other way to get around async problems at the time. :)

It was ugly, but worked awesome and since writing it several years ago has probably saved 10s of thousands of hours.

Re: Ask HN: Programs that saved you 100 hours?

#518

The golden recipe: neovim, tmux, rg, fzf, i3/other tiling wm on nixos/arch Fzf all you can, not just inside vim, but also use it to switch between tmux sessions in an instant. I have a tmux manager on top of tmuxp that is able to start / switch to already started sessions via fzf. Identify patterns you use a lot and make snippets out of them. Create project templates. Have a folder where you dump reference / things t…

I was about to get it on with tmux, but as soon as Neovim implemented a terminal I was outta there. Seeing as Neovim is has terminal emulator, windows and tabs why do you still use tmux?
Post reply on HN