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
| # idea from https://github.com/helm/helm/issues/4535#issuecomment-477778391 | |
| {{- define "call-nested" }} | |
| {{- $dot := index . 0 }} | |
| {{- $subchart := index . 1 | splitList "." }} | |
| {{- $template := index . 2 }} | |
| {{- $values := $dot.Values }} | |
| {{- range $subchart }} | |
| {{- $values = index $values . }} | |
| {{- end }} |
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
| #!/bin/sh | |
| set -e | |
| # MY_JOBS=$(mktemp containers.XXXX) | |
| # ALL_RUNS=$(mktemp runs.XXXX) | |
| MY_JOBS=$(mktemp jobs.XXXXXX) | |
| cleanup(){ | |
| [ -n "${DEBUG}" ] && echo ${MY_JOBS} | |
| rm ${MY_JOBS} | |
| } |
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
| # Generated by Powerlevel10k configuration wizard on 2020-09-25 at 12:05 MDT. | |
| # Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 49789. | |
| # Wizard options: powerline, classic, unicode, dark, 24h time, angled separators, | |
| # blurred heads, flat tails, 2 lines, disconnected, left frame, compact, concise, | |
| # transient_prompt, instant_prompt=verbose. | |
| # Type `p10k configure` to generate another config. | |
| # | |
| # Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate | |
| # your own config based on it. | |
| # |
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
| - hosts: puppetmaster | |
| tasks: | |
| - name: stop master puppet | |
| service: name=httpd state=stopped | |
| tags: | |
| - master | |
| - service | |
| - stop | |
| - name: kill remaining httpd process |
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
| define compose_setup( | |
| $compose_source_repo, | |
| $compose_source_revision, | |
| $compose_deploy_dir, | |
| $compose_ensure='present', | |
| $compose_file='docker-compose.yml', | |
| $compose_identity=undef, | |
| $compose_stage_dir=undef, | |
| $compose_source_repo_force=false, | |
| $compose_ensure='latest', |
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
| Jan 10 16:25:39 2018 (92) Connection to HyperKitty failed: ("Connection broken: ConnectionResetError(104, 'Connection reset by peer')", ConnectionResetError(104, 'Connection reset by peer')) | |
| Jan 10 16:25:39 2018 (92) Exception in the HyperKitty archiver: ("Connection broken: ConnectionResetError(104, 'Connection reset by peer')", ConnectionResetError(104, 'Connection reset by peer')) | |
| Jan 10 16:25:39 2018 (92) Traceback (most recent call last): | |
| File "/usr/local/lib/python3.6/site-packages/urllib3/response.py", line 302, in _error_catcher | |
| yield | |
| File "/usr/local/lib/python3.6/site-packages/urllib3/response.py", line 384, in read | |
| data = self._fp.read(amt) | |
| File "/usr/local/lib/python3.6/http/client.py", line 449, in read | |
| n = self.readinto(b) | |
| File "/usr/local/lib/python3.6/http/client.py", line 493, in readinto |
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
| # docker-compose -f compose-file config: | |
| mailman-core: | |
| container_name: mailman-core | |
| depends_on: | |
| - database | |
| environment: | |
| DATABASE_CLASS: mailman.database.postgresql.PostgreSQLDatabase | |
| DATABASE_TYPE: postgres | |
| DATABASE_URL: postgres://mailman:mailmanpass@database/mailmandb | |
| DB_NAME: mailmandb |
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
| # hiera --hash networking.network environment=net_config clientcert='my.host.com' | |
| nil | |
| # hiera --hash networking environment=net_config clientcert='my.host.com' | |
| {"mac_interfaces"=> | |
| {"20:60:90:00:C0:40"=> | |
| {"ipaddress"=>"10.3.1.2", | |
| "enable"=>true, | |
| "ensure"=>"present", | |
| "bootproto"=>"static", | |
| "netmask"=>"255.255.255.0"}}, |
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
| from kafka import KafkaConsumer | |
| from kafka.structs import TopicPartition | |
| import argparse | |
| import os | |
| KAFKA_SERVER='kafka.server.com' | |
| KAFKA_PORT=9092 | |
| SVN_TOPIC='svnevent' |
NewerOlder