What is tiller? here
Useful tutorials:
#!/usr/bin/env ruby | |
require 'rubygems' if RUBY_VERSION < '1.9.0' | |
require 'sensu-handler' | |
require 'hipchat' | |
require 'timeout' | |
module Sensu::Extension | |
class Hipchat < Handler # Sub-class the appropriate extension type |
#/usr/bin/env ruby | |
# Sends events to hipchat for wonderful chatty notifications | |
# | |
# This extension requires the hipchat gem | |
# | |
# The reason I wrote this instead of using the normal hipchat handler, is that with Flapjack | |
# all events are handled unless you do crazy filtering stuff. Also with a large number of events | |
# and checks the sensu server can get overloaded with forking stuff. So anyway, hipchat extension :) | |
# |
Elastic Search on ec2 | |
ami: Ubuntu 11.10 Oneiric EBS boot Canonical ubuntu@ ami-a0ba68c9 | |
apt-get install: | |
openjdk-7-jdk | |
xfsprogs | |
htop | |
create new ebs (20gb), mount as sdf | |
mkfs.xfs /dev/xvdf |
LoadPlugin exec | |
<Plugin exec> | |
Exec "nobody:nogroup" "/path/to/collectd-redis.rb" "127.0.0.1" "6379" | |
</Plugin> |
config: | |
FunctionName: lambda-python | |
Handler: index.handler | |
Runtime: nodejs | |
Description: Python hello world from Lambda | |
install: make |
/var/lib/docker/containers/*/*-json.log { | |
dateext | |
daily | |
rotate 365 | |
compress | |
delaycompress | |
missingok | |
} |
properties([ | |
[$class : 'DockerJobProperty', | |
cleanImages : true, | |
dockerJobTemplate: [$class : 'DockerJobTemplateProperty', | |
cloudname: 'DockerHost-9', | |
// Supports other properties from https://git.io/vM5wf | |
template : [$class : 'DockerTemplate', | |
labelString : 'my-worker-label', | |
instanceCapStr : '4', | |
mode : 'EXCLUSIVE', |
What is tiller? here
Useful tutorials:
#!/bin/bash | |
if [[ -z $(grep dockerhost /etc/hosts) ]] | |
then | |
echo `/sbin/ip route|awk '/default/ { print $3 }'` dockerhost >> /etc/hosts | |
fi |
The following describes the necessary Functions and Procedures to create a small "Sleep Timer Library" for OpenHAB (Don't know, if Library is the correct title, but you know what I mean ;-)). Using this approach, it's easy for you to create your own custom sleep timers.
NOTE: This stuff doesn't depend on any add-on.
The usage example does not cover initialization or recovery on system start and demonstrates a VERY BASIC example. But it's not very hard for you to integrate and customize it to your needs ;-)