• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Search

cloud

GCP Cloud Shell Format

September 18, 2023

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

Filed Under: Cloud Tagged With: cloud, format, gcp, set, shell

GCP Cloud Shell Vim Settings

March 10, 2021

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

  • The first line uses the desert theme.
  • The second line turns on syntax highlighting. It’s on by default.
  • The third line fixes the backspace issue I mentioned above.

Filed Under: Cloud Tagged With: backspace, cloud, gcp, shell, vim, vimrc

GCP CLI Create Firewall

March 12, 2019

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

Filed Under: Cloud Tagged With: cli, cloud, create, delete, describe, firewall, gcp, google

  • Go to page 1
  • Go to page 2
  • Go to Next Page »
  • Home
  • About
  • Search

Copyright © 2023