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
| version: "3.7" | |
| services: | |
| envoy: | |
| build: ./compose/envoy | |
| ports: | |
| - "8080:80" | |
| volumes: | |
| - ./envoy.yaml:/config/envoy.yaml | |
| environment: | |
| - DEBUG_LEVEL=info |
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 | |
| cat << EOF > Dockerfile | |
| FROM kalilinux/kali-linux-docker:latest | |
| ENTRYPOINT ["echo"] | |
| EOF | |
| cat <<< EOF > test.rego |
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 | |
| WORKDIR=$(mktemp -d) | |
| cd $WORKDIR | |
| cat << EOF > $WORKDIR/main.go | |
| package main |
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
| apiVersion: templates.gatekeeper.sh/v1beta1 | |
| kind: ConstraintTemplate | |
| metadata: | |
| name: noprivileged | |
| spec: | |
| crd: | |
| spec: | |
| names: | |
| kind: NoPrivileged | |
| listKind: NoPrivilegedList |
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 | |
| # install helm if executable is not found on host | |
| if ! command -v helm &> /dev/null | |
| then | |
| wget https://get.helm.sh/helm-v3.3.4-linux-amd64.tar.gz | |
| tar -xvf helm-v3.3.4-linux-amd64.tar.gz | |
| chmod +x linux-amd64/helm | |
| mv linux-amd64/helm /usr/local/bin/ |
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
| apiVersion: templates.gatekeeper.sh/v1beta1 | |
| kind: ConstraintTemplate | |
| metadata: | |
| name: k8sallowedrepos | |
| spec: | |
| crd: | |
| spec: | |
| names: | |
| kind: K8sAllowedRepos | |
| validation: |
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: hello-world | |
| on: push | |
| jobs: | |
| my-job: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: my-step | |
| run: echo "Hello World!" |
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: issue-greeter | |
| on: | |
| issues: | |
| types: [opened] | |
| jobs: | |
| my-job: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: my-step | |
| env: |
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
| package main | |
| import ( | |
| "io/ioutil" | |
| "os" | |
| "os/exec" | |
| "fmt" | |
| ) | |
| // DefaultEditor is vim because we're adults ;) |
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
| // License: MIT Open Source | |
| // Copyright (c) Joe Linoff 2016 | |
| // Go code to prompt for password using only standard packages by utilizing syscall.ForkExec() and syscall.Wait4(). | |
| // Correctly resets terminal echo after ^C interrupts. | |
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "os" |