on your EC2 instance, install REX-Ray using:
$ curl -sSL https://dl.bintray.com/emccode/rexray/install | sh -s -- stable 0.3.3
REX-Ray is installed. Create a new configuration file and add the following contents:
$ sudo vi /etc/rexray/config.yml
on your EC2 instance, install REX-Ray using:
$ curl -sSL https://dl.bintray.com/emccode/rexray/install | sh -s -- stable 0.3.3
REX-Ray is installed. Create a new configuration file and add the following contents:
$ sudo vi /etc/rexray/config.yml
| /** | |
| * Virtual Contact Sensor Device Type - VirtualContactSensor.device.groovy | |
| * | |
| * Copyright 2014 Daniel Ogorchock | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
| * in compliance with the License. You may obtain a copy of the License at: | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * |
| /** | |
| * ST_Anything Doors Multiplexer - ST_Anything_Doors_Multiplexer.smartapp.groovy | |
| * | |
| * Copyright 2015 Daniel Ogorchock | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
| * in compliance with the License. You may obtain a copy of the License at: | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * |
| /** | |
| * ST_Anything_Doors Device Type - ST_Anything_Doors.device.groovy | |
| * | |
| * Copyright 2015 Daniel Ogorchock | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
| * in compliance with the License. You may obtain a copy of the License at: | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * |
| //****************************************************************************************** | |
| // File: ST_Anything_Doors.ino | |
| // Authors: Dan G Ogorchock & Daniel J Ogorchock (Father and Son) | |
| // | |
| // Summary: This Arduino Sketch, along with the ST_Anything library and the revised SmartThings | |
| // library, demonstrates the ability of one Arduino + SmartThings Shield to | |
| // implement a multi input/output custom device for integration into SmartThings. | |
| // The ST_Anything library takes care of all of the work to schedule device updates | |
| // as well as all communications with the SmartThings Shield. | |
| // |
| /** | |
| * ST_Anything_Doors Device Type - ST_Anything_Doors.device.groovy | |
| * | |
| * Copyright 2015 Daniel Ogorchock | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
| * in compliance with the License. You may obtain a copy of the License at: | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * |
| #!/bin/bash | |
| # Read more about REX-Ray storage persistance: | |
| # https://github.com/emccode/rexray | |
| # change the filter and grep to anything you want to search for. | |
| # This example shows searching for the name of machines beginning with "dev" | |
| # You can sort by driver or swarm instance, just change the awk column as well | |
| ALLHOSTS=$(docker-machine ls --filter name=dev* | grep dev* | awk '{print $1}') |
| language: node_js | |
| node_js: | |
| - "0.11" | |
| # whitelist | |
| branches: | |
| only: | |
| - master | |
| env: | |
| global: | |
| - secure: h6i/QFDLprVJe7u/ZT... |
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "time" | |
| ) | |
| func random(min, max int) int { | |
| rand.Seed(time.Now().Unix()) |