Skip to content

Instantly share code, notes, and snippets.

@glitchcowboy
glitchcowboy / gist:8d1f2b4d118ba32001da
Last active August 29, 2015 14:01
errpt splunk the easy way
errnotify:
en_name = "splunk_errpt"
en_persistenceflg = 0
en_method = "errpt -a -l $1 >/opt/splunkforwarder/etc/apps/TA-errpt/var/errpt/$$.errpt"
[batch://$SPLUNK_HOME/etc/apps/TA-errpt/var/errpt]
move_policy = sinkhole
sourcetype = errpt
source = errpt
index = unix_idx
@glitchcowboy
glitchcowboy / file.txt
Last active July 12, 2021 16:41
new gist
A file
Barak Griffis
449-75-5318
248-48-9710
504-80-9403
589-01-6441
706-44-5528
Barak Griffis
Brian Peter
Kris Ciesielski
4075225050204455
4075225044992642
4075225057936686
4075225037795918
4075225043760533
4075225018004744
4075225022689304
4075225060119055
4075225058023211
4075225034304301
@glitchcowboy
glitchcowboy / mypublickey.txt
Created September 26, 2022 18:14
My Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mDMEYn4wpRYJKwYBBAHaRw8BAQdA5sGRd3rWkV8b4hRJa1P71hWCP3ycaTKCy5QK
tesbQt60KUJhcmFrIEdyaWZmaXMgPGJncmlmZmlzQGFmZmluaXR5cGx1cy5vcmc+
iJkEExYKAEEWIQQrDoqxb8feh+ptYmmkS7V5hPS1+gUCYn4wpQIbAwUJA8JnAAUL
CQgHAgIiAgYVCgkICwIEFgIDAQIeBwIXgAAKCRCkS7V5hPS1+o6kAPwIYeccuIHg
ddMPyGEJFp6XOJE86VYzDV0IOMnOvV9FDgEAs3DHGpzlPhCAxGWJ0Z6xcDo7sqMP
DskKuZ+4MVV91wu4OARifjClEgorBgEEAZdVAQUBAQdAdMhgso6bwcVB5BTVIeC5
mc2LC0qGRH3LwVCFxbvHJEsDAQgHiH4EGBYKACYWIQQrDoqxb8feh+ptYmmkS7V5
hPS1+gUCYn4wpQIbDAUJA8JnAAAKCRCkS7V5hPS1+mnfAP96/v2HGV5UQ1+snRSf
mkdir ops
cd ops
git clone [email protected]:apfcu/stratus/ops/git-hooks.git
cd [infrastructure repo]
cp ops/git-hooks/commit-msg infrastructure/.git/hooks/
cp ops/git-hooks/pre-commit infrastructure/.git/hooks/
@glitchcowboy
glitchcowboy / AoC-Day1-broken.go
Created January 3, 2024 15:32
AoC-Day1-broken.go
package main
import (
"encoding/csv"
"os"
//"strings"
"regexp"
"fmt"
//"strings"
//"strconv"