This file contains 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/env python3 | |
# | |
# TERRADIFF | |
# | |
# Small script to convert EOT diffs into single line diffs to make them easier to read | |
# | |
# How to use | |
# terraform plan | terradiff | |
# |
This file contains 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
#compdef kubens kns=kubens | |
_arguments "1: :(- $(kubectl get namespaces -o=jsonpath='{range .items[*].metadata.name}{@}{"\n"}{end}'))" |
This file contains 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
#compdef kubectx kctx=kubectx | |
local KUBECTX="${HOME}/.kube/kubectx" | |
PREV="" | |
if [ -f "$KUBECTX" ]; then | |
# show '-' only if there's a saved previous context | |
local PREV=$(cat "${KUBECTX}") | |
_arguments "1: :(- | |
$(kubectl config get-contexts --output='name'))" | |
else |
This file contains 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
apiVersion: v1 | |
clusters: | |
- cluster: | |
certificate-authority: /home/vainiju/.k8s-certs/kubespray-democluster/ca.pem | |
server: https://192.168.3.210:6443 | |
name: kubespray-democluster | |
- cluster: | |
certificate-authority: /opt/tools/_k8s/kargo/tmp-certs/ca.pem | |
server: https://172.17.8.101:6443 | |
name: kubespray-vagrant |
This file contains 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
execve("/data/data/com.termux/files/usr/bin/proot", ["proot", "ls"], [/* 45 vars */]) = 0 | |
mprotect(0x7f90e86000, 4096, PROT_READ) = 0 | |
set_tid_address(0x7f90e88ff8) = 19456 | |
mmap(NULL, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f90e7f000 | |
mprotect(0x7f90e7f000, 4096, PROT_NONE) = 0 | |
sigaltstack({ss_sp=0x7f90e80000, ss_flags=0, ss_size=16384}, NULL) = 0 | |
prctl(0x53564d41 /* PR_??? */, 0, 0x7f90e80000, 16384, "thread signal stack") = 0 | |
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f90e7e000 | |
mprotect(0x7f90e7e000, 4096, PROT_READ) = 0 | |
mprotect(0x7f90e7e000, 4096, PROT_READ|PROT_WRITE) = 0 |
This file contains 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
execve("/data/data/com.termux/files/usr/bin/termux-chroot", ["termux-chroot"], [/* 45 vars */]) = 0 | |
mprotect(0x7f7a7aa000, 4096, PROT_READ) = 0 | |
set_tid_address(0x7f7a7acff8) = 6366 | |
mmap(NULL, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7a7a3000 | |
mprotect(0x7f7a7a3000, 4096, PROT_NONE) = 0 | |
sigaltstack({ss_sp=0x7f7a7a4000, ss_flags=0, ss_size=16384}, NULL) = 0 | |
prctl(0x53564d41 /* PR_??? */, 0, 0x7f7a7a4000, 16384, "thread signal stack") = 0 | |
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7a7a2000 | |
mprotect(0x7f7a7a2000, 4096, PROT_READ) = 0 | |
mprotect(0x7f7a7a2000, 4096, PROT_READ|PROT_WRITE) = 0 |
This file contains 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
assert 'hello world' =~ /\w{5}(?<=hello) world/ | |
assert 'hello world' ==~ /hello (?=world)\w{5}/ | |
assert 'x9' ==~ /.(?<=x)9/ | |
assert 'x9' ==~ /x(?=9)./ | |
assert 'x9' ==~ /\w(?<=x)9/ | |
assert 'x9' ==~ /x(?=9)\d/ | |
assert 'x9' ==~ /\w\d/ | |
assert 'x9' ==~ /x\d/ | |
assert 'x9' ==~ /x9/ |
This file contains 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
package util.hamcrest; | |
import static org.hamcrest.CoreMatchers.containsString; | |
import static org.hamcrest.core.AllOf.allOf; | |
import static org.hamcrest.core.AnyOf.anyOf; | |
import static org.hamcrest.core.DescribedAs.describedAs; | |
import static org.hamcrest.core.Is.is; | |
import static org.hamcrest.core.IsAnything.anything; | |
import static org.hamcrest.core.IsEqual.equalTo; | |
import static org.hamcrest.core.IsInstanceOf.any; |
This file contains 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
execve("/data/data/com.termux/files/usr/bin/git", ["git", "clone", "http://www.github.com/termux/ter"...], [/* 13 vars */]) = 0 | |
mprotect(0x7fac66e000, 4096, PROT_READ) = 0 | |
set_tid_address(0x7fac670ff8) = 14376 | |
mmap(NULL, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fac667000 | |
mprotect(0x7fac667000, 4096, PROT_NONE) = 0 | |
sigaltstack({ss_sp=0x7fac668000, ss_flags=0, ss_size=16384}, NULL) = 0 | |
prctl(0x53564d41 /* PR_??? */, 0, 0x7fac668000, 16384, "thread signal stack") = 0 | |
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fac666000 | |
mprotect(0x7fac666000, 4096, PROT_READ) = 0 | |
mprotect(0x7fac666000, 4096, PROT_READ|PROT_WRITE) = 0 |
This file contains 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
$ vagrant provision | |
==> client_win2008r2: Running provisioner: puppet... | |
==> client_win2008r2: Running Puppet with environment vagrant... | |
==> client_win2008r2: Info: Loading facts | |
==> client_win2008r2: | |
==> client_win2008r2: Info: Loading facts | |
==> client_win2008r2: Info: Loading facts | |
==> client_win2008r2: Info: Loading facts | |
==> client_win2008r2: Notice: Scope(Class[main]): ignoring file source permissions | |
==> client_win2008r2: Notice: Compiled catalog for win2008r2.groupinfra.com in environment vagrant in 0.47 seconds |