This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# init | |
PROJECT_ID=apigee-test85 | |
REGION=europe-west1 | |
ANALYTICS_REGION=europe-west1 | |
RUNTIME_TYPE=CLOUD | |
BILLING_TYPE=EVALUATION | |
gcloud config set project $PROJECT_ID | |
gcloud services enable apigee.googleapis.com | |
gcloud services enable apihub.googleapis.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X GET \ | |
"https://integrations.googleapis.com/v1/projects/$PROJECT_ID/locations/$REGION/integrations/long-processing-flow/executions/$EXECUTION_ID" \ | |
-H "authorization: Bearer $(gcloud auth print-access-token)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# init | |
PROJECT_ID=cloud32x | |
REGION=europe-west4 | |
gcloud config set project $PROJECT_ID | |
gcloud services enable apigee.googleapis.com | |
gcloud services enable apihub.googleapis.com | |
gcloud services enable compute.googleapis.com | |
gcloud services enbale servicenetworking.googleapis.com | |
# create default network |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This shows how to call the BigQuery API with curl. | |
TOKEN=$(gcloud auth print-access-token) | |
# Set with your project... | |
PROJECT= | |
curl -X POST "https://bigquery.googleapis.com/bigquery/v2/projects/$PROJECT/queries" \ | |
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \ | |
-d '{"query": "SELECT * FROM bigquery-public-data.bitcoin_blockchain.transactions LIMIT 1000", "useLegacySql": false, "maxResults": 1000}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bash <(curl -Ls https://gist.githubusercontent.com/tyayers/904b170884c2e630a91e93ede7d5fa9f/raw/c0d5f7d1cb246b54136343457e1ede6cfdc36635/debian_setup.sh) | |
cd ~ | |
echo "Installing python, zip, etc..." | |
sudo apt install jq make python3 python3-pip nano ranger zip gnome-terminal | |
mkdir tools | |
mkdir projects | |
mkdir temp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { LitElement, css, html } from 'lit' | |
import { customElement, property } from 'lit/decorators.js' | |
/** | |
* An example element. | |
* | |
* @slot - This element has a slot | |
* @csspart button - The button | |
*/ | |
@customElement('posts') |