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 / 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
###
#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 / 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
@mjmenger
mjmenger / collab.md
Last active October 15, 2020 20:29
collaboration environment setup

https://github.com/cdr/code-server/blob/v3.6.0/doc/install.md

The docker run command below references version 3.6.0 of coder. You can check codercom's docker hub for later versions.

TODO: figure out how to create and specify another user

make certain you change to the project directory before running this command. In addition, the SERVICE_URL and ITEM_URL are optional environment variables that point to the Open VSX Registry.

mkdir -p ~/.coderconfig
@mjmenger
mjmenger / snippet.tmpl
Last active January 21, 2021 01:26
onboard without a secret manager
#!/bin/bash
# BIG-IPS ONBOARD SCRIPT
LOG_FILE=${onboard_log}
if [ ! -e $LOG_FILE ]
then
touch $LOG_FILE
exec &>>$LOG_FILE
@mjmenger
mjmenger / README.md
Last active January 30, 2021 17:18
dirt4 logitech g920

In Dirt 4 my Logitech G920 stopped working. By "stopped working" I mean that the throttle was consistently at 100% and menu navigation was impossible due to a scrolling issue.

After some searching and integrating various suggestions, I made a couple of changes to the xml file that drives how Dirt 4 interprets the G920 input. This fix isn't perfect as some menu navigation was lost in the process and I have to resort to the keyboard. Hopefully, I will be able to fix that in the future. If you have suggestions for improvements, please let me know.

In order to use this file, replace the existing lg_g920.xml in the following location.

<wherever your steam library is installed>\steamapps\common\DiRT 4\input\actionmaps\lg_g920.xml