This is what we did to setup a few dashboards at platanus
- Raspberry Pi
- Dashing Service
- Wifi stick (optional)
This is what we did to setup a few dashboards at platanus
.DS_Store | |
Gemfile.lock | |
*.pem | |
node.json | |
tmp/* | |
!tmp/.gitignore |
<!-- the env variables are controlled by Chef and passed in via -D on the java command-line --> | |
<!-- This is using the appender here: https://github.com/t0xa/gelfj --> | |
<appender name="graylog2" class="org.graylog2.log.GelfAppender"> | |
<param name="graylogHost" value="${graylog.server}"/> | |
<param name="originHost" value="${graylog.origin}"/> | |
<param name="extractStacktrace" value="true"/> | |
<param name="addExtendedInformation" value="true"/> | |
<!-- The _web part is because a given app has multiple components --> | |
<!-- This app might have a _web as well as an _batch component --> | |
<param name="facility" value="${graylog.facility}_web"/> |
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my @legal_headers = qw( Accept-Language Bcc Cc Comments Content-Type Content-Transfer-Encoding Content-ID Content-Description Content-Disposition Content-Language Date DKIM-Signature DomainKey-Signature From In-Reply-To Keywords List-Archive List-Help List-Id List-Owner List-Post List-Subscribe List-Unsubscribe Message-Id MIME-Version Received References Reply-To Return-Path Sender Subject Thread-Index Thread-Topic To User-Agent ); | |
my %legal_headers; | |
@legal_headers{@legal_headers} = (1) x @legal_headers; |
# .chef/knife.rb | |
# SEE: http://wiki.opscode.com/display/chef/Troubleshooting+and+Technical+FAQ | |
# set some sensible defaults | |
current_dir = File.dirname(__FILE__) | |
user = ENV['OPSCODE_USER'] || ENV['USER'] | |
log_level :debug | |
log_location STDOUT | |
node_name `hostname` | |
client_key '' |
#! ruby19 | |
require 'pp' | |
Converter = Struct.new :root, :converted do | |
def convert | |
@stack = [] | |
self.converted = {} | |
dfs(root) |
# Recursively diff two hashes, showing only the differing values. | |
# By Henrik Nyh <http://henrik.nyh.se> 2009-07-14 under the MIT license. | |
# | |
# Example: | |
# | |
# a = { | |
# "same" => "same", | |
# "diff" => "a", | |
# "only a" => "a", | |
# "nest" => { |
#!/usr/bin/env ruby | |
# -*- ruby -*- | |
`git checkout opscode/master` | |
Dir.glob("*").select {|x| FileTest.directory?(x) }.each do |path| | |
`git br -D #{path}` | |
`git checkout -b #{path} opscode/master` | |
`git filter-branch --tree-filter \ | |
'rm -rf #{Dir.glob("*").reject {|x| x == path }.join(" ")}' --prune-empty HEAD` | |
`rm -rf .git/refs/original` |