Usage
bash <(curl -fsSL https://gist.githubusercontent.com/zulhfreelancer/c41d8b452cd2e615fb54a722485317ed/raw/9b0167d196885c382c090d257d8346ad92f34859/install_speedtest.sh)
This PowerShell script will continuously prints the current time and pings an IP address.
It will run in a loop until you press Ctrl+C
to stop it.
# Replace <IP> with target host IP address
try {
while ($true) {
$timestamp = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'
$pingResult = ping -n 1
k get pods -A -o json | jq -r '.items[] | select(.status.podIPs != null) | .metadata.namespace + " " + .metadata.name + " " + (.status.podIPs[] | .ip)' | grep -w '<pod_ip>' |
# this is installed via asdf
$ ruby -v
ruby 2.7.8p225 (2023-03-30 revision 1f4d455848) [x86_64-darwin24]
$ brew list --versions | grep mysql
mysql-client 9.0.1
[email protected] 8.0.39
# Replace the THE_SECRET_NAME | |
k get pods -A -o json | jq -r '.items[] | select(.spec.imagePullSecrets!=null) | select(.spec.imagePullSecrets[].name=="THE_SECRET_NAME") | {namespace: .metadata.namespace, name: .metadata.name}' |
kubectl get clusterissuers -o json | jq -r '.items[] | select(.spec.acme != null) | select(.spec.acme.solvers[0] | keys[0]=="dns01") | {name: .metadata.name, provider: (.spec.acme.solvers[0].dns01 | keys[0])}' |
How to displays a brief summary of all IPv4 addresses assigned to the network interfaces Linux system?
Command:
ip -4 -br a
Sample output: