Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Calzifer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
Calzifer
4y ago
Bash / Shell is one of the last things I would trust a typical AI considering how much bad shell code/examples exist out there. (it always surprise me how many unquoted variables exist in most shell scripts; quoting fixes many pro
92.
▲
by
Calzifer
4y ago
> Have an administrator `setcap cap_net_bind_service=+ep /your/binary/here` and you can use any port you want. And remember to do it again every time the binary is updated :/ > chown /etc to nobody:wheel and B
93.
▲
by
Calzifer
4y ago
And avoid seek. Pipes are not random access. I once tried to use a python library to convert a file from stdin but it failed on a f.seek(0) the library added 'just in case' in the beginning.
94.
▲
by
Calzifer
4y ago
Because zsh has usually the url-quote-magic feature enabled which automatically escapes all special characters typed or pasted if the current argument is identified as URL.
95.
▲
by
Calzifer
4y ago
No it is not. The single quote example is wrong because the evaluation part $(...) is unquoted. Take a closer look. The first single quote part ends after the first semicolon right before the $(
96.
▲
by
Calzifer
5y ago
The great thing with old tools is that it had decades of testing and most even obscure bugs are already found and fixed. If I run 'cat' in my shell I know it will print/output the file content. If I run 'shx cat' I
97.
▲
by
Calzifer
5y ago
"incredibly hard real engineering challenges" like building a battery powered car? A random list of real world innovations I can think of which are imo more impressive: - Large Hadron Collider - Multicompter. Had you expected 40 y
98.
▲
by
Calzifer
5y ago
Apache had a single SVN repository for all projects in the past. That reached 1889412 commits. https://svn.apache.org/viewvc