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 | |
# Runs a command with a modified /etc/hosts file. | |
# The modified file is created by adding the contents of the WITH_HOSTS, which | |
# is in the form of "name dest" pairs, separated by newlines. | |
# | |
# Usage: | |
# | |
# WITH_HOSTS=$'some.host localhost' \ | |
# withHosts curl -v https://some.host/ |
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
#@data/values | |
--- | |
inline: | |
- a: not_a | |
b: not_b | |
annotation: | |
- a: not_a | |
b: not_b |
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
## Configure UAA to talk to LDAP | |
- type: replace | |
path: /instance_groups/name=web/jobs/name=uaa/properties/uaa/ldap? | |
value: | |
# description: "Set to true to enable LDAP" | |
# default: false | |
enabled: true | |
# description: | |
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
# Plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
set -g @plugin 'tmux-plugins/tmux-prefix-highlight' | |
set -g @plugin 'tmux-plugins/tmux-copycat' | |
set -g @plugin 'tmux-plugins/tmux-pain-control' | |
set -g @prefix_highlight_show_copy_mode 'on' | |
set -g @prefix_highlight_copy_mode_attr 'fg=black,bg=yellow' |
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 -e | |
set -u | |
set -o pipefail | |
URL='https://github.com/laidbackware/nsx-search/releases/download/v0.0.1/nsxsearch-darwin-0.0' | |
# URL='google.com' | |
# Should behave exaclty like curl and takes all the same args, except: |
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 -e | |
set -u | |
set -o pipefail | |
declare -rA FILTERS=( | |
# Remove some mostly unintersting fields | |
['klean']=' | |
del( .. | .metadata? |
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 -e | |
set -u | |
set -o pipefail | |
readonly RUNNER_URL='https://github.com/actions/runner/releases/download/v2.165.2/actions-runner-linux-x64-2.165.2.tar.gz' | |
main() { | |
local org="${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
steps: | |
- name: gcr.io/cloud-builders/git | |
dir: go/src/k8s.io/ | |
args: | |
- clone | |
- "${_K8S_GIT_URL}" | |
- --branch | |
- "${_K8S_GIT_BRANCH}" | |
waitFor: [ '-' ] | |
id: clone |
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 -e | |
set -u | |
set -o pipefail | |
AWKS=( | |
/usr/bin/original-awk | |
/usr/bin/gawk |
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
hhoerl@pfah:/tmp $ /tmp/test.sh | |
#### | |
#### running fresh container 20772fb5860ae45dbcbb41b72faa9e6c0a7a3f9bdaff1baa31466b226f157cc4 | |
#### | |
## command: apt-get -y --allow-downgrades install kubeadm=1.13.3-00 kubelet=1.13.3-00 kubernetes-cni=0.6.0-00 | |
Reading package lists... |
NewerOlder