It’s been a very long time since I’ve done one of these. So I thought I’d share. Not all of this was learned in the last week, but in the recent past.
-
When you do port forwarding with SSH, the default binding address for the forwarded port is 127.0.0.1. This is a security feature that prevents that port from being used by outsiders.
- If you want to expose this, enable the configuration GatewayPorts in the SSHD configuration
-
Groovy has special DSL support for Cucumber. It makes writing cucumber steps easier and simpler to manage environment hooks
- There are even Geb cucumber steps. (https://github.com/tomdcc/geb-cucumber)
-
The obvious one, but rarely done in practice: Creating a POC in code is a lot better to get your core logic working than building out a full app and trying to make decisions later.
-
Bash: Substring extraction is possible in a very concise and easy manner. (Like most things in Bash, there are magical characters for that) It makes sub-arrays possible.
- See: https://www.tldp.org/LDP/abs/html/string-manipulation.html and ${string##substring}
-
Bash function parameters are errrr different. Unlike most C-like languages, they define them by an array index than a variable name. (I.e. $1, $2, …)
-
You should define your local variables in your function near the top
-
All variables are global unless you declare them as local in bash
-
Other
-
Magic shows can be pretty cool (Thanks, Michael Carducci! [NFJS])
-
I need to see more firebreathing shows. (Rammstein included lots of fire displays)
- I saw the Freak Show and Tell show last week: https://freakshowtell.com/