Skip to content

Instantly share code, notes, and snippets.

Snippit of default.pp:
class { "::mysql::server":
override_options => $mysql_override_options,
}
class { "java":
distribution => "jdk",
version => "latest",
}
class { "::mysql::bindings":
cat | puppet apply
notify { [ '/path/file1', '/path/file2', ]:
message => "$name - $title - $value - $fubar",
}
^D
Output:
Notice: Compiled catalog for sandbox.hortonworks.com in environment production in 0.05 seconds
Notice: main - main - -
Instead of this:
define set_fix {
file_line { "$name":
path => "$name",
line => 'JAVA_HOME=${JAVA_HOME:-/usr/jdk64/jdk1.6.0_31}',
match => 'JAVA_HOME=.*/jdk1\.6\.0.*',
ensure => "present",
}
}
#test.sh
#!/bin/bash
echo FUBAR is $FUBAR
. export_fubar.sh
echo FUBAR is $FUBAR
#export_fubar.sh
#!/bin/bash
2014-02-14 15:10:11,184 INFO [org.pentaho.di] 2014/02/14 15:10:11 - General - Logging plugin type found with ID: CheckpointLogTable
2014-02-14 15:10:23,413 INFO [org.pentaho.di] 2014/02/14 15:10:23 - RepositoriesMeta - Reading repositories XML file: FromInputStream
2014-02-14 15:10:23,447 INFO [org.pentaho.di] 2014/02/14 15:10:23 - General - Creating repository meta store interface
2014-02-14 15:10:23,502 INFO [org.pentaho.di] 2014/02/14 15:10:23 - General - Created default namespace "pentaho"
2014-02-14 15:10:23,502 INFO [org.pentaho.di] 2014/02/14 15:10:23 - General - Connected to the enterprise repository
2014-02-14 15:10:25,696 ERROR [org.pentaho.platform.util.logging.Logger] Error: Pentaho
2014-02-14 15:10:25,697 ERROR [org.pentaho.platform.util.logging.Logger] misc-org.pentaho.platform.plugin.services.importer.ArchiveLoader: Could not import: General Error : {0}
org.pentaho.platform.plugin.services.importer.PlatformImportException: Could not import: General Error : {0}
at org.pentaho.platform.plug
> show dbs
foodmart 0.453125GB
local 0.078125GB
test (empty)
> use foodmart
switched to db foodmart
> show collections
category
currency
customer
uniqueMembers="true" means that there will never be another member with the same value at this level.
Imagine a People dimension filled with only people from the USA.
We'll have a couple of different levels, completely weird and made up. :)
Country of Birth
Gender
Surname
Given Name
Social Security Number
Attitude (Either Optimist or Pessimist)
// Import the interface to Tessel hardware
var tessel = require('tessel');
// Set the led pins as outputs with initial states
// Truthy initial state sets the pin high
// Falsy sets it low.
var led1 = tessel.led[0].output(0);
var led2 = tessel.led[1].output(0);

Keybase proof

I hereby claim:

  • I am deinspanjer on github.
  • I am deinspanjer (https://keybase.io/deinspanjer) on keybase.
  • I have a public key whose fingerprint is 1080 6154 9E69 6FA5 D351 A532 9001 A7B5 6F57 1C60

To claim this, I am signing this object:

---
build_version : '5.4.0.0'
build_arch : 'x64'
build_exe : 'bin'
build_name : 'pentaho-business-analytics'
ci_base_url : 'http://build/hosted'
ci_index_page : "%{hiera('ci_base_url')}/%{hiera('build_version')}/index.html"
build_number : "%{most_recent_build_number('%{hiera("ci_index_page")}')}"