Skip to content

Instantly share code, notes, and snippets.

View jaredtbates's full-sized avatar

Jared Bates jaredtbates

View GitHub Profile
@jaredtbates
jaredtbates / create-or-update-stackset.sh
Created January 19, 2020 04:10 — forked from mdjnewman/create-or-update-stack.sh
A script to use AWS CLI to create or update a CloudFormation stackset
#!/usr/bin/env sh
# Adapted from https://gist.github.com/mdjnewman/b9d722188f4f9c6bb277a37619665e77
usage="Usage: $(basename "$0") stack-set-name template-file administration-role-name execution-role-name
where:
stack-set-name - the stack set name
template-file - the file path of the template
administration-role-name - the name of the administration role
execution-role-name - the name of the execution role
"
@jaredtbates
jaredtbates / ItemBuilder.java
Created August 3, 2015 13:18 — forked from MiniDigger/ItemBuilder.java
ItemBuilder that extends ItemStack, so no .build() is required.
import org.bukkit.*;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.inventory.meta.LeatherArmorMeta;
import org.bukkit.material.MaterialData;
import java.util.ArrayList;
import java.util.List;