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
| --- | |
| - name: Create grafana network | |
| community.docker.docker_network: | |
| name: grafana | |
| become: true | |
| - name: Create grafana-mysql volume | |
| community.docker.docker_volume: | |
| name: grafana-mysql |
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
| - name: Generate cert | |
| ansible.builtin.command: > | |
| certbot | |
| certonly | |
| --email={{ admin_addr_to }} | |
| --agree-tos | |
| --non-interactive | |
| --expand | |
| --key-type=ecdsa | |
| --elliptic-curve=secp384r1 |
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
| # builder | |
| FROM golang:1.16-buster AS builder | |
| ARG DEBIAN_FRONTEND="noninteractive" | |
| RUN set -ex && \ | |
| apt-get -qq update && apt-get -y -qq install \ | |
| gcc | |
| WORKDIR /go/src/app |
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
| ARG spinnaker_version | |
| FROM us-docker.pkg.dev/spinnaker-community/docker/front50:spinnaker-${spinnaker_version} | |
| COPY services/front50/*.yml /opt/front50/config/ | |
| COPY spinnaker.yml /opt/front50/config/ |
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 | |
| set -eo pipefail | |
| logger() { | |
| printf '%s (%s) %s [%s]: %s\n' "$(date)" "$(whoami)" "${BASH_SOURCE}" "${1}" "${2}" | |
| } | |
| # determine maxprocs according to cgroup-mem-limit | |
| memory_available="$(cat /sys/fs/cgroup/memory/memory.limit_in_bytes)" |
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
| [Desktop Entry] | |
| Name=Firefox | |
| Comment=Web Browser | |
| GenericName=Web Browser | |
| X-GNOME-FullName=Firefox Web Browser | |
| Exec=env MOZ_ACCELERATED=1 MOZ_WEBRENDER=1 /opt/firefox/firefox %u | |
| Terminal=false | |
| X-MultipleArgs=false | |
| Type=Application | |
| Icon=/opt/firefox/browser/chrome/icons/default/default128.png |
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
| ' Anonymise "Received" header on outgoing emails | |
| Sub OnAcceptMessage(oClient, oMessage) | |
| ' Only delete received headers from own clients/submissions | |
| If Len(oClient.Username) > 0 Then | |
| Dim oHeaders | |
| set oHeaders = oMessage.Headers | |
| Dim i | |
| For i = oHeaders.Count -1 To 0 Step -1 |
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
| # will search either by instance-name or instance-id | |
| # on instance-id it will return the first match, on instance-name it will return all matches | |
| # will iterate through all your ~/.aws/credentials profiles | |
| # | |
| # Usage: aws-find-ec2 NAME-OR-INSTANCE-ID | |
| # Example output: | |
| # ~ aws-find-ec2 i-1234567abcdefghijk | |
| # - checking company-master... | |
| # - checking company-development... | |
| # asg-platform / i-1234567abcdefghijk / 172.0.1.200 |
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
| tpl::render() { | |
| local assign_re='@@([A-Za-z0-9_]+)@@' | |
| while IFS='' read -r line || [[ -n "${line}" ]]; do | |
| while [[ "${line}" =~ $assign_re ]]; do | |
| line="${line/${BASH_REMATCH[0]}/${!BASH_REMATCH[1]}}" | |
| done | |
| echo "${line}" | |
| done < "${1}" | |
| } |
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 | |
| throw_exception() { | |
| echo "Ooops!" | |
| echo 'Stack trace:' 1>&2 | |
| while caller $((n++)) 1>&2; do :; done; | |
| exit 1 | |
| } | |
| set -E |
NewerOlder