This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # | |
| # Short header explaining what the script does | |
| # | |
| # exit on error, error on unbound variables, disable glob expansion, fail within pipes | |
| set -eufo pipefail | |
| [[ -n "${DEBUG:-}" ]] && set -x | |
| : "${VAR_A=default_value_a}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # frozen_string_literal: true | |
| require 'erb' | |
| require 'json' | |
| require 'yaml' | |
| $stdout.puts JSON.pretty_generate(YAML.safe_load(ERB.new($stdin.read).result)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # frozen_string_literal: true | |
| require 'json' | |
| require 'yaml' | |
| $stdout.puts YAML.dump(JSON.parse($stdin.read)) |
OlderNewer