load-vault-path-into-files.sh secret/keys/tls/example.com
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
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 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 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 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 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 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/ |
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
FROM centos:latest | |
# 初始化文件夹 | |
RUN mkdir /www /www/server /www/wwwroot /www/env /www/bak /www/server/php74 /www/server/php56 /www/wwwroot/myapp \ | |
&& yum update -y \ | |
&& yum install -y nodejs zip unzip wget zsh vim make cmake gcc gcc-c++ libxml2 libxml2-devel git \ | |
nodejs zip unzip sqlite-devel m4 autoconf nginx tree \ | |
krb5-devel openssl openssl-devel curl curl-devel libjpeg \ | |
libjpeg-devel libpng libpng-devel freetype freetype-devel \ | |
pcre pcre-devel libxslt libxslt-devel bzip2 bzip2-devel \ |
NewerOlder