Add initial content
This commit is contained in:
16 files changed
+2604
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
#Auto detect text files and perform LF normalization
|
||||||
|
* text=auto
|
||||||
|
*.sh text eol=lf
|
||||||
|
*.png binary
|
||||||
|
*.jpg binary
|
||||||
|
*.doc diff=word
|
||||||
|
*.docx diff=word
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
.idea/
|
||||||
|
*.iml
|
||||||
Executable
+364
@@ -0,0 +1,364 @@
|
|||||||
|
# ============================================================================
|
||||||
|
# Browser setup
|
||||||
|
# ============================================================================
|
||||||
|
# Try to find browser executable
|
||||||
|
checkBrowserLocation() {
|
||||||
|
# Define defaults
|
||||||
|
# Known chrome locations
|
||||||
|
WEB_BROWSER_LOCATION_A=/mnt/c/Program\ Files\ \(x86\)/Google/Chrome/Application/chrome.exe
|
||||||
|
WEB_BROWSER_LOCATION_B=/mnt/c/Program\ Files/Google/Chrome/Application/chrome.exe
|
||||||
|
WEB_BROWSER_LOCATION_C=/mnt/c/Users/${USER}/AppData/Local/Google/Chrome/Application/chrome.exe
|
||||||
|
WEB_BROWSER_LOCATION_D=/c/Program\ Files\ \(x86\)/Google/Chrome/Application/chrome.exe
|
||||||
|
WEB_BROWSER_LOCATION_E=/c/Program\ Files/Google/Chrome/Application/chrome.exe
|
||||||
|
WEB_BROWSER_LOCATION_F=/c/Users/${USER}/AppData/Local/Google/Chrome/Application/chrome.exe
|
||||||
|
# Known edge locations
|
||||||
|
WEB_BROWSER_LOCATION_G=/c/Program\ Files\ \(x86\)/Microsoft/Edge/Application/msedge.exe
|
||||||
|
WEB_BROWSER_LOCATION_H=/mnt/c/Program\ Files\ \(x86\)/Microsoft/Edge/Application/msedge.exe
|
||||||
|
|
||||||
|
if [[ -e $WEB_BROWSER_LOCATION_A ]] ; then
|
||||||
|
WEB_BROWSER=${WEB_BROWSER_LOCATION_A}
|
||||||
|
elif [[ -e $WEB_BROWSER_LOCATION_B ]] ; then
|
||||||
|
WEB_BROWSER=${WEB_BROWSER_LOCATION_B}
|
||||||
|
elif [[ -e $WEB_BROWSER_LOCATION_C ]] ; then
|
||||||
|
WEB_BROWSER=${WEB_BROWSER_LOCATION_C}
|
||||||
|
elif [[ -e $WEB_BROWSER_LOCATION_D ]] ; then
|
||||||
|
WEB_BROWSER=${WEB_BROWSER_LOCATION_D}
|
||||||
|
elif [[ -e $WEB_BROWSER_LOCATION_E ]] ; then
|
||||||
|
WEB_BROWSER=${WEB_BROWSER_LOCATION_E}
|
||||||
|
elif [[ -e $WEB_BROWSER_LOCATION_F ]] ; then
|
||||||
|
WEB_BROWSER=${WEB_BROWSER_LOCATION_F}
|
||||||
|
elif [[ -e $WEB_BROWSER_LOCATION_G ]] ; then
|
||||||
|
WEB_BROWSER=${WEB_BROWSER_LOCATION_G}
|
||||||
|
elif [[ -e $WEB_BROWSER_LOCATION_H ]] ; then
|
||||||
|
WEB_BROWSER=${WEB_BROWSER_LOCATION_H}
|
||||||
|
elif [[ open ]] ; then
|
||||||
|
WEB_BROWSER=open
|
||||||
|
else
|
||||||
|
warning "Unable to find Chrome or Edge executable! Redirect for OpenShift login not possible."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
checkBrowserLocation
|
||||||
|
|
||||||
|
# Speed up MC startup
|
||||||
|
alias mc='mc --nosubshell'
|
||||||
|
alias mcedit='mcedit --nosubshell'
|
||||||
|
|
||||||
|
# Alias for activating venv in folder
|
||||||
|
alias activate='source .venv/bin/activate'
|
||||||
|
alias pipx='python /etc/pipx/pipx.pyz'
|
||||||
|
alias pip='pip3'
|
||||||
|
|
||||||
|
#alias docker-compose='docker-compose.exe'
|
||||||
|
alias kihub='cd /Users/u241100/workspaces/KI_KIHUB'
|
||||||
|
alias priv='cd /Users/u241100/workspaces/private'
|
||||||
|
#alias oc='/mnt/c/devsbb/eaio-ng/oc/oc.exe'
|
||||||
|
#alias oc='/Users/u241100/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit/oc'
|
||||||
|
#alias oc='~/.local/bin/oc'
|
||||||
|
|
||||||
|
# OC AWS aliases
|
||||||
|
alias ocLoginAWS-Test1='oc login --token=${OPENSHIFT_TOKEN_AWS_TEST} --server=https://api.aws01t.sbb-aws-test.net:6443 || ${WEB_BROWSER} https://oauth-openshift.apps.aws01t.sbb-aws-test.net/oauth/token/request'
|
||||||
|
alias ocLoginAWS-Test2='oc login --token=${OPENSHIFT_TOKEN_AWS_TEST} --server=https://api.aws02t.sbb-aws-test.net:6443 || ${WEB_BROWSER} https://oauth-openshift.apps.aws02t.sbb-aws-test.net/oauth/token/request'
|
||||||
|
alias ocLoginAWS-Lisa='oc login --token=${OPENSHIFT_TOKEN_AWS_PROD} --server=https://api.lisa.sbb-aws.net:6443 || ${WEB_BROWSER} https://oauth-openshift.apps.lisa.sbb-aws.net/oauth/token/request'
|
||||||
|
alias ocLoginAWS-Maggie='oc login --token=${OPENSHIFT_TOKEN_AWS_PROD} --server=https://api.maggie.sbb-aws.net:6443 || ${WEB_BROWSER} https://oauth-openshift.apps.maggie.sbb-aws.net/oauth/token/request'
|
||||||
|
alias ocLoginAWS-WZU='oc login --token=${OPENSHIFT_TOKEN_WZU} --server=https://api.wzu01t.ocp-test.sbb-aws.net:6443 || ${WEB_BROWSER} https://oauth-openshift.apps.wzu01t.ocp-test.sbb-aws.net/oauth/token/request'
|
||||||
|
alias ocAWS-Dev='oc config use-context kihub-u241100-dev/api-aws01t-sbb-aws-test-net:6443/u241100 ; oc project kihub-dev-u241100 || ${WEB_BROWSER} https://oauth-openshift.apps.aws01t.sbb-aws-test.net/oauth/token/request'
|
||||||
|
alias ocAWS-RT='oc config use-context kihub-rt/api-aws01t-sbb-aws-test-net:6443/u241100 ; oc project kihub-rt || ${WEB_BROWSER} https://oauth-openshift.apps.aws01t.sbb-aws-test.net/oauth/token/request'
|
||||||
|
alias ocAWS-Test='oc config use-context kihub-test/api-aws01t-sbb-aws-test-net:6443/u241100 ; oc project kihub-test || ${WEB_BROWSER} https://oauth-openshift.apps.aws01t.sbb-aws-test.net/oauth/token/request'
|
||||||
|
alias ocAWS-Int='oc config use-context kihub-int/api-lisa-sbb-aws-net:6443/u241100 ; oc project kihub-int || ${WEB_BROWSER} https://oauth-openshift.apps.lisa.sbb-aws.net/oauth/token/request'
|
||||||
|
alias ocAWS-Prod='oc config use-context kihub-prod/api-lisa-sbb-aws-net:6443/u241100 ; oc project kihub-prod || ${WEB_BROWSER} https://oauth-openshift.apps.lisa.sbb-aws.net/oauth/token/request'
|
||||||
|
|
||||||
|
# OC SC aliases
|
||||||
|
#alias ocLoginSC01t='oc login --token=${OPENSHIFT_TOKEN_SC01} --server=https://api.sc01t.otc-test.sbb.ch:6443 || ${WEB_BROWSER} https://oauth-openshift.apps.sc01t.otc-test.sbb.ch/oauth/token/request'
|
||||||
|
alias ocLoginSC02t='oc login --token=${OPENSHIFT_TOKEN_SC02} --server=https://api.sc02t.otc-test.sbb.ch:6443 || ${WEB_BROWSER} https://oauth-openshift.apps.sc02t.otc-test.sbb.ch/oauth/token/request'
|
||||||
|
alias ocLoginSCSputnix='oc login --token=${OPENSHIFT_TOKEN_SCSputnix} --server=https://api.sputnix.otc.sbb.ch:6443 || ${WEB_BROWSER} https://oauth-openshift.apps.sputnix.otc.sbb.ch/oauth/token/request'
|
||||||
|
#alias ocLoginSCMiraculix='oc login --token=${OPENSHIFT_TOKEN_SCMiraculix} --server=https://api.miraculix.otc.sbb.ch:6443 || ${WEB_BROWSER} https://oauth-openshift.apps.miraculix.otc.sbb.ch/oauth/token/request'
|
||||||
|
alias ocSC-Dev='oc config use-context kihub-u241100-dev/api-sc02t-otc-test-sbb-ch:6443/u241100 ; oc project kihub-dev-u241100 || ${WEB_BROWSER} https://oauth-openshift.apps.sc02t.otc-test.sbb.ch/oauth/token/request'
|
||||||
|
alias ocSC-RT='oc config use-context kihub-rt/api-sc02t-otc-test-sbb-ch:6443/u241100 ; oc project kihub-rt || ${WEB_BROWSER} https://oauth-openshift.apps.sc02t.otc-test.sbb.ch/oauth/token/request'
|
||||||
|
alias ocSC-Test='oc config use-context kihub-test/api-sc02t-otc-test-sbb-ch:6443/u241100 ; oc project kihub-test || ${WEB_BROWSER} https://oauth-openshift.apps.sc02t.otc-test.sbb.ch/oauth/token/request'
|
||||||
|
alias ocSC-Int='oc config use-context kihub-int/api-sputnix-otc-sbb-ch:6443/u241100 ; oc project kihub-int || ${WEB_BROWSER} https://oauth-openshift.apps.sputnix.otc.sbb.ch/oauth/token/request'
|
||||||
|
alias ocSC-Prod='oc config use-context kihub-prod/api-sputnix-otc-sbb-ch:6443/u241100 ; oc project kihub-prod || ${WEB_BROWSER} https://oauth-openshift.apps.sputnix.otc.sbb.ch/oauth/token/request'
|
||||||
|
|
||||||
|
alias ocLoginCUS-nonProd='oc login --token=${OPENSHIFT_TOKEN_SCSputnix} --server=https://api.cus01t.sbb-aws-test.net:6443 || ${WEB_BROWSER} https://oauth-openshift.apps.cus01t.sbb-aws-test.net/oauth/token/request'
|
||||||
|
|
||||||
|
# SC02t
|
||||||
|
#alias ocArgoCD='oc config use-context kihub-argocd/api-sc02t-otc-test-sbb-ch:6443/u241100'
|
||||||
|
#alias ocKihubCI='oc config use-context kihub-ci/api-sc02t-otc-test-sbb-ch:6443/u241100'
|
||||||
|
#alias ocKihubDev='oc config use-context kihub-u241100-dev/api-sc02t-otc-test-sbb-ch:6443/u241100'
|
||||||
|
#alias ocKihubRT='oc config use-context kihub-rt/api-sc02t-otc-test-sbb-ch:6443/u241100'
|
||||||
|
#alias ocKihubTest='oc config use-context kihub-test/api-sc02t-otc-test-sbb-ch:6443/u241100'
|
||||||
|
|
||||||
|
# Sputnix
|
||||||
|
#alias ocArgoCDProd='oc config use-context kihub-argocd/api-sputnix-otc-sbb-ch:6443/u241100'
|
||||||
|
#alias ocKihubInt='oc config use-context kihub-int/api-sputnix-otc-sbb-ch:6443/u241100'
|
||||||
|
#alias ocKihubProd='oc config use-context kihub-prod/api-sputnix-otc-sbb-ch:6443/u241100'
|
||||||
|
|
||||||
|
# AWS01t
|
||||||
|
#alias ocKihubTekton='oc config use-context kihub-tekton/api-aws01t-sbb-aws-test-net:6443/u241100'
|
||||||
|
#alias ocKihubTestAWS='oc config use-context kihub-test/api-aws01t-sbb-aws-test-net:6443/u241100'
|
||||||
|
|
||||||
|
# Lisa
|
||||||
|
#alias ocKihubIntAWS='oc config use-context kihub-int/api-lisa-sbb-aws-net:6443/u241100'
|
||||||
|
#alias ocKihubProdAWS='oc config use-context kihub-prod/api-lisa-sbb-aws-net:6443/u241100'
|
||||||
|
|
||||||
|
# Some helpers
|
||||||
|
alias ocHelper='oc rsh $(oc get pods | grep openshift-helper | cut -d " " -f 1) bash'
|
||||||
|
alias ocJavaPod='oc rsh $(oc get pods | grep java | cut -d " " -f 1 | tail -n 1) bash'
|
||||||
|
alias ocP2='oc rsh $(oc get pods | grep p2-updateserver | cut -d " " -f 1 | tail -n 1) bash'
|
||||||
|
alias ocPods='oc get pods'
|
||||||
|
alias ocFw2DB='oc port-forward $(oc get pods -o custom-columns=POD:.metadata.name --no-headers -n kihub-database-dev | grep kihub-database-$USER) 1521:1521'
|
||||||
|
alias dc='docker-compose'
|
||||||
|
#alias setTI8M='cd ~/.m2 && rm -f settings.xml settings-security.xml && cp settings.xml.ti8m settings.xml && cp settings-security.xml.ti8m settings-security.xml && cd -'
|
||||||
|
#alias setSBB='cd ~/.m2 && rm -f settings.xml settings-security.xml && cp settings.xml.sbb settings.xml && cp settings-security.xml.sbb settings-security.xml && cd -'
|
||||||
|
|
||||||
|
#alias j8='. ~/j8o.sh'
|
||||||
|
#alias j11='. ~/j11o.sh'
|
||||||
|
#alias j17='. ~/j17o.sh'
|
||||||
|
#alias j21='. ~/j21o.sh'
|
||||||
|
#alias m38='. ~/mvn3.8.sh'
|
||||||
|
#alias m39='. ~/mvn3.9.sh'
|
||||||
|
alias hist='history | less'
|
||||||
|
alias awx-cli='awx-cli --conf.host https://deploy.sbb.ch --conf.username u241100 --conf.token ${ANSIBLE_TOWER_PASS} --conf.insecure'
|
||||||
|
alias bfg='java -jar ~/Downloads/bfg-1.14.0.jar'
|
||||||
|
alias gpp='git pull --prune'
|
||||||
|
alias gs='git status'
|
||||||
|
|
||||||
|
alias gw='./gradlew'
|
||||||
|
|
||||||
|
#alias vault=/mnt/c/Users/u241100/AppData/Local/Microsoft/WindowsApps/Vault.exe
|
||||||
|
|
||||||
|
#alias kubectl='minikube kubectl --'
|
||||||
|
#alias mk='minikube'
|
||||||
|
#alias mkd='minikube dashboard &'
|
||||||
|
|
||||||
|
alias dive='docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock docker.bin.sbb.ch/wagoodman/dive:latest $*'
|
||||||
|
|
||||||
|
alias installHooks='git archive \
|
||||||
|
--remote=ssh://git@codessh.sbb.ch:7999/ki_kihub/pre-commit.git \
|
||||||
|
master \
|
||||||
|
install.sh | tar --to-stdout -xf - | bash'
|
||||||
|
|
||||||
|
alias docker-compose='docker compose'
|
||||||
|
alias lg='lazygit'
|
||||||
|
alias jk='j KI_KIHUB'
|
||||||
|
|
||||||
|
envDevLocation=/Users/u241100/workspaces/KI_KIHUB/cus-env-dev
|
||||||
|
alias dev-deploy='cd ${envDevLocation} && ./deploy2Dev.sh -d'
|
||||||
|
alias dev-deploy-update='cd ${envDevLocation} && git pull --prune && ./deploy2Dev.sh -df'
|
||||||
|
alias dev-deploy-force='cd ${envDevLocation} && ./deploy2Dev.sh -df'
|
||||||
|
alias dev-undeploy='cd ${envDevLocation} && ./deploy2Dev.sh -r'
|
||||||
|
alias dev-tools-deploy='cd ${envDevLocation} && ./deploy2Dev.sh -dt'
|
||||||
|
alias dev-tools-deploy-update='cd ${envDevLocation} && git pull --prune && ./deploy2Dev.sh -dft'
|
||||||
|
alias dev-tools-deploy-force='cd ${envDevLocation} && ./deploy2Dev.sh -dft'
|
||||||
|
alias dev-tools-undeploy='cd ${envDevLocation} && ./deploy2Dev.sh -rt'
|
||||||
|
|
||||||
|
# Sprintometer
|
||||||
|
alias sprintometerChart='cd /Users/u241100/workspaces/private/architeq/architeq/sprintometer-chart && helm package . && helm push sprintometer-chart-*.tgz oci://harbor.int.architeq.cloud/charts && rm -f sprintometer-chart-*.tgz && cd - >/dev/null'
|
||||||
|
alias sprintometerUmbrella='cd /Users/u241100/workspaces/private/architeq/architeq/sprintometer-umbrella-dev && helm package . && helm push sprintometer-umbrella-dev-*.tgz oci://harbor.int.architeq.cloud/charts && rm -f sprintometer-umbrella-dev-*.tgz && cd - >/dev/null'
|
||||||
|
|
||||||
|
# Helm deploy
|
||||||
|
docker_e2e_2015_dbris() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-e2e-2015-dbris
|
||||||
|
helm install $(pwd | sed "s#.*/##") -f chart/values.yaml -f chart/values-docker.yaml chart
|
||||||
|
}
|
||||||
|
docker_e2e_2017() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-e2e-2017
|
||||||
|
helm install $(pwd | sed "s#.*/##") -f chart/values.yaml -f chart/values-docker.yaml chart
|
||||||
|
}
|
||||||
|
docker_e2e_siri_kihub() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-e2e-siri-kihub
|
||||||
|
helm install $(pwd | sed "s#.*/##") -f chart/values.yaml -f chart/values-docker.yaml chart
|
||||||
|
}
|
||||||
|
docker_kihub() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-kihub
|
||||||
|
helm install $(pwd | sed "s#.*/##") -f chart/values.yaml -f chart/values-docker.yaml chart
|
||||||
|
}
|
||||||
|
docker_siri() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-siri
|
||||||
|
helm install $(pwd | sed "s#.*/##") -f chart/values.yaml -f chart/values-docker.yaml chart
|
||||||
|
}
|
||||||
|
docker_dbris() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-vdv-v2015a-aus-inbound-dbris
|
||||||
|
helm install $(pwd | sed "s#.*/##") -f chart/values.yaml -f chart/values-docker.yaml chart
|
||||||
|
}
|
||||||
|
docker_ans_in() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-vdv-xsd2017-ans-inbound
|
||||||
|
helm install $(pwd | sed "s#.*/##") -f chart/values.yaml -f chart/values-docker.yaml chart
|
||||||
|
}
|
||||||
|
docker_ans_out() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-vdv-xsd2017-ans-outbound
|
||||||
|
helm install $(pwd | sed "s#.*/##") -f chart/values.yaml -f chart/values-docker.yaml chart
|
||||||
|
}
|
||||||
|
docker_aus_in() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-vdv-xsd2017-aus-inbound
|
||||||
|
helm install $(pwd | sed "s#.*/##") -f chart/values.yaml -f chart/values-docker.yaml chart
|
||||||
|
}
|
||||||
|
docker_aus_out() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-vdv-xsd2017-aus-outbound
|
||||||
|
helm install $(pwd | sed "s#.*/##") -f chart/values.yaml -f chart/values-docker.yaml chart
|
||||||
|
}
|
||||||
|
docker_dfi_in() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-vdv-xsd2017-dfi-inbound
|
||||||
|
helm install $(pwd | sed "s#.*/##") -f chart/values.yaml -f chart/values-docker.yaml chart
|
||||||
|
}
|
||||||
|
docker_dfi_out() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-vdv-xsd2017-dfi-outbound
|
||||||
|
helm install $(pwd | sed "s#.*/##") -f chart/values.yaml -f chart/values-docker.yaml chart
|
||||||
|
}
|
||||||
|
docker_refaus_in() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-vdv-xsd2017-refaus-inbound
|
||||||
|
helm install $(pwd | sed "s#.*/##") -f chart/values.yaml -f chart/values-docker.yaml chart
|
||||||
|
}
|
||||||
|
docker_refaus_out() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-vdv-xsd2017-refaus-outbound
|
||||||
|
helm install $(pwd | sed "s#.*/##") -f chart/values.yaml -f chart/values-docker.yaml chart
|
||||||
|
}
|
||||||
|
docker_webservice() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-webservice
|
||||||
|
helm install $(pwd | sed "s#.*/##") -f chart/values.yaml -f chart/values-docker.yaml chart
|
||||||
|
}
|
||||||
|
|
||||||
|
# Helm undeploy
|
||||||
|
rm_docker_e2e_2015_dbris() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-e2e-2015-dbris
|
||||||
|
helm uninstall $(pwd | sed "s#.*/##")
|
||||||
|
}
|
||||||
|
rm_docker_e2e_2017() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-e2e-2017
|
||||||
|
helm uninstall $(pwd | sed "s#.*/##")
|
||||||
|
}
|
||||||
|
rm_docker_e2e_siri_kihub() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-e2e-siri-kihub
|
||||||
|
helm uninstall $(pwd | sed "s#.*/##")
|
||||||
|
}
|
||||||
|
rm_docker_kihub() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-kihub
|
||||||
|
helm uninstall $(pwd | sed "s#.*/##")
|
||||||
|
}
|
||||||
|
rm_docker_siri() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-siri
|
||||||
|
helm uninstall $(pwd | sed "s#.*/##")
|
||||||
|
}
|
||||||
|
rm_docker_dbris() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-vdv-v2015a-aus-inbound-dbris
|
||||||
|
helm uninstall $(pwd | sed "s#.*/##")
|
||||||
|
}
|
||||||
|
rm_docker_ans_in() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-vdv-xsd2017-ans-inbound
|
||||||
|
helm uninstall $(pwd | sed "s#.*/##")
|
||||||
|
}
|
||||||
|
rm_docker_ans_out() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-vdv-xsd2017-ans-outbound
|
||||||
|
helm uninstall $(pwd | sed "s#.*/##")
|
||||||
|
}
|
||||||
|
rm_docker_aus_in() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-vdv-xsd2017-aus-inbound
|
||||||
|
helm uninstall $(pwd | sed "s#.*/##")
|
||||||
|
}
|
||||||
|
rm_docker_aus_out() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-vdv-xsd2017-aus-outbound
|
||||||
|
helm uninstall $(pwd | sed "s#.*/##")
|
||||||
|
}
|
||||||
|
rm_docker_dfi_in() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-vdv-xsd2017-dfi-inbound
|
||||||
|
helm uninstall $(pwd | sed "s#.*/##")
|
||||||
|
}
|
||||||
|
rm_docker_dfi_out() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-vdv-xsd2017-dfi-outbound
|
||||||
|
helm uninstall $(pwd | sed "s#.*/##")
|
||||||
|
}
|
||||||
|
rm_docker_refaus_in() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-vdv-xsd2017-refaus-inbound
|
||||||
|
helm uninstall $(pwd | sed "s#.*/##")
|
||||||
|
}
|
||||||
|
rm_docker_refaus_out() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-vdv-xsd2017-refaus-outbound
|
||||||
|
helm uninstall $(pwd | sed "s#.*/##")
|
||||||
|
}
|
||||||
|
rm_docker_webservice() {
|
||||||
|
cd /mnt/c/devsbb/workspaces/KI_KIHUB/kihub-test-app/kihub-test-wrapper-webservice
|
||||||
|
helm uninstall $(pwd | sed "s#.*/##")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
rm_RT_jobs() {
|
||||||
|
rm_docker_e2e_2015_dbris
|
||||||
|
rm_docker_e2e_2017
|
||||||
|
rm_docker_e2e_siri_kihub
|
||||||
|
rm_docker_kihub
|
||||||
|
rm_docker_siri
|
||||||
|
rm_docker_dbris
|
||||||
|
rm_docker_ans_in
|
||||||
|
rm_docker_ans_out
|
||||||
|
rm_docker_aus_in
|
||||||
|
rm_docker_aus_out
|
||||||
|
rm_docker_dfi_in
|
||||||
|
rm_docker_dfi_out
|
||||||
|
rm_docker_refaus_in
|
||||||
|
rm_docker_refaus_out
|
||||||
|
rm_docker_webservice
|
||||||
|
}
|
||||||
|
|
||||||
|
# Tekton-Lint aka 'tl'
|
||||||
|
tl() {
|
||||||
|
if [ $# -lt 1 ] ; then
|
||||||
|
echo "You need to pass path to chart"
|
||||||
|
else
|
||||||
|
docker run \
|
||||||
|
-it \
|
||||||
|
--rm \
|
||||||
|
-v $(pwd):/workspace --workdir=/workspace \
|
||||||
|
esta.docker.bin.sbb.ch/esta/esta-tekton-pipeline-helm-builderimage:latest \
|
||||||
|
python3 /opt/scripts/validate.py --verbose --no-kube-linter --no-kubeconform $1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
yaml_lint() {
|
||||||
|
if [ $# -lt 2 ] ; then
|
||||||
|
echo "You need to pass configuration file and helm template"
|
||||||
|
else
|
||||||
|
docker run \
|
||||||
|
--rm \
|
||||||
|
--name yaml-linter \
|
||||||
|
-it \
|
||||||
|
-v $(pwd)/$1:/.yamllint.yaml \
|
||||||
|
-v $(pwd)/$2:/dirToCheck \
|
||||||
|
remote.docker.bin.sbb.ch/cytopia/yamllint:latest \
|
||||||
|
-c /.yamllint.yaml /dirToCheck
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
kube_lint() {
|
||||||
|
if [ $# -lt 2 ] ; then
|
||||||
|
echo "You need to pass configuration file and helm template"
|
||||||
|
else
|
||||||
|
docker run \
|
||||||
|
--rm \
|
||||||
|
--name kube-linter \
|
||||||
|
-it \
|
||||||
|
-v $(pwd)/$1:/.kube-linter.yaml \
|
||||||
|
-v $(pwd)/$2:/.helm-template-output.yaml \
|
||||||
|
remote.docker.bin.sbb.ch/stackrox/kube-linter:v0.6.8-alpine \
|
||||||
|
lint --config .kube-linter.yaml .helm-template-output.yaml
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
kube_score() {
|
||||||
|
if [ $# -lt 1 ] ; then
|
||||||
|
echo "You need to pass helm template"
|
||||||
|
else
|
||||||
|
docker run \
|
||||||
|
--rm \
|
||||||
|
--name kube-linter \
|
||||||
|
-it \
|
||||||
|
-v $(pwd)/$1:/.helm-template-output.yaml \
|
||||||
|
remote.docker.bin.sbb.ch/zegl/kube-score:v1.18.0 \
|
||||||
|
score \
|
||||||
|
--ignore-test pod-networkpolicy,container-security-context,container-image-pull-policy,container-security-context-user-group-id,container-security-context-privileged,container-security-context-readonlyrootfilesystem,container-ephemeral-storage-request-and-limit,deployment-has-host-podantiaffinity,statefulset-has-host-podantiaffinity \
|
||||||
|
--output-format ci \
|
||||||
|
/.helm-template-output.yaml
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
export cusTools='kihub-aohaltdurchfahrtwatch kihub-biniwatch kihub-cusmdm-apex kihub-fahrzeugziel kihub-logtool2 kihub-sektorfilter kihub-snowflake kihub-sollgleisfilter kihub-status kihub-vmbeziehungstatus kihub-vmname kihub-zugliste'
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
[user]
|
||||||
|
name = Yves Schumann
|
||||||
|
email = yves.schumann@sbb.ch
|
||||||
|
# signingkey = 6B0658EA8CDFEF6C
|
||||||
|
signingkey = E20B1E0BF728083B5E35D6F13DB2ADAF9211AE9E
|
||||||
|
[push]
|
||||||
|
default = simple
|
||||||
|
[core]
|
||||||
|
trustctime = false
|
||||||
|
editor = vim
|
||||||
|
filemode = false
|
||||||
|
excludesfile = ~/.gitignore_global
|
||||||
|
autocrlf = input
|
||||||
|
longpaths = true
|
||||||
|
bigfilethreshold = 20m
|
||||||
|
[color]
|
||||||
|
ui = true
|
||||||
|
[credential]
|
||||||
|
helper = store
|
||||||
|
[merge]
|
||||||
|
tool = vimdiff
|
||||||
|
[mergetool]
|
||||||
|
keeptemporaries = false
|
||||||
|
keepbackups = false
|
||||||
|
prompt = false
|
||||||
|
trustexitcode = false
|
||||||
|
[alias]
|
||||||
|
last = log -1 --stat
|
||||||
|
cp = cherry-pickNun
|
||||||
|
co = checkout
|
||||||
|
cl = clone
|
||||||
|
ci = commit
|
||||||
|
st = status -sb
|
||||||
|
br = branch
|
||||||
|
unstage = reset HEAD --
|
||||||
|
dc = diff --cached
|
||||||
|
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %Cblue<%an>%Creset' --abbrev-commit --date=relative --all
|
||||||
|
#[http]
|
||||||
|
# proxy = http://u241100:DYDczNCasWYEinAaXrirdnRfvFFAGvHZ@dev-proxy.wzu.io:3128/
|
||||||
|
#[https]
|
||||||
|
# proxy = http://u241100:DYDczNCasWYEinAaXrirdnRfvFFAGvHZ@dev-proxy.wzu.io:3128/
|
||||||
|
#[http "http://code.sbb.ch/"]
|
||||||
|
# proxy = ""
|
||||||
|
#[https "https://code.sbb.ch/"]
|
||||||
|
# proxy = ""
|
||||||
|
[pull]
|
||||||
|
rebase = true
|
||||||
|
[includeIf "gitdir:~/workspaces/private/"]
|
||||||
|
path = ~/.gitconfig-private
|
||||||
|
[includeIf "gitdir:~/workspaces/private/bc/"]
|
||||||
|
path = ~/.gitconfig-bc
|
||||||
|
[includeIf "gitdir:~/workspaces/private/ti8m/"]
|
||||||
|
path = ~/.gitconfig-ti8m
|
||||||
|
[includeIf "gitdir:~/workspaces/private/nettworks/"]
|
||||||
|
path = ~/.gitconfig-nettworks
|
||||||
|
[includeIf "gitdir:~/workspaces/private/architeq/"]
|
||||||
|
path = ~/.gitconfig-architeq
|
||||||
|
[gpg]
|
||||||
|
program = gpg
|
||||||
|
format = openpgp
|
||||||
|
[commit]
|
||||||
|
gpgSign = true
|
||||||
|
[credential "https://code.sbb.ch"]
|
||||||
|
provider = bitbucket
|
||||||
|
[credential "http://dev-proxy.wzu.io:3128"]
|
||||||
|
provider = generic
|
||||||
|
[include]
|
||||||
|
path = ~/.gitconfig-safe-dirs
|
||||||
|
[tag]
|
||||||
|
forceSignAnnotated = false
|
||||||
|
[gpg "ssh"]
|
||||||
|
program = ssh-keygen
|
||||||
|
allowedSignersFile =
|
||||||
|
[init]
|
||||||
|
defaultBranch = main
|
||||||
|
[merge "ours"]
|
||||||
|
driver = true
|
||||||
Executable
+8
@@ -0,0 +1,8 @@
|
|||||||
|
[user]
|
||||||
|
name = Yves Schumann
|
||||||
|
email = ys@architeq.ch
|
||||||
|
signingkey = 1B2B7D8370BD5837
|
||||||
|
[core]
|
||||||
|
gitconfig = architeq
|
||||||
|
[commit]
|
||||||
|
gpgsign = true
|
||||||
Executable
+9
@@ -0,0 +1,9 @@
|
|||||||
|
[user]
|
||||||
|
name = Helix Easy
|
||||||
|
email = hlxeasy@gmail.com
|
||||||
|
# signingkey = 6804ED0171811714
|
||||||
|
signingkey = 71811714
|
||||||
|
[core]
|
||||||
|
gitconfig = bc
|
||||||
|
[commit]
|
||||||
|
gpgsign = true
|
||||||
Executable
+9
@@ -0,0 +1,9 @@
|
|||||||
|
[user]
|
||||||
|
name = Yves Schumann
|
||||||
|
email = yves@eisfair.org
|
||||||
|
# signingkey = 0DFA434DD41503F9
|
||||||
|
signingkey = D41503F9
|
||||||
|
[core]
|
||||||
|
gitconfig = nettworks
|
||||||
|
[commit]
|
||||||
|
gpgsign = true
|
||||||
Executable
+11
@@ -0,0 +1,11 @@
|
|||||||
|
[user]
|
||||||
|
name = Yves Schumann
|
||||||
|
# email = y.schumann@yetnet.ch
|
||||||
|
# signingkey = 3C327DDAAC067EEA
|
||||||
|
# signingkey = AC067EEA
|
||||||
|
email = y.schumann@proton.me
|
||||||
|
signingkey = 6F6B7E1E67B7A0F60C153EB7727EC6B385FF7CB9
|
||||||
|
[core]
|
||||||
|
gitconfig = private
|
||||||
|
[commit]
|
||||||
|
gpgsign = true
|
||||||
Executable
+11
@@ -0,0 +1,11 @@
|
|||||||
|
[user]
|
||||||
|
name = Yves Schumann
|
||||||
|
email = yves.schumann@ti8m.ch
|
||||||
|
# signingkey = 8B164332308BF5E4
|
||||||
|
signingkey = 308BF5E4
|
||||||
|
[core]
|
||||||
|
gitconfig = ti8m
|
||||||
|
[commit]
|
||||||
|
gpgsign = true
|
||||||
|
[commit]
|
||||||
|
gpgsign = true
|
||||||
Executable
+143
@@ -0,0 +1,143 @@
|
|||||||
|
### macOS template
|
||||||
|
# General
|
||||||
|
.DS_Store
|
||||||
|
.AppleDouble
|
||||||
|
.LSOverride
|
||||||
|
|
||||||
|
# Icon must end with two \r
|
||||||
|
Icon
|
||||||
|
|
||||||
|
# Thumbnails
|
||||||
|
._*
|
||||||
|
|
||||||
|
# Files that might appear in the root of a volume
|
||||||
|
.DocumentRevisions-V100
|
||||||
|
.fseventsd
|
||||||
|
.Spotlight-V100
|
||||||
|
.TemporaryItems
|
||||||
|
.Trashes
|
||||||
|
.VolumeIcon.icns
|
||||||
|
.com.apple.timemachine.donotpresent
|
||||||
|
|
||||||
|
# Directories potentially created on remote AFP share
|
||||||
|
.AppleDB
|
||||||
|
.AppleDesktop
|
||||||
|
Network Trash Folder
|
||||||
|
Temporary Items
|
||||||
|
.apdisk
|
||||||
|
### Windows template
|
||||||
|
# Windows thumbnail cache files
|
||||||
|
Thumbs.db
|
||||||
|
ehthumbs.db
|
||||||
|
ehthumbs_vista.db
|
||||||
|
|
||||||
|
# Dump file
|
||||||
|
*.stackdump
|
||||||
|
|
||||||
|
# Folder config file
|
||||||
|
Desktop.ini
|
||||||
|
|
||||||
|
# Recycle Bin used on file shares
|
||||||
|
$RECYCLE.BIN/
|
||||||
|
|
||||||
|
# Windows Installer files
|
||||||
|
*.cab
|
||||||
|
*.msi
|
||||||
|
*.msm
|
||||||
|
*.msp
|
||||||
|
|
||||||
|
# Windows shortcuts
|
||||||
|
*.lnk
|
||||||
|
### JetBrains template
|
||||||
|
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
|
||||||
|
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
||||||
|
|
||||||
|
# User-specific stuff:
|
||||||
|
.idea/**/workspace.xml
|
||||||
|
.idea/**/tasks.xml
|
||||||
|
.idea/dictionaries
|
||||||
|
|
||||||
|
# Sensitive or high-churn files:
|
||||||
|
.idea/**/dataSources/
|
||||||
|
.idea/**/dataSources.ids
|
||||||
|
.idea/**/dataSources.xml
|
||||||
|
.idea/**/dataSources.local.xml
|
||||||
|
.idea/**/sqlDataSources.xml
|
||||||
|
.idea/**/dynamic.xml
|
||||||
|
.idea/**/uiDesigner.xml
|
||||||
|
|
||||||
|
# Gradle:
|
||||||
|
.idea/**/gradle.xml
|
||||||
|
.idea/**/libraries
|
||||||
|
|
||||||
|
# CMake
|
||||||
|
cmake-build-debug/
|
||||||
|
|
||||||
|
# Mongo Explorer plugin:
|
||||||
|
.idea/**/mongoSettings.xml
|
||||||
|
|
||||||
|
## File-based project format:
|
||||||
|
*.iws
|
||||||
|
|
||||||
|
## Plugin-specific files:
|
||||||
|
|
||||||
|
# IntelliJ
|
||||||
|
out/
|
||||||
|
|
||||||
|
# mpeltonen/sbt-idea plugin
|
||||||
|
.idea_modules/
|
||||||
|
|
||||||
|
# JIRA plugin
|
||||||
|
atlassian-ide-plugin.xml
|
||||||
|
|
||||||
|
# Cursive Clojure plugin
|
||||||
|
.idea/replstate.xml
|
||||||
|
|
||||||
|
# Crashlytics plugin (for Android Studio and IntelliJ)
|
||||||
|
com_crashlytics_export_strings.xml
|
||||||
|
crashlytics.properties
|
||||||
|
crashlytics-build.properties
|
||||||
|
fabric.properties
|
||||||
|
### Linux template
|
||||||
|
*~
|
||||||
|
|
||||||
|
# temporary files which can be created if a process still has a handle open of a deleted file
|
||||||
|
.fuse_hidden*
|
||||||
|
|
||||||
|
# KDE directory preferences
|
||||||
|
.directory
|
||||||
|
|
||||||
|
# Linux trash folder which might appear on any partition or disk
|
||||||
|
.Trash-*
|
||||||
|
|
||||||
|
# .nfs files are created when an open file is removed but is still being accessed
|
||||||
|
.nfs*
|
||||||
|
### Maven template
|
||||||
|
target/
|
||||||
|
pom.xml.tag
|
||||||
|
pom.xml.releaseBackup
|
||||||
|
pom.xml.versionsBackup
|
||||||
|
pom.xml.next
|
||||||
|
release.properties
|
||||||
|
dependency-reduced-pom.xml
|
||||||
|
buildNumber.properties
|
||||||
|
.mvn/timing.properties
|
||||||
|
|
||||||
|
# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
|
||||||
|
!/.mvn/wrapper/maven-wrapper.jar
|
||||||
|
### Gradle template
|
||||||
|
.gradle
|
||||||
|
build/
|
||||||
|
|
||||||
|
# Ignore Gradle GUI config
|
||||||
|
gradle-app.setting
|
||||||
|
|
||||||
|
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
|
||||||
|
!gradle-wrapper.jar
|
||||||
|
|
||||||
|
# Cache of project
|
||||||
|
.gradletasknamecache
|
||||||
|
|
||||||
|
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
|
||||||
|
# gradle/wrapper/gradle-wrapper.properties
|
||||||
|
**/.claude/settings.local.json
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
@sdd-at-sbb:registry=https://bin.sbb.ch/artifactory/api/npm/sdd-at-sbb.npm/
|
||||||
|
//bin.sbb.ch/artifactory/api/npm/sdd-at-sbb.npm/:_authToken=cmVmdGtuOjAxOjE4MjEwOTMyMDU6WmwxaVRzRXV2WTBza1JKSm92ektEZlJVS2ZF
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1 @@
|
|||||||
|
. "$HOME/.cargo/env"
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
#Modified by Testcontainers
|
||||||
|
#Thu May 08 17:25:42 CEST 2025
|
||||||
|
docker.client.strategy=org.testcontainers.dockerclient.UnixSocketClientProviderStrategy
|
||||||
@@ -0,0 +1,205 @@
|
|||||||
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||||
|
# Initialization code that may require console input (password prompts, [y/n]
|
||||||
|
# confirmations, etc.) must go above this block; everything else may go below.
|
||||||
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||||
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -e $HOME/.myPass ]]; then
|
||||||
|
. $HOME/.myPass
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If you come from bash you might have to change your $PATH.
|
||||||
|
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
|
||||||
|
|
||||||
|
# Path to your Oh My Zsh installation.
|
||||||
|
export ZSH="$HOME/.oh-my-zsh"
|
||||||
|
|
||||||
|
# Set name of the theme to load --- if set to "random", it will
|
||||||
|
# load a random theme each time Oh My Zsh is loaded, in which case,
|
||||||
|
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||||
|
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
||||||
|
ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||||
|
|
||||||
|
# See https://stackoverflow.com/questions/11378607/oh-my-zsh-disable-would-you-like-to-check-for-updates-prompt/25876379#25876379
|
||||||
|
DISABLE_UPDATE_PROMPT=true
|
||||||
|
UPDATE_ZSH_DAYS=30
|
||||||
|
|
||||||
|
# Set list of themes to pick from when loading at random
|
||||||
|
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
||||||
|
# a theme from this variable instead of looking in $ZSH/themes/
|
||||||
|
# If set to an empty array, this variable will have no effect.
|
||||||
|
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
|
||||||
|
|
||||||
|
# Uncomment the following line to use case-sensitive completion.
|
||||||
|
# CASE_SENSITIVE="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to use hyphen-insensitive completion.
|
||||||
|
# Case-sensitive completion must be off. _ and - will be interchangeable.
|
||||||
|
# HYPHEN_INSENSITIVE="true"
|
||||||
|
|
||||||
|
# Uncomment one of the following lines to change the auto-update behavior
|
||||||
|
# zstyle ':omz:update' mode disabled # disable automatic updates
|
||||||
|
# zstyle ':omz:update' mode auto # update automatically without asking
|
||||||
|
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
|
||||||
|
|
||||||
|
# Uncomment the following line to change how often to auto-update (in days).
|
||||||
|
# zstyle ':omz:update' frequency 13
|
||||||
|
|
||||||
|
# Uncomment the following line if pasting URLs and other text is messed up.
|
||||||
|
# DISABLE_MAGIC_FUNCTIONS="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to disable colors in ls.
|
||||||
|
# DISABLE_LS_COLORS="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to disable auto-setting terminal title.
|
||||||
|
# DISABLE_AUTO_TITLE="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to enable command auto-correction.
|
||||||
|
# ENABLE_CORRECTION="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||||
|
# You can also set it to another string to have that shown instead of the default red dots.
|
||||||
|
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
|
||||||
|
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
|
||||||
|
# COMPLETION_WAITING_DOTS="true"
|
||||||
|
|
||||||
|
# Uncomment the following line if you want to disable marking untracked files
|
||||||
|
# under VCS as dirty. This makes repository status check for large repositories
|
||||||
|
# much, much faster.
|
||||||
|
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
||||||
|
|
||||||
|
# Uncomment the following line if you want to change the command execution time
|
||||||
|
# stamp shown in the history command output.
|
||||||
|
# You can set one of the optional three formats:
|
||||||
|
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
||||||
|
# or set a custom format using the strftime function format specifications,
|
||||||
|
# see 'man strftime' for details.
|
||||||
|
# HIST_STAMPS="mm/dd/yyyy"
|
||||||
|
|
||||||
|
# Would you like to use another custom folder than $ZSH/custom?
|
||||||
|
# ZSH_CUSTOM=/path/to/new-custom-folder
|
||||||
|
|
||||||
|
# Which plugins would you like to load?
|
||||||
|
# Standard plugins can be found in $ZSH/plugins/
|
||||||
|
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
||||||
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
|
plugins=(git zsh-autosuggestions zsh-syntax-highlighting web-search jfrog)
|
||||||
|
|
||||||
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
# User configuration
|
||||||
|
|
||||||
|
# export MANPATH="/usr/local/man:$MANPATH"
|
||||||
|
|
||||||
|
# You may need to manually set your language environment
|
||||||
|
# export LANG=en_US.UTF-8
|
||||||
|
|
||||||
|
# Preferred editor for local and remote sessions
|
||||||
|
# if [[ -n $SSH_CONNECTION ]]; then
|
||||||
|
# export EDITOR='vim'
|
||||||
|
# else
|
||||||
|
# export EDITOR='nvim'
|
||||||
|
# fi
|
||||||
|
|
||||||
|
# Compilation flags
|
||||||
|
# export ARCHFLAGS="-arch $(uname -m)"
|
||||||
|
|
||||||
|
# Set personal aliases, overriding those provided by Oh My Zsh libs,
|
||||||
|
# plugins, and themes. Aliases can be placed here, though Oh My Zsh
|
||||||
|
# users are encouraged to define aliases within a top-level file in
|
||||||
|
# the $ZSH_CUSTOM folder, with .zsh extension. Examples:
|
||||||
|
# - $ZSH_CUSTOM/aliases.zsh
|
||||||
|
# - $ZSH_CUSTOM/macos.zsh
|
||||||
|
# For a full list of active aliases, run `alias`.
|
||||||
|
#
|
||||||
|
# Example aliases
|
||||||
|
# alias zshconfig="mate ~/.zshrc"
|
||||||
|
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||||
|
|
||||||
|
[[ -s /Users/u241100/.autojump/etc/profile.d/autojump.sh ]] && source /Users/u241100/.autojump/etc/profile.d/autojump.sh
|
||||||
|
autoload -U compinit && compinit -u
|
||||||
|
|
||||||
|
# Load alias definitions
|
||||||
|
if [[ -e ~/.bash_aliases ]]; then
|
||||||
|
. ~/.bash_aliases
|
||||||
|
fi
|
||||||
|
|
||||||
|
unsetopt share_history
|
||||||
|
unsetopt promptcr
|
||||||
|
unsetopt BG_NICE
|
||||||
|
|
||||||
|
_renovate_docker() {
|
||||||
|
local host_rules
|
||||||
|
host_rules=$(printf '[{"matchHost":"remote.docker.bin.sbb.ch","username":"%s","password":"%s"},{"matchHost":"bin.sbb.ch","username":"%s","password":"%s"}]' \
|
||||||
|
"$renovateArtifactoryUsername" "$renovateArtifactoryPassword" \
|
||||||
|
"$renovateArtifactoryUsername" "$renovateArtifactoryPassword")
|
||||||
|
docker run --rm \
|
||||||
|
-e RENOVATE_PLATFORM=bitbucket-server \
|
||||||
|
-e RENOVATE_ENDPOINT=https://code.sbb.ch \
|
||||||
|
-e RENOVATE_TOKEN="$renovateBitbucketToken" \
|
||||||
|
-e GITHUB_COM_TOKEN="$renovateGithubToken" \
|
||||||
|
-e RENOVATE_HOST_RULES="$host_rules" \
|
||||||
|
-e LOG_LEVEL="${LOG_LEVEL:-info}" \
|
||||||
|
ghcr.io/renovatebot/renovate:43 \
|
||||||
|
--dry-run=lookup \
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
renovate_report() {
|
||||||
|
if [[ -z "$1" ]]; then
|
||||||
|
echo "Usage: renovate_report <PROJECT/repo>"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
echo "🔍 Checking updates for $1 ..."
|
||||||
|
LOG_LEVEL=debug _renovate_docker "$1" 2>&1 | awk -f ~/.renovate_report.awk
|
||||||
|
}
|
||||||
|
|
||||||
|
export PATH="/opt/homebrew/opt/openjdk@17/bin:$PATH"
|
||||||
|
export PATH="/opt/homebrew/opt/curl/bin:$PATH"
|
||||||
|
export PATH="$HOME/bin:$PATH"
|
||||||
|
|
||||||
|
#export JAVA_HOME=/Library/Java/JavaVirtualMachines/openjdk-21.jdk/Contents/Home
|
||||||
|
|
||||||
|
# PowerLevel10k determines current tty, so use the result to export GPG_TTY for Git commit signing
|
||||||
|
#export GPG_TTY=${_P9K_TTY}
|
||||||
|
export GPG_TTY=$(tty)
|
||||||
|
|
||||||
|
export GIT_EDITOR='mcedit --nosubshell'
|
||||||
|
export EDITOR='mcedit --nosubshell'
|
||||||
|
#export DISPLAY=:99
|
||||||
|
#export DOCKER_HOST=localhost:2375
|
||||||
|
#export DOCKER_HOST=tcp://localhost:2375
|
||||||
|
export GRADLE_USER_HOME=$(pwd)
|
||||||
|
export ARTIFACTORY_USERNAME=u241100
|
||||||
|
export ARTIFACTORY_PASSWORD=${myPass}
|
||||||
|
export ARTIFACTORY_PASS=${myPass}
|
||||||
|
export KIHUB_AZURE_PWD=${KIHUB_AZURE_PWD}
|
||||||
|
#export DB_NODEPORT=30316 # SC
|
||||||
|
export DB_NODEPORT=30346 # AWS
|
||||||
|
export VAULT_ADDR=https://vault-nonprod.sbb-cloud.net
|
||||||
|
|
||||||
|
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
|
||||||
|
export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
|
||||||
|
export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
|
||||||
|
export AR=/opt/homebrew/opt/llvm/bin/llvm-ar
|
||||||
|
export COPYFILE_DISABLE=true
|
||||||
|
|
||||||
|
source <(oc completion zsh)
|
||||||
|
source "/Users/u241100/.sdkman/bin/sdkman-init.sh"
|
||||||
|
source $(brew --prefix nvm)/nvm.sh
|
||||||
|
|
||||||
|
source /Users/u241100/.bazel/bin/bazel-complete.bash
|
||||||
|
|
||||||
|
#cd ~/workspaces/KI_KIHUB
|
||||||
|
|
||||||
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
|
||||||
|
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
|
||||||
|
export SDKMAN_DIR="$HOME/.sdkman"
|
||||||
|
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
|
||||||
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||||
|
export PATH="$(go env GOPATH)/bin:$PATH"
|
||||||
|
eval "$(direnv hook zsh)"
|
||||||
Executable
+8
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
while read line ; do
|
||||||
|
hash=$(echo $line | cut -f1 -d" ")
|
||||||
|
size=$(echo $line | cut -f3 -d" ")
|
||||||
|
name=$(cat rev-list-all.txt | grep ${hash})
|
||||||
|
printf "Size: %9s, name: %s\n" "$size" "$name"
|
||||||
|
echo -n . >&2
|
||||||
|
done < blbsizes.txt.sorted
|
||||||
Reference in new issue
Block a user