First the WiringPi library:
git clone git://git.drogon.net/wiringPi
cd wiringPi
<settings> | |
<profiles> | |
<profile> | |
<id>sonar</id> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> | |
<properties> | |
<!-- Example for MySQL--> | |
<sonar.jdbc.url> |
<?xml version="1.0"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.company.yourproject</groupId> | |
<artifactId>YOURPROJECT</artifactId> | |
<version>1.0</version> | |
<packaging>pom</packaging> | |
<name>YOUR PROJECT</name> | |
<build> | |
<sourceDirectory>grails-app</sourceDirectory> |
upstream sonar { | |
server 127.0.0.1:9000 fail_timeout=0; | |
} | |
server { | |
access_log /opt/boxen/log/nginx/sonar.access.log; | |
error_log /opt/boxen/log/nginx/sonar.error.log; | |
listen 80; | |
server_name sonar.dev; |
upstream jenkins { | |
server 127.0.0.1:9000 fail_timeout=0; | |
} | |
server { | |
access_log /opt/boxen/log/jenkins/sonar.access.log; | |
error_log /opt/boxen/log/jenkins/sonar.error.log; | |
listen 80; | |
server_name jenkins.dev; |
# A sample sonar-runner.properties file to test Groovy and Javascript in a Grails project | |
# Note that the blank projectBaseDir properties are necessary otherwise Sonar infers | |
# the directory name from the module name, which doesn't apply here. | |
# | |
# Author: Ryan Brooks ([email protected]) | |
# required metadata | |
sonar.projectKey=com.example | |
sonar.projectName=My Project | |
sonar.projectVersion=0.1 |
use warnings; | |
use strict; | |
use LWP::UserAgent; | |
use File::Basename; | |
use Time::HiRes qw(usleep); | |
use CGI qw/escape/; | |
# Create an LWP User-Agent object for sending HTTP requests. | |
my $ua = LWP::UserAgent->new; |
auto lo | |
iface lo inet loopback | |
iface eth0 inet static | |
address 192.168.0.222 | |
netmask 255.255.255.0 | |
gateway 192.168.0.1 | |
broadcast 192.168.0.1 | |
dns-nameservers 192.168.0.1 |
# Update the time from the RTC hourly | |
0 * * * * hwclock -s | |
# Post sensor readings to emoncms | |
* * * * * /root/ryan_scripts/tempToEmon.sh > /dev/null | |
* * * * * /root/ryan_scripts/heatingStateToEmon.sh > /dev/null | |
# Every morning, 6:30 to 7:00 | |
30 6 * * * /root/ryan_scripts/switchHeatingOn.sh > /dev/null | |
0 7 * * * /root/ryan_scripts/switchHeatingOff.sh > /dev/null |
################################################# | |
# rsnapshot.conf - rsnapshot configuration file # | |
################################################# | |
# # | |
# PLEASE BE AWARE OF THE FOLLOWING RULES: # | |
# # | |
# This file requires tabs between elements # | |
# # | |
# Directories require a trailing slash: # | |
# right: /home/ # |