Skip to content

Instantly share code, notes, and snippets.

View celaus's full-sized avatar
🎯
Focusing

Claus Matzinger celaus

🎯
Focusing
View GitHub Profile
[Unit]
Description=crate
After=docker.service
Requires=docker.service
[Service]
TimeoutSec=3600
ExecStart=/bin/bash -c '\
HOSTS=$(fleetctl list-machines --fields=ip --no-legend \
@celaus
celaus / ga.patch
Last active February 2, 2016 10:59
diff --git a/plugins/crate-admin/_site/index.html b/plugins/crate-admin/_site/index.html
index e930ce9..6025a44 100644
--- a/plugins/crate-admin/_site/index.html
+++ b/plugins/crate-admin/_site/index.html
@@ -44,6 +44,26 @@
<div id="page-viewport" ng-view=""></div>
</div>
</div>
+ <!-- Begin Analytics-->
+<!-- Google Analytics Start -->
--- index.orig.html 2016-02-01 16:41:32.000000000 +0100
+++ index.html 2016-02-01 16:49:34.000000000 +0100
@@ -44,6 +44,26 @@
<div id="page-viewport" ng-view=""></div>
</div>
</div>
+ <!-- Begin Analytics-->
+<!-- Google Analytics Start -->
+<script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
<meta charset="utf-8">
@celaus
celaus / crate-sysinit-debian.sh
Last active September 30, 2015 09:43
Sysinit script for a default debian 7 installation.
#! /bin/bash
### BEGIN INIT INFO
# Provides: crate
# Required-Start: $network $remote_fs $named
# Required-Stop: $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts and stops Crate database server.
# Description: Crate - The distributed database for the age of Docker
### END INIT INFO
@celaus
celaus / AuthenticationConfiguration
Last active August 29, 2015 14:22
JWT-authentication in a proper Authentication HTTP header for Spray (http://spray.io/).
package service.common.config
/**
* Required configuration properties for authentication.
*/
trait AuthenticationConfiguration {
/**
* The secret for signing tokens.