If you are getting funky formatting in GCP Cloud Shell, run this to set the format.
gcloud config set accessibility/screen_reader False |
cloud engineer
If you are getting funky formatting in GCP Cloud Shell, run this to set the format.
gcloud config set accessibility/screen_reader False |
gcloud config set accessibility/screen_reader False
I had an issue with using the backspace in Vim in GCP’s Cloud Shell. Every time I’m in the insert mode and I want to edit using backspace, it doesn’t delete the characters. It shows these characters “^?” instead. Well, it turned out to be a backspace setting that you can set within .vimrc. So, here’s my working setup.
colo desert syntax on set backspace=indent,eol,start set nocompatible |
colo desert syntax on set backspace=indent,eol,start set nocompatible
Here’s how to add a firewall rule in Google Cloud Platform CLI
gcloud compute firewall-rules create "firewall-name" \ --description="firewall-description" \ --priority "1000" \ --direction INGRESS \ --action allow \ --network "network-name" \ --target-service-accounts="service@account.net" \ --source-ranges="10.0.0.0/8" \ --rules tcp:9001 |
gcloud compute firewall-rules create "firewall-name" \ --description="firewall-description" \ --priority "1000" \ --direction INGRESS \ --action allow \ --network "network-name" \ --target-service-accounts="service@account.net" \ --source-ranges="10.0.0.0/8" \ --rules tcp:9001
Describe firewall rule.
gcloud compute firewall-rules describe firewall-name |
gcloud compute firewall-rules describe firewall-name
Delete firewall rule.
gcloud compute firewall-rules delete firewall-name |
gcloud compute firewall-rules delete firewall-name