-
Notifications
You must be signed in to change notification settings - Fork 0
/
GCLOUD
38 lines (21 loc) · 1.12 KB
/
GCLOUD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
sudo apt-get update && sudo apt-get install google-cloud-sdk
gcloud init
puts stuff in ~/.config/gcloud
pip3 install --upgrade google-api-python-client
pip3 install sqlite3
https://cloud.google.com/compute/docs/reference/rest/v1/
http://googleapis.github.io/google-api-python-client/docs/epy/index.html
https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/compute/api/create_instance.py
PWD=/
LANG=C.UTF-8
INVOCATION_ID=93d5db27e0e34cb0934427d1e7092c52
TERM=vt220
SHLVL=1
JOURNAL_STREAM=9:26492
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
_=/usr/bin/env
https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys
compute.instances().get(project=project, zone=zone, instance=instance)
sudo mkfs.ext4 -m 0 -E lazy_itable_init=0,lazy_journal_init=0,discard /dev/DEVICE_ID