Skip to content

Instantly share code, notes, and snippets.

<?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/>
@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
@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": "matt@techminer.net",
"phone": "(309) 333-6056",
"website": "https://medium.com/@matt_89326",
@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 / 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 / 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 / disk_response.json
Last active March 19, 2019 18:11
Azure API Compute Resource SKU Responses
{
"resourceType": "disks",
"name": "Standard_LRS",
"tier": "Standard",
"size": "S4",
"locations": [
"centralus"
],
"locationInfo": [
{
@MattMencel
MattMencel / init.fish
Created January 30, 2019 16:30
Fish Shell Config
#~/.config/omf/init.fish
set -g theme_display_k8s_context yes
set -g theme_display_ruby no
set -g theme_display_user yes
set -g theme_display_hostname yes
set -g theme_powerline_fonts no
set -g theme_nerd_fonts yes
set -g theme_newline_cursor yes
@MattMencel
MattMencel / Publish-Terraform-Artifact.yml
Created January 9, 2019 20:37
Publish Terraform Artifact Template
steps:
- script: |
echo "Compressing $(terraform.path) directory..."
tar -czf $(state.key).tar.gz -C $(terraform.path) .
displayName: 'Compress $(terraform.path) Artifact'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: $(state.key).tfplan'
inputs:
PathtoPublish: '$(state.key).tar.gz'
@MattMencel
MattMencel / azure-deploy-vsts.yml
Created January 7, 2019 21:34
Deploy VSTS Agent to AKS Cluster with Helm
resources:
- repo: self
clean: true
queue:
name: Hosted Ubuntu 1604
trigger:
batch: true
branches:
include:
- master