Note : The special characters ".", "-", "~", and "_" remain the same
| Char | Encoded Value (percent-encoding) |
|---|---|
| $ | %24 |
| ! | %21 |
| # | %23 |
| & | %26 |
| keycloak: | |
| replicas: 2 | |
| image: | |
| repository: docker.local:5000/hd/keycloak | |
| tag: 8.0.1 | |
| affinity: | | |
| podAntiAffinity: | |
| preferredDuringSchedulingIgnoredDuringExecution: | |
| - weight: 100 | |
| podAffinityTerm: |
| -- Create a group | |
| CREATE ROLE readaccess; | |
| -- Grant access to existing tables | |
| GRANT USAGE ON SCHEMA public TO readaccess; | |
| GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess; | |
| -- Grant access to future tables | |
| ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess; |
| #!/bin/bash | |
| PID=$1 | |
| if [[ -z "${PID}" ]]; then | |
| echo "Please provide the process id" | |
| exit 1 | |
| fi | |
| SIZE=`jstat -gc $PID | tail -1 | awk '{split($0,a," "); sum=(a[1]+a[2]+a[5]+a[7])/1024; print sum"MB"}'` | |
| if [[ -z "$SIZE" ]]; then | |
| exit 1 |
| #!/bin/bash | |
| PID=$1 | |
| if [[ -z "${PID}" ]]; then | |
| echo "Please provide the process id" | |
| exit 1 | |
| fi | |
| SIZE=`jstat -gc $PID | tail -1 | awk '{split($0,a," "); sum=(a[1]+a[2]+a[5]+a[7])/1024; print sum"MB"}'` | |
| if [[ -z "$SIZE" ]]; then | |
| exit 1 |
| #!/bin/bash | |
| PID=$1 | |
| if [[ -z "${PID}" ]]; then | |
| echo "Please provide the process id" | |
| exit 1 | |
| fi | |
| SIZE=`jstat -gc $PID | tail -1 | awk '{split($0,a," "); sum=(a[1]+a[2]+a[5]+a[7])/1024; print sum"MB"}'` | |
| if [[ -z "$SIZE" ]]; then | |
| exit 1 |
| version: '3' | |
| services: | |
| postgres: | |
| image: postgres:latest | |
| restart: always | |
| volumes: | |
| - ./pgdata:/var/lib/postgresql/data | |
| environment: |