Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
| (() => { | |
| const check = () => { | |
| const status = document.querySelector('[data-combined-status]').dataset.combinedStatus | |
| switch(status) { | |
| case 'success': | |
| const btn = document.querySelector('[data-details-container=".js-merge-pr"]') | |
| if (!btn) { | |
| alert('PR already merged.') | |
| break |
Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
| #!/bin/bash | |
| # Based on kizbitz/dockerhub-v2-api-organization.sh at https://gist.github.com/kizbitz/175be06d0fbbb39bc9bfa6c0cb0d4721 | |
| # Example for the Docker Hub V2 API | |
| # Returns all images and tags associated with a Docker Hub organization account. | |
| # Requires 'jq': https://stedolan.github.io/jq/ | |
| # set username, password, and organization | |
| UNAME="" | |
| UPASS="" |
| #!/bin/env bash | |
| timer=$(cat <<EOF | |
| [Unit] | |
| Description=sync clock timer | |
| [Timer] | |
| OnCalendar=hourly | |
| Unit=sync-clock-hourly.service |
| --- | |
| # This has been tested with ansible 1.3 with these commands: | |
| # ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=false" | |
| # ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=true" | |
| # ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts" | |
| # NB: The type of the variable is crucial! | |
| - name: Ansible Conditionals Examples | |
| hosts: $hosts | |
| vars_files: |