Skip to content

Instantly share code, notes, and snippets.

View mjmenger's full-sized avatar

Mark Menger mjmenger

View GitHub Profile
@mjmenger
mjmenger / openai.http
Last active September 3, 2024 16:40
Sample Open AI API requests
POST https://gatewayplus.f5xc-portkeyai.net/v1/chat/completions
Content-Type: application/json
{
"messages": [
{"role": "user","content": "Say this might be a test."}
],
"max_tokens": 20,
@mjmenger
mjmenger / deploy-f5xc-frps.sh
Last active July 29, 2024 17:51
snowflakeintegration.md
echo '*** Retrieving App Stack kubeconfig ***'
curl --location -o "$DISTRIBUTED_CLOUD_SITE_NAME.yaml" --request POST "https://$DISTRIBUTED_CLOUD_TENANT.console.ves.volterra.io/api/web/namespaces/system/sites/$DISTRIBUTED_CLOUD_SITE_NAME/global-kubeconfigs" \
--header "Authorization: APIToken $DISTRIBUTED_CLOUD_API_TOKEN" \
--header 'Access-Control-Allow-Origin: *' \
--header "x-volterra-apigw-tenant: $DISTRIBUTED_CLOUD_TENANT" \
--data-raw "{\"expirationTimestamp\":\"$KUBECONFIG_CERT_EXPIRE_DATE\"}"
echo '*** Setting KUBECONFIG environment variable ***'
export KUBECONFIG=$DISTRIBUTED_CLOUD_SITE_NAME.yaml
@mjmenger
mjmenger / grafana-on-xc.md
Last active May 15, 2024 17:49
Grafana on F5 distributed cloud

Grafana on XC

Deploy App Stack

reference to App Stack documentation

Deploy Grafana

edit the csrf_trusted_origins value to domain that will be used for the grafana http load balancer, and save as grafana.ini.

#################################### Paths ####################################
[paths]

Create the persistent volume

# pv.yaml
apiVersion: v1
kind: PersistentVolume
metadata:
  name: menger-experiment
spec:
  capacity:
GET https://developer.trimet.org/ws/v2/arrivals?locIDs=7659&appID={{trimetapikey}}
@mjmenger
mjmenger / tpi2.http
Last active November 30, 2023 21:49
The Turing Pi 2 BMC API
@apiendpoint = http://{{turinghost}}/api/bmc
###
# @name tpiauth
POST https://{{turinghost}}/api/bmc/authenticate
Content-Type: application/json
{
"username":"{{turinguser}}",
"password":"{{turingpassword}}"
###
GET http://{{ httpbinserver}}/get
###
GET http://{{ httpbinserver}}/basic-auth/username/password
Authorization: Basic username:password
@mjmenger
mjmenger / tripcheck.http
Created September 7, 2023 16:50
testing Trip Check API with Rest Client
GET https://api.odot.state.or.us/tripcheck/Incidents?RouteId=OR242,OR120,US97,OR126,OR22,US197&EventTypeId=DS
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: {{$dotenv tripcheck_key}}
###
GET https://api.odot.state.or.us/tripcheck/Incidents
@mjmenger
mjmenger / ff_terragrunt.md
Last active December 20, 2022 15:57
feature flags with terragrunt

directory structure

.
├── mod1
│   ├── main.tf
│   └── terragrunt.hcl
├── mod2
│   ├── main.tf
│   └── terragrunt.hcl
├── mod3
@mjmenger
mjmenger / modappsetup.md
Last active July 19, 2022 18:57
ModAppJumpNotes