Lurker News
I learned about a ton of useful CLIs, desktop apps, and SaaS products from this thread (https://news.ycombinator.com/item?id=13887237).

But it was posted 3 years ago, and perhaps some useful stuff has emerged in the interim, hence my starting this thread.

Comments (516) 196 threads

Earlier comments
vosper#
I'll second Hasura there (presumably an alternative like Postgraphile would have led to a similar result)
aklemm2 replies#
Fascinating to see OpenID here. Where do you use it? I thought it was pretty much dead, so implemented IndieAuth recently which does what I want, replacing OpenID’s functionality.
tptacek1 reply#
Keycloak is an IdP. It does everything, including OIDC (which is very widespread) and SAML. I assume when they say "OpenID", they mean OIDC.
shivekkhurana#
I concur.
BrandoElFollito1 reply#
Pretty much dead and replaced by what? (I am curoous as I thought it was a well established standard)
aklemm1 reply#
As stated, the poster is talking about OIDC, not the predecessor OpenID.

Continue this thread — 1 reply

cutemonster1 reply#
For what / How do you use Keycloak?
shivekkhurana#
We use it as the Auth layer for our web apps. Generally inside a docker container exposed at id.someappname.com
jldugger5 replies#
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...

girishso1 reply#
Better still

> alias g="git"

yks#
or g = ./gradlew
hiq3 replies#
"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 | sort -n"
With bash I think this should be "history" instead of "history 1".

fragmede#
While we’re on the subject of shortcuts, I have `awk1` mapped to `awk '{print $1}'` and the same up to awk9. It’s not that I can’t type it but it breaks my flow for such a simple use case.
m463#
I make one change to every new .bashrc file.

I change this:

  HISTSIZE=1000
  HISTFILESIZE=2000
to:

  HISTSIZE=1000000
  HISTFILESIZE=2000000
You would be surprised how useful this one change has been, answering historical questions easily, like how to generate that rsa key, or what packages did I install for that project last year.

You can usuall answer questions with ^r instead of the man page. Or maybe:

  "history | grep -C 10 "
Siira#
`history 200000 | awk '{print $2" "$3}' | sort | uniq -c | sort -n`
emilburzo2 replies#
> 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.

ScottFree#
> Random example: reverting a commit is 2-3 clicks, or a whole lot of typing.

    git log
    git revert {hash}
I'd hardly call that a whole lot of typing. It's roughly equivalent to 2-3 clicks in a GUI app.

Where the GUI falls down for me is more complicated things, like hard resetting a branch to origin or resolving merge conflicts.
Also, most of the git guis do things that I find distressing. For example, in one git GUI I tried a while back, I accidentally dragged a commit onto a branch listed in the sidebar. Only later did I realize the gui cherry-picked the commit into the branch without asking me for confirmation. It would do similar things if I dragged one branch into another.

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

williamdclt1 reply#
There's a section of people that I belong to, that aren't fans of the GUI clients because it doesn't fit in their workflows but also find the CLI not productive enough. We start writing aliases and custom scripts. We integrate git with FZF.

Well for all of these people: I recently found Lazygit (https://github.com/jesseduffield/lazygit) which is a terminal UI for git and that does exactly what I've been looking for all these years, down to vim-like keybindings!

gitgud1 reply#
I think I've used a very similar one called LazyDocker. But after a while I found that it wasn't that useful, and I don't like seeing the "donate" button in my face all day (call me old-fashioned).

The true power of CLI apps comes from "alias" commands that you build up yourself. The following commands are great examples of this:

    alias docker-kill-all='docker kill `docker ps -aq`'
    alias docker-rm-all='docker rm `docker ps -aq`'
After a while I've learnt that a gui or cli-gui can never compose as well as the terminal can...
williamdclt#
Lazydocker is made by the same guy yes! I don't find it as useful though.

> The true power of CLI apps comes from "alias" commands that you build up yourself
I usually agree. I spent way too many hours making aliases and I'm very proficient at it. But sometimes there's something like lazygit which does everything my aliases did, but slightly better as it gives me, for example, line-by-line staging and vim keybindings.
It is true that it does not compose, but I can still (and do) use the command line. It's just a nice increase of productivity in 90% of the cases (for me!)
Note: I'm not related to the lazygit project in any way, just very satisfied with it

algorithm_dk5 replies#
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 that need to be really easy to find, and set up vim to search into that instantly, no matter where you are.
Keep an inbox file to throw things in, make a wm bind a script to prompt for text and append it there via zenity. Don't throw links into it, it's gonna be a bookmark dump.
Make sure your todo system is a keybind away at all times.
Review your way of working, challenge, and improve it. Be lazy, but only when you afford it.

MiracleUser#
>Make sure your todo system is a keybind away at all times

This point here I think is incredibly useful in general. When accessing your full to-do list feels like its own todo, you're gonna have a bad time

Kratisto1 reply#
> Make sure your todo system is a keybind away at all times.

Can you access your todo system from your phone? I'm always torn on this, and why I keep my todos in google keep.

dbancajas1 reply#
what is rg, i3 or tiling window wm? can't you use tmux as a tiling WM?
mpwoz#
Only if everything you do is in a terminal.

If you also need a browser, IDE, or any other non-terminal application open then i3 lets you tile those as well.
I haven't used it in a while since we switched to macs and ssh'ing to remote linux dev desktops but when I had an all-linux dev setup I remember i3 being pretty amazing.

0_gravitas#
I really need to get around to fixing my arch, its still left mid-reinstall after at least a month (and I'm lost on the networking for the 2nd time, you'd think I'd have learned by this point)
yodelinghambone#
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?
macobo4 replies#
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)%(committerdate:relative)|%(color:blue)%(subject)%(color:reset)' | column -ts'|' | tac"
  alias r="recent"
posedge#
Second that. Would additionally recommend the fzf for fuzzy reverse history search. Absolute gold
eyelidlessness#
I absolutely love Fish, but it's worth warning anyone who's taking a first look and excited to try it, that some syntax differences from more familiar shells like Bash may cause frustration, both in terms of muscle memory and anytime you need to copypasta. It hasn't been enough of a problem for me to switch back (or to ZSH), the benefits far outweigh the frustration, but I do think it's worth a small warning.
toastal#
This one's tricky. I've driven fish daily for years, and it's definitely snappier than my old omzsh setup (I much prefer this style of history), but you can get bitten by certain tools not using shebangs properly.

Load more comments