Sal's local community (100 miles):
View more posts on the website
This is how I use jq to conditionally add an element to an array only if it doesn’t exist there already. In other words, add an element to an array only if it doesn’t create a duplicate in the array. This is particularly helpful when I’m scripting a JSON transformation and want to make it idempotent.
Sometimes I want a Git commit message without the leading indentation added by “git show” (for example, if I want to copy it and paste it somewhere else). This command gives me this output.
By default, Slack provides you with a Formatting toolbar and a WYSIWYG editor. I’m a big fan of writing in Markdown rather than WYSIWYG and use it everywhere I can. Fortunately, I can configure Slack to write in Markdown (or more accurately Slack’s subset of Markdown).