Indexed arrays use non-negative integers (0, 1, 2, ...) as keys.
| Section | Action | Syntax | Example |
|---|---|---|---|
| Declaration | Declare & Init | names=("Alice" "Bob" "Charlie") |
Creates an array with keys 0, 1, 2. |
| Basics | Access Value | ${names[1]} |
Output: "Bob" |
| description | applyTo | downloadCommand |
|---|---|---|
Git workflow and best practices for AI agents and humans |
**/* |
curl -L --silent --remote-name https://gist.githubusercontent.com/jesperronn/8caa210551f86daee827bb628696d464/raw/git.instructions.md |
| #!/usr/bin/env bash | |
| # | |
| # this file is a template for bash scripts | |
| # it provides common functions and a standard structure for bash scripts | |
| # | |
| # curl -L --silent --remote-name https://gist.githubusercontent.com/jesperronn/c06371a3a2685af1a5eab71f543e09a5/raw/bash-template.sh && chmod +x bash-template.sh | |
| # | |
| # Agents can use this template to create new bash scripts quickly and easily. | |
| # | |
| # Format, there are 3 main sections: |
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # Author: Jesper Rønn-Jensen, Nine A/S | |
| # Date: 2025-04-23 | |
| # Version: 1.0 | |
| # Description: This script creates multiple identity providers in Keycloak using the Keycloak API. | |
| # Example on how to use Keycloaks API to create multiple Identity providers | |
| # the script file here uses curl command to provide the example |
| # Direnv common sense configuration. | |
| # This file is used to configure direnv, a shell extension that allows you to load and unload | |
| # environment variables based on the current directory. | |
| # | |
| # This file is located in the $HOME/.config/direnv directory. | |
| # It is loaded automatically by direnv when it starts up. | |
| # $ cat $HOME/.config/direnv/direnv.toml | |
| # see https://direnv.net/man/direnv.toml.1.html | |
| @Configuration | |
| @NoArgsConstructor | |
| @AllArgsConstructor | |
| public class OAuth2LoginConfig { | |
| @Value("${system.oauth2.client.id}") | |
| private String adminClientId; | |
| @Value("${system.oauth2.client.secret}") | |
| private String adminClientSecret; |
| # EditorConfig is awesome: https://EditorConfig.org | |
| # USAGE: | |
| # curl -L --silent --remote-name https://gist.githubusercontent.com/jesperronn/e5415bbbdbc6028db09c4943c108da1d/raw/.editorconfig | |
| # top-most EditorConfig file | |
| root = true | |
| # Unix-style newlines with a newline ending every file | |
| [*] | |
| charset = utf-8 |
| 1 REM Kick-off 2022 test løsningen. Opgaven gik ud på at udskrive teksten | |
| 2 REM "KICKOFF 2022 BARCELONA" på skærmen på en Commodore 64 | |
| 3 REM | |
| 4 REM | |
| 5 REM **** COMMODORE 64 BASIC V2 **** | |
| 6 REM 64K RAM SYSTEM 38911 BASIC BYTES FREE | |
| 7 REM | |
| 8 REM READY. | |
| 9 REM | |
| 10 PRINT "KICKOFF 2022 BARCELONA" |
| # Fra Nine Speed Session Git Kommandolinje presentation 2021-05-04 | |
| # | |
| # Flere af disse kan findes i mine dotfiles | |
| # https://github.com/jesperronn/cowboy-dotfiles/blob/master/link/.gitconfig | |
| # benyt git push -u for at oprette branches | |
| git config --global push.default current | |
| // example Jenkinsfile with the following features | |
| // | |
| // * parallel build | |
| // * Slack notifications | |
| // * Clickable links to relevant commits and healthcheck urls | |
| // * Multisite deployments | |
| def git_host = "https://github.com/company/project_name" | |
| def host = [ | |
| integration: [ |