Skip to content

Instantly share code, notes, and snippets.

@jlandure
Last active July 23, 2018 20:01
Show Gist options
  • Select an option

  • Save jlandure/39109d2e5b8f83f22c6b3ddda4f44e77 to your computer and use it in GitHub Desktop.

Select an option

Save jlandure/39109d2e5b8f83f22c6b3ddda4f44e77 to your computer and use it in GitHub Desktop.
cloudshell commands
USER_EMAIL=$(gcloud auth list --limit=1 2>/dev/null | grep '@' | awk '{print $2}')
Authorization_Bearer=$(gcloud auth application-default print-access-token)
PLAINTEXT=$(cat $file | base64 -w0)
PROJECT=$(gcloud info --format='value(config.project)')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment