Skip to content

Instantly share code, notes, and snippets.

@MattMencel
MattMencel / Terraform-Plan-Steps.yml
Last active September 27, 2019 21:36
Azure CLI Tasks to Authenticate with an SPN
- task: AzureCLI@1
displayName: 'Setup Authentication'
inputs:
azureSubscription: '$(SUBSCRIPTION_NAME)'
addSpnToEnvironment: true
scriptLocation: inlineScript
failOnStandardError: 'true'
inlineScript: |
echo "##vso[task.setvariable variable=ARM_SUBSCRIPTION_ID]$(az account show --query="id" -o tsv)"
echo "##vso[task.setvariable variable=ARM_CLIENT_ID]${servicePrincipalId}"
@MattMencel
MattMencel / azure_postgres_restore.md
Last active February 13, 2020 16:47
Azure Postgres Database Restores

Azure Postgres Database Restore

Steps

Remove the AAD Group from the original DB instance

There is a problem (bug?) where Azure won't let you do a point-in-time restore of a postgres server if an AAD account or group is assigned as an admin.

Do this from the portal.

@MattMencel
MattMencel / kustomize_manifest.yaml
Created September 30, 2020 15:47
azdo-pipeline-template kustomize manifest
apiVersion: v1
kind: Namespace
metadata:
labels:
azure-key-vault-env-injection: enabled
name: azure-pipelines-agent
---
apiVersion: helm.fluxcd.io/v1
kind: HelmRelease
metadata:
@MattMencel
MattMencel / resume.json
Last active August 23, 2023 23:07
resume.json
{
"meta": {
"theme": "kendall"
},
"basics": {
"name": "Matt Mencel",
"label": "Site Reliability Engineer - Tech Lead",
"email": "[email protected]",
"phone": "(309) 333-6056",
"website": "https://medium.com/@matt_89326",
@MattMencel
MattMencel / fluent-bit-config.yaml
Last active December 30, 2020 16:53
fluent-bit-config.yaml
apiVersion: v1
data:
fluent-bit.conf: |
[SERVICE]
Flush 5
Log_Level warn
Daemon off
Parsers_File parsers.conf
HTTP_Server On
HTTP_Listen 0.0.0.0
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Command</key>
<string></string>
<key>Default Bookmark Guid</key>
<string>AFCCF22E-059E-46ED-A160-29777EE704FD</string>
<key>DisableFullscreenTransparency</key>
<false/>