Skip to content

Instantly share code, notes, and snippets.

View mjmenger's full-sized avatar

Mark Menger mjmenger

View GitHub Profile

Create the persistent volume

# pv.yaml
apiVersion: v1
kind: PersistentVolume
metadata:
  name: menger-experiment
spec:
  capacity:
@mjmenger
mjmenger / AS3.http
Last active March 28, 2024 14:59
VS Code Rest Client calls for BIG-IP
#
# bigip address, username, and password are
# retrieved from a .env file
#
# the format of the .env file looks like
# bigip1=0.0.0.0
# user=username
# password=yoursecretpassword
#
@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 https://developer.trimet.org/ws/v2/arrivals?locIDs=7659&appID={{trimetapikey}}
###
GET http://{{ httpbinserver}}/get
###
GET http://{{ httpbinserver}}/basic-auth/username/password
Authorization: Basic username:password
@mjmenger
mjmenger / .bash_aliases
Last active September 14, 2023 11:19
bash aliases I like to have available
# Terraform aliases
# adding time to the commands because I'm very interested
# in how long these activities take with more complex builds
# across disparate platforms
alias tfi='terraform init'
alias tfp='time terraform plan'
alias tfa='time terraform apply'
alias tfaa='time terraform apply -auto-approve '
alias tfd='time terraform destroy'
alias tfda='time terraform destroy -auto-approve '
@mjmenger
mjmenger / keylight.http
Last active September 11, 2023 11:56
elgato key light REST endpoints
# simple requests for use with the VSCode Rest Client extension
###
GET http://{{$dotenv lightaddress}}:{{$dotenv lightport}}/elgato/accessory-info
###
# on or off
PUT http://{{$dotenv lightaddress}}:{{$dotenv lightport}}/elgato/lights
@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 / api.http
Last active August 1, 2023 01:23
weather.gov
#
# https://www.weather.gov/documentation/services-web-api
# home
# @latitude = 45.479293180527236
# @longitude = -122.67109294416308
# Willamette Sailing Club
@latitude = 45.47959408818095
@mjmenger
mjmenger / extend.md
Last active December 27, 2022 21:29
extend a partition on linux

using parted

parted
(parted) print
(parted) resizepart

partition number? probably get warned about the partition being used... be strong set the end to the biggest number you can think of