load-vault-path-into-files.sh secret/keys/tls/example.com
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
| You are an expert software architect and codebase analyst. | |
| Analyze this repository and produce a complete solution design and architecture documentation. | |
| Your goals: | |
| 1. Discover the system architecture | |
| - Inspect the full repository structure. | |
| - Identify all applications, services, packages, modules, libraries, workers, jobs, APIs, frontends, backends, CLIs, scripts, and shared packages. | |
| - Explain the role of each major component. |
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: | |
| db: | |
| image: mcr.microsoft.com/mssql/server:2017-latest | |
| environment: | |
| ACCEPT_EULA: "Y" | |
| SA_PASSWORD: ${DB_PASSWORD} | |
| DB_NAME: ${DB_NAME} | |
| env_file: |
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
| oc -n stackrox delete securedcluster --all | |
| oc -n stackrox delete pvc --all | |
| oc delete ns stackrox | |
| oc get clusterrole,clusterrolebinding,role,rolebinding -o name | grep stackrox | xargs oc delete --wait | |
| oc delete ValidatingWebhookConfiguration stackrox | |
| oc delete scc -l "app.kubernetes.io/name=stackrox" | |
| oc project rhacs-operator | |
| oc delete sub rhacs-operator |
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
| src=$1 | |
| dest=$2 | |
| cd ${src} | |
| for i in * | |
| do | |
| ( | |
| if [ -d "$i" ];then | |
| tar czvf "${dest}/$i.tar.gz" -C "$i" . | |
| else | |
| echo skiping $i as it is not folder |
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
| sudo apt-get install poppler-utils -y |
-
Ctrl+B, then%=> split window vertifcally -
Ctrl+B, then"=> split window horiztionally -
Ctrl+B, theno=> Move cursor among panes
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
| # Credit: https://stackoverflow.com/a/61685899/747579 | |
| SVCRANGE=$(echo '{"apiVersion":"v1","kind":"Service","metadata":{"name":"tst"},"spec":{"clusterIP":"1.1.1.1","ports":[{"port":443}]}}' | kubectl apply -f - 2>&1 | sed 's/.*valid IPs is //') | |
| echo $SVCRANGE |
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 nginx:1.19-alpine-perl | |
| ENV NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx | |
| COPY my-nginx.conf.template /etc/nginx/templates/ |
NewerOlder