https://www.youtube.com/watch?v=IJDg6tRJmHo
curl -sSf https://raw.githubusercontent.com/rojo-rbx/rokit/main/scripts/install.sh | bashhttps://www.youtube.com/watch?v=IJDg6tRJmHo
curl -sSf https://raw.githubusercontent.com/rojo-rbx/rokit/main/scripts/install.sh | bashsh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-history-substring-search $ZSH_CUSTOM/plugins/zsh-history-substring-search
git clone https://github.com/zsh-users/zsh-completions $ZSH_CUSTOM/plugins/zsh-completionshelm repo add sonarqube https://SonarSource.github.io/helm-chart-sonarqube
helm repo update
kubectl create namespace sonarqube
helm upgrade --install -n sonarqube sonarqube sonarqube/sonarqube \
--set ingress.enabled="true" \| --Create user xxx_dba | |
| create user xxx_dba with encrypted password 'Dba12345'; | |
| --Create app user | |
| create user xxx_user with encrypted password 'User12345'; | |
| --Create xxx database (db owner = xxx_dba) | |
| create database xxx with owner xxx_dba; | |
| --Change db to xxx without change user |
echo "import java.net.InetAddress; \
public class HostnameFromIp { \
public static void main(String[] args) throws Exception { \
var startTime = System.currentTimeMillis(); \
System.out.println(InetAddress.getByName(args[0]).getHostName() + \
\" - \" + (System.currentTimeMillis() - startTime) + \"ms\"); \
} \
}" > HostnameFromIp.java| #!/bin/sh | |
| # Usage: export JAVA_TOOL_OPTIONS=`get-java-opts-proxy` | |
| local_http_proxy=${HTTP_PROXY:-$http_proxy} | |
| if [ -n "$local_http_proxy" ] ; then | |
| if [ $? -eq 0 ]; then # If variable has username and password, its parse method different | |
| http_proxy_host=$(echo $local_http_proxy | sed 's/http:\/\/.*@\(.*\):.*/\1/') | |
| http_proxy_port=$(echo $local_http_proxy | sed 's/http:\/\/.*@.*:\(.*\)/\1/' | tr -d "/") |