Live data from Hacker News

Ask HN: Programs that saved you 100 hours?

news.ycombinator.com

421–430 of 531 posts

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

#421
post #202

Using vim as my main editor has incredibly increased my productivity, but learning to use it's macros saved me even a more tremendous amount of time. It takes a while to learn to use it, but after that any kind of repetitive task can be done easily with it. And if combined with some bash and vimscript knowledge, it is even greater.

I love vim and have been using it for years. However, I really struggle to find a good config for writing typescript. I see my VSCode colleagues having a blast with auto completion and type signatures lookups. But I could never get this right in vim. Is there a resource about state of the art typescript with vim?

I highly suggest, [CoC](https://github.com/neoclide/coc.nvim). It's a simple LSP client, you'll get the exact same coding experience as VSCode. Then you install the [coc-tsserver plugin](https://github.com/neoclide/coc-tsserver) or any LSP server (gopls, omnisharp, etc..) and you're good to go!

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

#422
post #271

https://fishshell.com/ for sure Just having sensible defaults on a shell works wonders on my day-to-day productivity. Add a couple of aliases for productivity and off you go. abbr --add s "git status" abbr --add gap "git add --patch" abbr --add gco "git checkout" abbr --add gd "git diff" alias recent="git for-each-ref --sort=-committerdate refs/heads/ --format='%(color:yellow)%(refname:short)|%(color:bold green)%(com…

Second that. Would additionally recommend the fzf for fuzzy reverse history search. Absolute gold

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

#424

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…

> For better or worse, I find GUI git clients to be less useful than the CLI. Genuinely interested, why? I'm a huge fan of the CLI in general, but for some things it just slows me down, git usage is one of those. Random example: reverting a commit is 2-3 clicks, or a whole lot of typing.

> Genuinely interested, why?

They usually don't support the level of granularity I have on the CLI. For example, if I want to fix a commit on a PR based on feedback I've received, I can make the fix and `git rebase -i` will let me amend any of my previous commits (via 'fixup'). None of the IDEs I've tried support it; it's possible instead of an IDE one of the dedicated git tools like Kraken support this?

It's also just mildly terrifying when the IDE gives you a button with no further explanation for what it's actually doing. I.e. what do 'refresh' and 'sync' do in VS Code? The consequences could be dire: https://github.com/microsoft/vscode/issues/32405

> reverting a commit is 2-3 clicks, or a whole lot of typing.

Git revert is a single command; finding the commit to revert is the hard part. `git bisect` makes this easy, and I haven't seen any IDEs nail that one. That said, this is a rare use case.

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

#426
Stripe Atlas has personally saved me as a bootstrapped startup founder more than 100 hours over the past 3-4 years we've worked with them. It's just so relieving knowing I'm covered on anything regarding incorporation, legal, taxes/accounting, and I won't have to spend a ton of my own time researching vendors and googling esoteric topics.

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

#427
zsh-autosuggestions has definitely saved me more than hundreds of hours. When you type part of a command, it auto-suggests previous commands you've executed and then lets you expand to them, cutting down on your typing, on average, 75% or more.

For example, typing "scp" could expand to "scp -r myself@servername /home/myname/.logs/logfile ."

It's a concept that originated with the Fish shell, but is useful if you want to maintain some semblance of bash compatibility.

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

#428

Earlier quoted context omitted.

> - Windows. By not having to configure drivers and other compatibility problems which I have on Linux it definitely saved me 100 hours. OTOH building on windows takes literally multiple times the time it takes for building the same software on the same machine / SSD on linux. And that's something that I do every day, multiple times per day.

Have you tried WSL? I didn't like WSL 1, and early months of WSL2 were buggy af... but for the past 2 months, since I needed windows again, WSL2 with Docker Desktop support has been really nice. The VS Code remote wsl and ssh support has also been invaluable.

I mean... I could but I am quite happy with my linux setup and quite infuriated whenever I have to do stuff on Windows so..

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

#429

Everything[0] by Voidtools as a Windows search replacement. It makes search practically instant. Now that Windows search often fails to turn up even my most used files (what happened to Windows search? Was it intentionally nerfed?), Everything has become a necessity for me. [0]: https://www.voidtools.com/

I have avoided to install Everything after I have witnessed the chaos that results from its use in everyone's folder structure. People use to leave files everywhere without any organization criteria and simply rely to use Everything to find everything.

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

#430

- keeping all your configuration files (“dotfiles”: shell, git, etc) in one, version controlled place. Makes setting up new machines so much less stressful. Here are mine in case you’re interested, for macOS and Ubuntu: https://github.com/Bogidon/dotfiles - setting up a personal vpn with a reserved IP if you connect to services that require your IP to be whitelisted and you move often - for git cli: dashes take you b…

Alfred has a clipboard manager built in, what does Paste offer over it that justifies its fee for you?

Mainly iCloud sync, tabs, and larger previews where more than one is visible at a time
Post reply on HN