Skip to content

Instantly share code, notes, and snippets.

@mdgreenwald
mdgreenwald / karabiner.json
Last active April 3, 2021 23:41
Karabiner-Elements Logitech K840 Profile
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@mdgreenwald
mdgreenwald / script.sh
Last active March 24, 2022 15:41
List AWS ACM Certificates with Issuer and Validation Method
#!/bin/bash
aws acm list-certificates | jq -r '[.CertificateSummaryList[].CertificateArn] | @csv' > tmp.csv
N=0
ARR=()
IFS=","
while read STR
do
set -- $STR
@mdgreenwald
mdgreenwald / parsers.conf
Created July 3, 2018 04:18
Fluentbit Regex Parser for Fastly Log Streaming V2 Syslog Endpoint Classic
[PARSER]
Name syslog-fastly
Format regex
Regex \<(?<pri>[0-9]{1,3})\>(?<msgtime>[^ ]+) (?<cachenode>[a-zA-Z0-9_\/\.\-]*) (?<logname>[^\[]*)(?:\[(?<pid>[0-9]+)\])?(?:[^\:]*\:)? (?<host>[^ ]*) [^ ]* [^ ]* \[(?<time>[^\]]*)\] "(?<method>\S+)(?: +(?<path>[^ ]*) +\S*)?" (?<code>[^ ]*) (?<size>[^ ]*)$
Time_Key time
Time_Format %d/%b/%Y:%H:%M:%S %z
@mdgreenwald
mdgreenwald / keybase.md
Last active October 5, 2018 04:28
keybase.md

Keybase proof

I hereby claim:

  • I am mdgreenwald on github.
  • I am mdgreenwald (https://keybase.io/mdgreenwald) on keybase.
  • I have a public key ASB_MqMBncDMFTf3x9uNWnQPm_uLr7iJd3crPcHLn-WEfQo

To claim this, I am signing this object: