News for hackers. Stuff that matters.

brianlund

Re:Caddy – The HTTP/2 Web Server with Automatic HTTPS on Wednesday April 25, 2018 @06:54AM (#16920339)
A great alternative that we use in production for thousands of domains is https://github.com/GUI/lua-resty-auto-ssl
Re:Things I Wish I'd Known About Bash on Monday January 08, 2018 @07:45AM (#16096331)
I wasted a lot of time on this one:

If you declare a local variable and set it in the same step e.g: local MYVAR = $(/bin/false) The return code you get is from the local declaration, not assigning a value to the variable. It can be quite confusing when you afterwards check the return code with $? and it returns 0. Avoid it by assigning the value in a seperate command.