Add prefix to a list items
- debug:
var: result
vars:
prefix: foo
a_list: [ "bar", "bat", "baz" ]
result: "{{ [prefix] | product(a_list) | map('join') | list }}"
| #!/bin/bash | |
| # from https://chromium.woolyss.com/ | |
| # and https://gist.github.com/addyosmani/5336747 | |
| # and https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md | |
| sudo apt-get update | |
| sudo apt-get install software-properties-common | |
| sudo add-apt-repository ppa:canonical-chromium-builds/stage | |
| sudo apt-get update | |
| sudo apt-get install chromium-browser | |
| chromium-browser --headless --no-sandbox http://example.org/ |
| socat \ | |
| -v -d -d \ | |
| TCP-LISTEN:1234,crlf,reuseaddr,fork \ | |
| SYSTEM:" | |
| echo HTTP/1.1 200 OK; | |
| echo Content-Type\: text/plain; | |
| echo; | |
| echo \"Server: \$SOCAT_SOCKADDR:\$SOCAT_SOCKPORT\"; | |
| echo \"Client: \$SOCAT_PEERADDR:\$SOCAT_PEERPORT\"; | |
| " |
| #!/usr/bin/env bash | |
| # | |
| # File: | |
| # aws-signature-creator.sh | |
| # | |
| # Description: | |
| # A signature creator for AWS signature version 4 | |
| # | |
| # References: | |
| # https://czak.pl/2015/09/15/s3-rest-api-with-curl.html |
| network: | |
| version: 2 | |
| renderer: networkd | |
| bridges: | |
| dummy0: | |
| dhcp4: no | |
| dhcp6: no | |
| accept-ra: no | |
| interfaces: [ ] | |
| addresses: |
I have an updated version of this on my blog here: https://chrisamico.com/blog/2023-01-14/python-setup/.
This is my recommended Python setup, as of Fall 2022. The Python landscape can be a confusing mess of overlapping tools that sometimes don't work well together. This is an effort to standardize our approach and environments.