Skip to content

Instantly share code, notes, and snippets.

View albatrossflavour's full-sized avatar

Tony Green albatrossflavour

View GitHub Profile
@natemccurdy
natemccurdy / containment.pp
Created August 10, 2018 18:11
An example of the containment problem with roles and profiles in Puppet
# A WebServer role that may have a containment problem.
class role::webserver {
include profile::base
include profile::nginx
# We want EVERYTHING in base to come before the nginx profile
# but that is only possible if the base profile "contains" all of its
# included classes.
Class['profile::base']
@ttscoff
ttscoff / sizes.rb
Last active July 12, 2021 03:33
sizes: Calculate and sort all filesizes for current folder
#!/usr/bin/env ruby
# Sizes - Calculate and sort all filesizes for current folder Includes
# directory sizes, colorized output Brett Terpstra 2019 WTF License
VERSION = "1.0.1"
require 'shellwords'
# Just including term-ansicolor by @flori and avoiding all the
# rigamarole of requiring multiple files when it's not a gem... - Brett
#