Skip to content

Instantly share code, notes, and snippets.

View tyayers's full-sized avatar
coding

Tyler Ayers tyayers

coding
View GitHub Profile
@tyayers
tyayers / provision.sh
Created July 8, 2025 13:02
Apigee Provisioning Commands
# 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
@tyayers
tyayers / request.sh
Created October 2, 2024 04:35
Application Integration Execution Status
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)"
@tyayers
tyayers / Apigee Provision EVAL Quickstart
Last active July 8, 2024 06:39
Quickstart for provisioning a new Apigee EVAL instance in a region.
# 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
@tyayers
tyayers / bigquery-api-query.sh
Last active February 19, 2024 07:47
BigQuery API
# 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}'
# 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
@tyayers
tyayers / posts.ts
Created December 16, 2022 12:10
Lit Element that fetches REST data
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')
@tyayers
tyayers / helloworld.md
Created September 13, 2021 10:39
Hello World

Hello World!