Ubuntu (Because Ubuntu is life)
Install Current Version of Influx DB As of writing... 0.9 https://influxdb.com/download/index.html
wget https://s3.amazonaws.com/influxdb/influxdb_latest_amd64.deb
sudo dpkg -i influxdb_latest_amd64.deb
Ubuntu (Because Ubuntu is life)
Install Current Version of Influx DB As of writing... 0.9 https://influxdb.com/download/index.html
wget https://s3.amazonaws.com/influxdb/influxdb_latest_amd64.deb
sudo dpkg -i influxdb_latest_amd64.deb
| apt-get install -y zip unzip && \ | |
| curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" && \ | |
| unzip awscli-bundle.zip && \ | |
| ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws |
Get and Install Latest Version of InfluxDb
wget http://influxdb.s3.amazonaws.com/influxdb_0.9.1_amd64.deb
sudo dpkg -i influxdb_0.9.1_amd64.debAdd influx to path, because package install doesn't do it for some stupid reason
PATH=$PATH:/opt/influxdb| # coding: utf-8 | |
| require 'sinatra' | |
| require 'sinatra-websocket' | |
| require 'serialport' | |
| set :server, 'thin' | |
| set :sockets, [] | |
| ## Setup to read from your device via serial port | |
| ser = SerialPort.new("/dev/your_device", 9600, 8, 1, SerialPort::NONE) |
| <?php | |
| class RecipeApi extends \Restful { | |
| // /** | |
| // * Don't wrap output in `{"success":bool,"data":"..."}`. | |
| // */ | |
| var $wrap = false; | |
| // /** | |
| // * Create a new recipe or ingredient. |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env ruby | |
| require 'json' | |
| require 'algoliasearch' | |
| # Copy the algolia from prior commit to a tmp file for comparison | |
| `git show $(git rev-parse HEAD~1):algolia.json > old-algolia.json` | |
| current_algolia = JSON.parse(File.read('algolia.json')) | |
| old_algolia = JSON.parse(File.read('old-algolia.json')) |
| const http = require('http'); | |
| const https = require('https'); | |
| var webhookURLs = { | |
| // Every minute | |
| '* * * * *': [ | |
| 'http://requestb.in/testing-here' | |
| ], | |
| // Every half hour |
| # serverless.yml | |
| service: | |
| name: myService | |
| awsKmsKeyArn: arn:aws:kms:us-east-1:XXXXXX:key/some-hash # Optional KMS key arn which will be used for encryption for all functions | |
| frameworkVersion: ">=1.0.0 <2.0.0" | |
| provider: | |
| name: aws |