Skip to content

Instantly share code, notes, and snippets.

View cwarden's full-sized avatar

Christian G. Warden cwarden

View GitHub Profile
# mysql::client would provide access to a database for mysql::record
mysql::client { 'my_database':
host => 'example.com',
database => 'database_name',
username => 'user',
password => 'password'
}
# this would ensure that the query
# SELECT field_1, field2 FROM my_database.my_table WHERE table_id = 'my key'
$var = [ { name => 'x' } ]
file { '/tmp/test-merge.txt':
content => inline_template('<% scope.lookupvar("::var").each do |h| %>Name: <%= h["name"] %> <% end %>')
}
class hasharraytest {
Class['hasharraytest'] -> File['/tmp/test-merge.txt']
$::var += [ { name => 'y' } ]
}
include hasharraytest
@cwarden
cwarden / gist:1424321
Created December 2, 2011 18:35
chained resource collections example
package { "libc6":
ensure => "present",
} -> file {
"/tmp/file1":
content => 'file1';
"/tmp/file2":
content => 'file2';
}
@cwarden
cwarden / build-pentaho-debs.sh
Created December 2, 2011 02:25
Create Pentaho BI Server Debian Package Using fpm
fpm --maintainer 'Christian G. Warden <cwarden@xerus.org>' \
--description 'Pentaho BI Server Community Edition' \
--url http://community.pentaho.com/projects/bi_platform/ \
--depends java6-runtime \
--name pentaho-bi-server \
--version 3.10.0 \
--architecture all \
--exclude /opt/pentaho/biserver-ce/pentaho-solutions/system/saiku \
-s dir -t deb \
/opt/pentaho/biserver-ce
...
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: pentaho-reporting-engine#pentaho-reporting-engine-classic-core-platform-plugin;4.1.0-GA: not found
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
BUILD FAILED
init:
[mkdir] Created dir: /home/cwarden/git/rollyourowncbf/target-build/bi-platform-ui-foundation/dist
[mkdir] Created dir: /home/cwarden/git/rollyourowncbf/target-build/bi-platform-ui-foundation/lib
[mkdir] Created dir: /home/cwarden/git/rollyourowncbf/target-build/bi-platform-ui-foundation/dev-lib
[mkdir] Created dir: /home/cwarden/git/rollyourowncbf/target-build/bi-platform-ui-foundation/test-lib
compile.pre:
compile.compile:
[javac] /home/cwarden/git/rollyourowncbf/target-build/bi-platform-ui-foundation/build-res/subfloor.xml:1046: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
@cwarden
cwarden / list-proposed-additions.txt
Created November 23, 2011 16:26
Vanligt People are People rules
Helio Sequence
Rilo Kiley
Great Depression
Turnerjoy
The Ruse
Elefant
@cwarden
cwarden / .htaccess
Created November 19, 2011 20:28
ThinkUp within WordPress docroot example
# In ThinkUp/webapp/config.inc.php, set the site_root_path:
# $THINKUP_CFG['site_root_path'] = '/thinkup/';
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# ThinkUp
RewriteRule ^thinkup$ /thinkup/ [L,R=301]
RewriteRule ^thinkup/(.*)$ /ThinkUp/webapp/$1 [L]
--title wmii: window manager improved 2
--date December 12, 2007
--author Christian G. Warden <cwarden@xerus.org>
--newpage Features
--heading Features
* Managed and Floating modes
---
- Max