HNHacker News
TopNewBestAskShowJobs

frankerz

20 karma · joined March 11, 2015

submissionscomments
frankerz··on Vim Tips For Intermediate Users
Since I usually work with small laptop screens I tend to use vim tabs more than split. I find these key combinations quite comfortable:

nnoremap L :tabnext<CR>

nnoremap H :tabprevious<CR>

nnoremap <C-N> :tabnew<CR>

Also if you use offline docs (I only know Zeal) it would be pretty helpful to map the offline doc application to the K key depending on the language

nnoremap K :exec "!/usr/bin/zeal --query ".&ft.":".expand('<cword>')."&"

The above copies the word under the cursor and query it with zeal.

frankerz··on Vim Tips For Intermediate Users
I think what he means is just put both

set relativenumber

set number

In your .vimrc

frankerz··on The Traveling Salesperson Problem
It's quite sad that some people's first reaction to everything is to assume that the other carries an agenda and there's a need to be defensive.

Person A thinks that everyone else is a sexist person with an agenda. Person B who doesn't agree with person A thinks everyone else is a radical feminist with an agenda. It's a never ending cycle of stupidity.

/rant

frankerz··on Mill: Go-style concurrency in C
I'm not very good at C, but from my understanding this library uses longjmp functions which means it's cooperative multithreading rather than preemptive isn't it?
frankerz··on Fuzzing Nginx – Hunting vulnerabilities with afl-fuzz
> The problem you now see is that nginx never actually exists

I think you meant exits instead of exists.

Nice write up btw.

frankerz··on The Mighty Named Pipe
It seems like fish shell's ">" process substitution equivalence is not working as well as bash's though

https://github.com/fish-shell/fish-shell/issues/1786

frankerz··on The Mighty Named Pipe
How does the > process substitution differ from simply piping the output with | ?

For example (from Wikipedia)

tee >(wc -l >&2) < bigfile | gzip > bigfile.gz

vs

tee < bigfile | wc -l | gzip > bigfile.gz