Skip to content

Instantly share code, notes, and snippets.

View wesley-dean's full-sized avatar

Wes Dean wesley-dean

View GitHub Profile
@wesley-dean
wesley-dean / .groovylintrc.json
Created November 8, 2021 17:40
Mega-Linter on Jenkins
{
"extends": "recommended",
"rules": {
"convention.CompileStatic": "off",
"convention.NoDef": "off",
"convention.VariableTypeRequired": "off",
"convention.MethodReturnTypeRequired": "off",
"groovyism.ExplicitCallToEqualsMethod": "off",
"groovyism.GStringExpressionWithinString": "off",
"naming.VariableName": "off",

Keybase proof

I hereby claim:

  • I am wesley-dean on github.
  • I am wesdean (https://keybase.io/wesdean) on keybase.
  • I have a public key ASB8pG40OWH6HhRYutNn2unHE-4fBaKDbdW2kD7PU7vRNAo

To claim this, I am signing this object:

@wesley-dean
wesley-dean / sanitize.sed
Last active April 20, 2020 15:19
basic, generic sed script to sanitize things like AWS account numbers, IPv4 addresses, SSNs, TINs, etc. from text files, program output, etc.
#!/usr/bin/env -S sed -Ef
# Replace 12-digit strings (AWS Account IDs)
# 123456789012 => 123*********
s/([^0-9])([0-9]{3})[0-9]{9}([^0-9])/\1\2*********\3/g
# Replace Social Security Numbers (SSNs) with dashes =>
# 123-45-6789 => 123-**-****
s/([^0-9])([0-9]{3})-([0-9]{2})-([0-9]{4})([^0-9])/\1\2-**-****\5/g
@wesley-dean
wesley-dean / date_from_now_terraform.sh
Last active July 17, 2020 16:43
This is a shell script that may be used to acquire the time from now using Terraform's External provider
#!/bin/sh
# Terraform's External provider:
# https://www.terraform.io/docs/providers/external/data_source.html
#
# Sample usage (Terraform):
# data "external" "nextmonth" {
# program = ["sh", "${path.module}date_from_now_terraform.sh"]
#
# query = {