Alle docker run Befehle unten können natürlich auch mit bereits laufenden PG-Containern durch docker exec ersetzt werden!
# ACHTUNG: nur in einer `bash`, nie in einer `zsh` ausführen =)
read -p "DB Host: " PG_HOST
read -p "DB Name: " PG_DB| #!/usr/bin/env bash | |
| # This small Gist is meant to hold some ideas of scraping useful information from Kubernetes. | |
| # First trials, which were more complex (or just deprecated) are commented for documentation. | |
| ## get all services with NS and name | |
| # kubectl get services -A -o json | jq '[ .items[].metadata | { "name": .name, "namespace": .namespace } ]' | |
| # kubectl get services -A -o json | jq '[ .items[].metadata | { name, namespace } ]' |
| <?php | |
| $analyze = ''; | |
| $punctuations = '.:-,;–_?!'; | |
| if (isset($_POST['analyze']) and trim($_POST['analyze']) != '') { | |
| $analyze = $_POST['analyze']; | |
| $analyzed = preg_replace( "/\s+/", " ", $analyze ); | |
| $len = strlen($analyze); | |
| $pl = strlen($punctuations); | |
| for ($i=0; $i < $pl; $i++) { | |
| $analyzed = str_replace($punctuations[$i], ' ', $analyzed); |