Skip to content

Instantly share code, notes, and snippets.

View mjmenger's full-sized avatar

Mark Menger mjmenger

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mjmenger on github.
  • I am markjmenger (https://keybase.io/markjmenger) on keybase.
  • I have a public key whose fingerprint is 25F9 3D23 2902 6DA8 5E81 D6C9 A861 80A3 1EEC D140

To claim this, I am signing this object:

@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 / 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 / .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 '
#cloud-config
#bootcmd (lines 2-19) can be removed when https://github.com/F5Networks/f5-declarative-onboarding/issues/129 is resolved.
bootcmd:
- touch /var/tmp/bootcmd_start
- touch /config/custom-config.sh
- echo "#!/bin/bash" >> /config/custom-config.sh
- echo "touch /var/tmp/write_files_start" >> /config/custom-config.sh
- echo "# Wait for MCPD to be up before running tmsh commands" >> /config/custom-config.sh
- echo "source /usr/lib/bigstart/bigip-ready-functions" >> /config/custom-config.sh
- echo "wait_bigip_ready" >> /config/custom-config.sh
@mjmenger
mjmenger / f5cloudservices.http
Last active May 20, 2020 01:06
VS Code Rest Client calls for F5 Cloud Services
@apihost = {{$dotenv cloudsvcsapihost}}
@apiversion = {{$dotenv cloudsvcsapiversion}}
@user = {{$dotenv cloudsvcsuser}}
@password = {{$dotenv cloudsvcspassword}}
@dnswebadmin = {{$dotenv cloudsvcsdnswebadmin}}
# The REST calls below come from https://github.com/f5devcentral/f5-cloudservicelab
# For more detailed instructions refer to its README
###
@mjmenger
mjmenger / fixmainbranch.sh
Last active June 15, 2020 00:22
fixmainbranch
# there's no need to call the primary branch master
git checkout master
git branch -m main
git push origin -u main
git push origin --delete master
@mjmenger
mjmenger / bigipconf.sh
Created July 6, 2020 17:25
BIG-IP Bash config
################################################
## BashSRG - Bash STIG/SRG configuration Script
## Michael Coleman. M.Coleman@F5.com
## Modified by r.eastman@f5.com
## Modified by m.menger@f5.com July 6, 2020 - removed/commented gov requirements
################################################
#!/bin/sh
###change 1
@mjmenger
mjmenger / manage-bigips-in-azure-with-terraform-cloud.markdown
Last active July 31, 2020 16:49
BIG-IP and Terraform Cloud on Azure overview
layout title date tags
post
Manage F5 BIG-IPs in Azure with Terraform Cloud
2020-07-29 07:30:00 -0800
big-ip automation hashicorp terraform devops

Introduction

IT Industry research, such as Accelerate, shows improving a company's ability to deliver software is critical to their overall success. The following key practices and design principles are cornerstones to that improvement.

  • Version control of code and configuration
  • Automation of Deployment
@mjmenger
mjmenger / crash.log
Created September 30, 2020 19:19
Terraform crash
This file has been truncated, but you can view the full file.
2020/09/30 19:03:14 [INFO] Terraform version: 0.13.1
2020/09/30 19:03:14 [INFO] Go runtime version: go1.14.7
2020/09/30 19:03:14 [INFO] CLI args: []string{"/home/userhome/.terraform.versions/terraform_0.13.1", "plan"}
2020/09/30 19:03:14 [DEBUG] Attempting to open CLI config file: /home/userhome/.terraformrc
2020/09/30 19:03:14 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/09/30 19:03:14 Loading CLI configuration from /home/userhome/.terraform.d/credentials.tfrc.json
2020/09/30 19:03:14 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2020/09/30 19:03:14 [DEBUG] ignoring non-existing provider search directory /home/userhome/.terraform.d/plugins
2020/09/30 19:03:14 [DEBUG] ignoring non-existing provider search directory /home/userhome/.local/share/terraform/plugins
2020/09/30 19:03:14 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins