Some people think GUIs have replaced the command-line. But they have not, they are complementary.
Some things can still be done better and easier in the command-line, for example scripting, and to servers one usually has access via an SSH terminal only.
But there is more!
This blog will describe a few very convenient commands for software developers.
All of it works in the Bash shell (common on Linux), but most of it works in the Z shell (zsh) as well (common on Mac).
Continue reading →
How to use Kotlin’s let
and also
functions.
Continue reading →
The nice thing about the http
command in Nushell is that you can interact with HTTP endpoints without the need to install any external tools. You can use several subcommands like get
, post
, put
, delete
and patch
. Each of these commands has the options to specify request headers. You can use the option --headers
or the short version -H
followed by a list of header keys and values.
Continue reading →
The http
command in Nushell can be used to interact with HTTP endpoints. You can post data to an endpoint using the post
subcommand. If you want to post JSON data than you can simply use a record data structure and use the argument --content-type application/json
(or the shorthand -t application/json
). Nushell will automatically convert the record data structure to JSON and use it as the body of the HTTP request.
Continue reading →