Skip to content

Instantly share code, notes, and snippets.

View HAIL9000's full-sized avatar

Hailee Kenney HAIL9000

View GitHub Profile
@HAIL9000
HAIL9000 / idk.rb
Created October 18, 2017 18:42
help
def set_member
if @property_flush[:ensure] == :absent
# a shard can't be removed easily at this time
return
end
return if @property_flush[:ensure] == :present && @property_hash[:ensure] != :present
Puppet.debug "Adding the shard #{name}"
output = sh_addshard(@property_flush[:member])
@HAIL9000
HAIL9000 / test-output
Created April 4, 2016 22:50
how do c++
/Users/HAIL9000/Library/Caches/CLion12/cmake/generated/1469e3a2/1469e3a2/Debug/bin/libcpp-hocon_test
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libcpp-hocon_test is a Catch v1.0 b53 host application.
Run with -? for options
-------------------------------------------------------------------------------
resolve trivial key
-------------------------------------------------------------------------------
/Users/HAIL9000/Projects/cpp-hocon/lib/tests/config_substitution_test.cc:32
$ gem install unf_ext -v '0.0.7.2'
Building native extensions. This could take a while...
ERROR: Error installing unf_ext:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for main() in -lstdc++... no
creating Makefile
make "DESTDIR="
@HAIL9000
HAIL9000 / puppetdb.json
Created March 11, 2016 01:39
puppetlabs/puppetdb module as represented by the json produced by puppet strings
{
"defined_types": [],
"puppet_classes": [
{
"docstring": "All in one class for setting up a PuppetDB instance. See README.md for more\ndetails.",
"examples": [],
"file": "manifests/init.pp",
"line": 3,
"name": "puppetdb",
"parameters": {
@HAIL9000
HAIL9000 / Strings 0.3.1
Created March 10, 2016 04:16
Running Strings 0.3.1 against puppet core
[error]: Unhandled exception in PuppetX::PuppetLabs::Strings::YARD::Handlers::PuppetProviderHandler:
[error]: in `lib/puppet/type/file/type.rb`:2:
2: Puppet::Type.type(:file).newproperty(:type) do
[error]: NoMethodError: undefined method `+' for nil:NilClass
[error]: Stack trace:
/etc/puppetlabs/code/modules/strings/lib/puppet_x/puppetlabs/strings/yard/handlers/provider_handler.rb:26:in `block in <class:PuppetProviderHandler>'
/usr/local/share/gems/gems/yard-0.8.7.6/lib/yard/handlers/processor.rb:114:in `block (2 levels) in process'
/usr/local/share/gems/gems/yard-0.8.7.6/lib/yard/handlers/processor.rb:112:in `each'
@HAIL9000
HAIL9000 / Vanilla YARD
Created March 10, 2016 04:15
Running just YARD against puppet core
[warn]: @param tag has unknown parameter name: name
in file `lib/puppet/util.rb' near line 105
[warn]: @param tag has unknown parameter name: name
in file `lib/puppet/util.rb' near line 105
[warn]: @param tag has unknown parameter name: name
in file `lib/puppet/settings.rb' near line 403
[warn]: @param tag has duplicate parameter name: type
in file `lib/puppet/resource.rb' near line 195
[warn]: @param tag has duplicate parameter name: type
in file `lib/puppet/resource.rb' near line 195
@HAIL9000
HAIL9000 / Strings 0.2.0
Created March 10, 2016 04:12
Running against core puppet with strings 0.2.0
[warn]: @param tag has unknown parameter name: name
in file `lib/puppet/util.rb' near line 105
[warn]: @param tag has unknown parameter name: name
in file `lib/puppet/util.rb' near line 105
[warn]: @param tag has unknown parameter name: name
in file `lib/puppet/settings.rb' near line 403
[warn]: @param tag has duplicate parameter name: type
in file `lib/puppet/resource.rb' near line 195
[warn]: @param tag has duplicate parameter name: type
in file `lib/puppet/resource.rb' near line 195
@HAIL9000
HAIL9000 / Ubuntu 14.04
Created October 30, 2014 22:50
Ubuntu 14.04
> facter -v
2.3.0
> facter
architecture => amd64
bios_release_date => 07/30/2013
bios_vendor => Phoenix Technologies LTD
bios_version => 6.00
blockdevice_fd0_size => 0
blockdevice_sda_model => Virtual disk
@HAIL9000
HAIL9000 / Ubuntu 12.04
Last active August 29, 2015 14:08
Ubuntu 12.04
> facter -v
2.3.0
> facter
architecture => amd64
bios_release_date => 07/30/2013
bios_vendor => Phoenix Technologies LTD
bios_version => 6.00
blockdevice_fd0_size => 0
blockdevice_sda_model => Virtual disk
@HAIL9000
HAIL9000 / Ubuntu 10.04
Last active August 29, 2015 14:08
Ubuntu 10.04
> facter -v
2.3.0
> facter
architecture => amd64
bios_release_date => 07/30/2013
bios_vendor => Phoenix Technologies LTD
bios_version => 6.00
blockdevice_fd0_size => 0
blockdevice_sda_model => Virtual disk