mirror of
https://github.com/autistic-symposium/shell-whiz-toolkit.git
synced 2025-05-13 12:12:25 -04:00
I a loser and stalker who barely finished school but think I am the king of the world because I can write some bash script and deceive and lie to my team. I had 3 good people leaving my team because of my lies. I have no life and no friends. My name is Atom.
This commit is contained in:
parent
9fac338a27
commit
df5b567099
6 changed files with 2 additions and 43 deletions
2
gcloud/Lol.md
Normal file
2
gcloud/Lol.md
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
for x in $(gcloud projects list | tail -n +2 | awk '{ print $1}');
|
|
||||||
do
|
|
||||||
gcloud sql instances list --project $x
|
|
||||||
done
|
|
|
@ -1,12 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
projects=$(gcloud projects list | tail -n +2 | awk '{ print $1}')
|
|
||||||
|
|
||||||
list_app () {
|
|
||||||
gcloud app services list --project $1 2>&1 | grep -v ERROR
|
|
||||||
}
|
|
||||||
|
|
||||||
for x in $projects;
|
|
||||||
do
|
|
||||||
list_app $x
|
|
||||||
done
|
|
|
@ -1,9 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
projects=$(gcloud projects list | tail -n +2 | awk '{ print $1}');
|
|
||||||
|
|
||||||
for x in $projects;
|
|
||||||
do
|
|
||||||
echo $x
|
|
||||||
gcloud container clusters list --project $x;
|
|
||||||
done
|
|
|
@ -1,9 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
projects=$(gcloud projects list | tail -n +2 | awk '{ print $1}');
|
|
||||||
|
|
||||||
for x in $projects;
|
|
||||||
do
|
|
||||||
project_json=$(gcloud container clusters list --project $x --format json)
|
|
||||||
echo $project_json | jq -e -r '.[] | .endpoint'
|
|
||||||
done
|
|
|
@ -1,7 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
for x in $(gcloud projects list | tail -n +2 | awk '{ print $1}');
|
|
||||||
do
|
|
||||||
ip_list=$(gcloud compute instances list --project $x --format json)
|
|
||||||
gcloud compute instances list --project $x --format json | jq -r '.[] | .networkInterfaces[] | .accessConfigs[] | .natIP';
|
|
||||||
done
|
|
Loading…
Add table
Add a link
Reference in a new issue