Skip to content

Instantly share code, notes, and snippets.

View xeraa's full-sized avatar
🥑
Developer

Philipp Krenn xeraa

🥑
Developer
View GitHub Profile
@xeraa
xeraa / pom.xml
Created February 14, 2012 00:22
Include Ubercharts into your own pom.xml (includes only relevant parts)
<repositories>
<repository>
<id>xeraa-cloudbees-release</id>
<name>Cloudbees releases of xeraa</name>
<url>dav:https://repository-xeraa.forge.cloudbees.com/release/</url>
<releases>
<enabled>true</enabled>
</releases>
</repository>
<repository>
@xeraa
xeraa / pom.xml
Created February 14, 2012 00:40
Example of how to include your own Maven repository into your pom.xml (includes only relevant parts)
<repositories>
<repository>
<id>[ID]</id>
<name>[Name]</name>
<url>[Protocol, server URL, and path to the repository]</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
@xeraa
xeraa / cloudbees-web.xml
Created February 15, 2012 01:54
Simple example configuration for Cloudbees
<?xml version="1.0"?>
<cloudbees-web-app xmlns="http://www.cloudbees.com/xml/webapp/1">
<!-- For details see http://wiki.cloudbees.com/bin/view/RUN/CloudBeesWebXml -->
<appid>xeraa/ubercharts</appid>
<context-param>
<param-name>configuration</param-name>
<param-value>deployment</param-value>
@xeraa
xeraa / gist:1856571
Created February 18, 2012 00:43
Simple example on the usage of Highcharts
ISeries a = new NumberSeries("Series A").setData(new Number[]{7.0, 6.9, 9.5, 10.2, 12.2, 13.9});
ISeries b = new NumberSeries("Series B").setData(new Number[]{1.0, 3.5, 5.5, 1.22, 4.2, 1.9});
Highchart highchart = new Highchart(new LineChart(), a, b);
highchart.setTitle(new ChartTitle("LineChart"));
highchart.setSubtitle(new Subtitle("Mixed Series"));
highchart.getXAxis().setTitle(new AxisTitle("Time"));
highchart.getYAxis().setTitle(new AxisTitle("Amount"));
highchart.getChart().setZoomType(ZoomType.x);
@xeraa
xeraa / gist:4504389
Last active December 10, 2015 22:48
Using JCE in Cloudbee's Jenkins Builds

Adding JCE Support to OpenJDK Builds in Cloudbee's Jenkins

  1. Download the JCE extension from http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html
  2. Upload the files inside the archive to your private repository on Cloudbees forge ( /private/jce/ ) so that you have /private/jce/local_policy.jar,...
  3. On the Jenkins configuration page ([https://YourAccountName.ci.cloudbees.com/configure](https://.ci.cloudbees.com/configure) (use your real account name / subdomain) create a new JDK Installation and set JAVA_HOME to $HOME/openjdk6.unlimited (or any other version you want to use).
  4. Add a Pre Step and add the following shell script. First, it copies the JDK version you are using to your home folder. Second, it patches your copy - this should copy local_policy.jar and US_export_policy.jar. Be sure to use your real account name / subdomain.

if

@xeraa
xeraa / gist:5259749
Created March 28, 2013 01:31
First ViennaDB Meetup
#!/bin/bash
# Check if our important or publicly communicated URLs are available
set -e
URLS=(
"http://test.com"
"http://test.com/foo"
)
error_page 404 /assets/error-404.html;
error_page 500 /assets/error-500.html;
location / {
try_files $uri @silverstripe;
}
location @silverstripe {
fastcgi_keep_conn on;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
### Keybase proof
I hereby claim:
* I am xeraa on github.
* I am xeraa (https://keybase.io/xeraa) on keybase.
* I have a public key whose fingerprint is 9254 E53A BB94 A09A A698 522D A938 3B28 6A71 0E7D
To claim this, I am signing this object:
@xeraa
xeraa / silverstripe-nginx
Created October 3, 2014 12:49
nginx configuration for SilverStripe 3
error_page 404 /assets/error-404.html;
error_page 500 /assets/error-500.html;
location / {
try_files $uri @silverstripe;
}
location @silverstripe {
fastcgi_keep_conn on;
fastcgi_split_path_info ^(.+\.php)(/.+)$;