Skip to content

Instantly share code, notes, and snippets.

View buggtb's full-sized avatar
🎯
Urgh..Why can't I set all my statuses in one place?

Tom Barber buggtb

🎯
Urgh..Why can't I set all my statuses in one place?
View GitHub Profile
11:35 Guest_94447| when Allah wants us to stand we stand
11:35 Guest_94447| when Allah wants us to sit we sit
11:36 Guest_94447| i am not doing Allah is doing
11:36 Guest_94447| you are not doing Allah is doing
11:36 Guest_94447| atom bomb is not doing Allah is doing
11:36 Guest_94447| rice is not doing Allah is doing
11:37 Guest_94447| all creation get together can not create one grain of rice
httpd:
centos: httpd
ubuntu: apache2
windows: apache-httpd
other: apache2
from charms.reactive import when, when_not, set_state
from charmhelpers.fetch.archiveurl import ArchiveUrlFetchHandler
from charmhelpers.core import hookenv
from subprocess import check_call, CalledProcessError, call, check_output, Popen
from charmhelpers.core.hookenv import status_set, log
import os
au = ArchiveUrlFetchHandler()
os.environ["JOSHUA"] = "/opt/joshua-runtime-6.0.5/"
#!/bin/bash
#Upload a Mondrian schema to Saiku and deploy it to the repository.
set -ex
pack_name=`action-get name`
wget http://cs.jhu.edu/~post/language-packs/language-pack-es-en-phrase-2015-03-06.tgz -O /tmp/lpack.tgz
tar xvfz /tmp/lpack.tgz -C /opt/
mv /opt/language-pack-es-en-phrase-2015-03-06 /opt/language-pack/
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Schema metamodelVersion="4.0" name="my-schema">
<Cube name="my-schema">
<Dimensions>
<Dimension name="version" visible="true">
<Attributes>
<Attribute hasHierarchy="false" keyColumn="version" name="version"/>
</Attributes>
</Dimension>
<Dimension name="codename" visible="true">
Manifest-Version: 1.0
Bnd-LastModified: 1461144739758
Build-Jdk: 1.7.0_67
Built-By: bugg
Bundle-Blueprint: OSGI-INF/blueprint/blueprint.xml
Bundle-ManifestVersion: 2
Bundle-Name: saiku-report-viewer-server
Bundle-SymbolicName: saiku-report-viewer-server
Bundle-Version: 0.0.0.development-SNAPSHOT
Created-By: Apache Maven Bundle Plugin
Manifest-Version: 1.0
Bnd-LastModified: 1461143570958
Bundle-ManifestVersion: 2
Bundle-Name: core
Bundle-SymbolicName: core
Bundle-Version: 0
Created-By: 1.8.0_03-Ubuntu (Oracle Corporation)
Export-Package: org.pentaho.reporting.engine.classic.core;uses:="javax.s
wing.table,org.pentaho.reporting.engine.classic.core.event,org.pentaho.
reporting.engine.classic.core.filter,org.pentaho.reporting.engine.class
Manifest-Version: 1.0
Bnd-LastModified: 1461143570958
Bundle-ManifestVersion: 2
Bundle-Name: core
Bundle-SymbolicName: core
Bundle-Version: 0
Created-By: 1.8.0_03-Ubuntu (Oracle Corporation)
Export-Package: org.pentaho.reporting.engine.classic.core;uses:="javax.s
wing.table,org.pentaho.reporting.engine.classic.core.event,org.pentaho.
reporting.engine.classic.core.filter,org.pentaho.reporting.engine.class
WITH
SET [~ROWS_combined_combined.combined] AS
Hierarchize({{[combined].[loc].Members}, {[combined].[pct].Members}})
SET [~ROWS_othercombined_othercombined.otherhierarchy] AS
{[othercombined.otherhierarchy].[ref2].Members}
MEMBER [Measures].[test] as '(([Measures].[count_consultations], [combined].[All combineds], [ccg.H0].[All ccg.H0s]))/(([Measures].[count_consultations], [combined].[All combineds], [othercombined.otherhierarchy].[All othercombined.otherhierarchys]))'
MEMBER [Measures].[other1] as '(([Measures].[count_consultations], [combined].[All combineds], [ccg.H0].[All ccg.H0s]))'
MEMBER [Measures].[other] as '(([Measures].[count_consultations], [combined].[All combineds], [othercombined.otherhierarchy].[All othercombined.otherhierarchys]))'
SELECT
NON EMPTY {[Measures].[count_consultations],[Measures].[test], [Measures].[other1], [Measures].[other]} ON COLUMNS,
WITH
SET [~ROWS] AS
Hierarchize({{[Time].[Years].Members}, {[Time].[Quarters].Members}, {[Time].[Months].Members}})
SELECT
NON EMPTY {[Measures].[Quantity]} ON COLUMNS,
NON EMPTY [~ROWS] ON ROWS
FROM [SteelWheelsSales]