Shell

.https://cloud.google.com/shell/docs/configuring-cloud-shell

Source: https://github.com/confluentinc/examples/blob/6.1.0-post/clickstream/ksql/ksql-clickstream-demo/demo/ksql-tables-to-grafana.sh#L18

declare -a tables=('click_user_sessions' 'user_ip_activity');
for i in "${tables[@]}"
do
    table_name=$i
    TABLE_NAME=`echo $table_name | tr '[a-z]' '[A-Z]'`

    ## Cleanup existing data

    echo -e "\t-> Remove any existing Elastic search config"  
    curl -s -X "DELETE" "http://$ELASTIC_HOST:9200/""$table_name"  >>/tmp/log.txt 2>&1

done

/run

Library

.https://github.com/GoogleCloudDataproc/initialization-actions/blob/master/cloud-sql-proxy/cloud-sql-proxy.sh

cat command

.https://github.com/GoogleCloudDataproc/initialization-actions/blob/master/cloud-sql-proxy/cloud-sql-proxy.sh#L276-L292

Permissions

.https://github.com/git/git/blob/e6362826a0409539642a5738db61827e5978e2e4/t/t1301-shared-repo.sh#L74-L84

history

Ctrl + R - Recursive command search

Environment variables

Windows (PowerShell)

Windows (cmd.exe)

Unix systems

Java Dev Environment

PGP

/etc/profile

Install Ansible terraform

sed

.sh examples

Powershell

.https://cloud.google.com/iam/docs/creating-managing-service-account-keys#uploading

Tips

How to remove a file named -r

-r is normally a flag, but here it is accidentally created

Last updated

Was this helpful?