Skip to content

Instantly share code, notes, and snippets.

View big-samantha's full-sized avatar

Samantha Smith big-samantha

View GitHub Profile
locals {
modules_location = lookup(
yamldecode(file("${get_terragrunt_dir()}/${find_in_parent_folders("organization.yaml")}")),
"modules_location"
)
module = lookup(
yamldecode(file("${get_terragrunt_dir()}/locals.yaml")),
"module"
)
}
@big-samantha
big-samantha / keybase.md
Created October 16, 2018 14:45
keybase.md

Keybase proof

I hereby claim:

  • I am pizzaops on github.
  • I am pizzaops (https://keybase.io/pizzaops) on keybase.
  • I have a public key ASCbJcysTwT2e0BCtdRtZJiJc92FeESV3160ApUPC-l3hwo

To claim this, I am signing this object:

@big-samantha
big-samantha / Fallout: New Vegas Item Pack Contents.md
Last active June 19, 2018 01:22
Fallout: New Vegas Item Pack Contents

Fallout: New Vegas Item Pack Contents

If you, like me, hate all the free items you get from add-on packs when starting a new game, I made a list, so you can drop them all!

Caravan Pack

  • Lightweight Leather Armor
  • Sturdy Caravan Shotgun
  • 40 20 Gauge Rounds
  • 4 Weapon Repair Kits
LOLcalhost :: ~ % pry 1 ↵
[1] pry(main)> foo = {}
=> {}
[2] pry(main)> foo.default= []
=> []
[3] pry(main)> foo['asdfsdf']
=> []
[4] pry(main)> foo['bar'].push '1'
=> ["1"]
[5] pry(main)> foo
@big-samantha
big-samantha / augeas.md
Created March 15, 2018 01:14
Augeas Top Of File Configuration

In this example we want to insert a line of configuration at the top of the file, because rsyslog arbitrarily requires that it be done this way :)

insert $MaxMessageSize before /files/etc/rsyslog.conf/*[position() = 1]
set /files/etc/rsyslog.conf/$MaxMessageSize 64k
if has_key($params, 'unix_user') {
$unix_user_real = str2bool($params['unix_user'])
case $unix_user_real {
false: {}
default: {
@account::user { $user_name:
ensure => present,
shell => $shell,
uid => $uid,
group => $group,
@big-samantha
big-samantha / aws_defined_type_example.pp
Created June 29, 2017 21:27
Wrapping the AWS CLI with a defined resource type.
# modules/womply/manifests/iam_user.pp
define womply::iam_user (
String $username = $title,
) {
$create = "/usr/bin/aws iam create-user --user-name ${user}"
$check = "bash -c '/usr/bin/aws iam list-users --output text | grep ${user}'"
exec { "AWS_IAM_user-${title}":
# This command creates the user.
command => $create,
adasdnlaskdkldsmfdsalkfm
dfsa
sad
f
adsf
dsaf
;
gothputer :: ~ % sudo dnf install http://pkg.i-nex.pl/fedora/25/i-nex-7.6.0-1.20170111git32e7049.fc25.x86_64.rpm
keybase 13 kB/s | 5.0 kB 00:00
Error: nothing provides libcpuid needed by i-nex-7.6.0-1.20170111git32e7049.fc25.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages)
gothputer :: ~ %
gothputer :: ~ % sudo dnf install http://pkg.i-nex.pl/fedora/25/i-nex-7.6.0-1.20170111git32e7049.fc25.x86_64.rpm \
> http://pkg.i-nex.pl/fedora/25/libcpuid-0.4.0-1.20170112gitfa87a5e.fc25.x86_64.rpm
Last metadata expiration check: 0:00:25 ago on Thu Mar 9 14:29:53 2017.
Dependencies resolved.