Skip to content

Instantly share code, notes, and snippets.

View wilrodriguez's full-sized avatar

Wil Rodriguez wilrodriguez

  • Enlighten IT Consulting
  • San Antonio, Texas
  • 10:00 (UTC -12:00)
View GitHub Profile
@maratori
maratori / .golangci.yml
Last active November 15, 2024 14:06
Golden config for golangci-lint
# This code is licensed under the terms of the MIT license https://opensource.org/license/mit
# Copyright (c) 2021 Marat Reymers
## Golden config for golangci-lint v1.62.0
#
# This is the best config for golangci-lint based on my experience and opinion.
# It is very strict, but not extremely strict.
# Feel free to adapt and change it for your needs.
run:
@AndruC
AndruC / Roll20 Macros.md
Last active July 9, 2024 20:08
Macros that I use to improve my D&D games

Macro Must-Haves

These are my must-have macros for running games online. I make full use of the compendium, which gives these macros access to common actions and rolls, saving me time.

Remember to add /w gm or @{selected|wtype} to hide sensitive info from your players. WTYPE is an attribute used in the 5th Edition OGL character sheet, a prerequisite for most of these.

Here's what my bar looks like.

Macro Quickbar

#!/bin/bash
CERTNAME=$(puppet master --configprint certname)
# Revoke
curl \
--verbose \
-X PUT \
-H "Content-Type: text/pson" \
@natemccurdy
natemccurdy / pe_repo_packages.pp
Last active January 5, 2018 05:21
Puppet class to synchronize pe_repo packages to off-line compile masters
# This class is meant to solve the problem of synchronizing pe_repo agent
# packages to compile masters when there is no internet access.
#
# This profile assumes that the Puppet MoM (master of masters) is able to reach
# the internet to download the needed packages, or they've been sneaker-netted to the MoM.
#
class pe_repo_packages {
# Generate an array of puppet-agent pe_repo package names.
# 1. Searches PuppetDB for all pe_repo::platform classess added to the MoM.