This is a list of disk images to flash on SD card in order to natively run docker on your Raspberry: hypriot download page:
From command line:
flash --hostname <host-name> <url-to-download-the-os-from>
# Remove all stopped containers. | |
docker rm $(docker ps -a -q) | |
# Remove all untagged images | |
docker rmi $(docker images | grep "^<none>" | awk "{print $3}") | |
From emergency-unit (arduino & sensors) | |
GET | |
http://sample-env-kmuwwhu5qf.elasticbeanstalk.com/rest/units/<id-device>?accelerometrox=123&accelerometroy=124&accelerometroz=125 | |
From windows app: | |
POST | |
http://sample-env-kmuwwhu5qf.elasticbeanstalk.com/rest/reviews/<type> | |
POST | |
http://sample-env-kmuwwhu5qf.elasticbeanstalk.com/rest/hosting/people |
SELECT | |
custom_channel_id, | |
SUM(earnings) AS earnings | |
FROM | |
[google.com:adsense-reports:Reports.DailyCustomChannelReport] | |
GROUP BY | |
custom_channel_id | |
ORDER BY | |
earnings DESC | |
LIMIT |
#!/bin/bash | |
# SETTINGS | |
# You should specify here your worker name | |
USERNAME="username" | |
# You should specify here your worker password | |
PASSWORD="password" | |
# You should specify here how long each pool should run for | |
TIMEOUT="6h" | |
# The path where your miner is located | |
MINER_PATH="./minerd" |
This is a list of disk images to flash on SD card in order to natively run docker on your Raspberry: hypriot download page:
From command line:
flash --hostname <host-name> <url-to-download-the-os-from>
export JAVA_HOME="$(/usr/libexec/java_home -v 1.7)" | |
export HOMEBREW_GITHUB_API_TOKEN=<token> | |
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin | |
export ANDROID_HOME=/usr/local/opt/android-sdk | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
# Amazon AWS | |
#export AWS_ACCESS_KEY="<key>" |
input { | |
file { | |
type => "gae" | |
path => ["/home/ubuntu/gae_logs/**/*log"] | |
tags => ["some","tags"] | |
stat_interval => 30 | |
discover_interval => 180 | |
} | |
} |
FROM ubuntu:xenial | |
MAINTAINER "Michele Orsi <me@micheleorsi.it>" | |
# ansible | |
RUN apt-get update | |
RUN apt-get install -y software-properties-common | |
RUN apt-add-repository ppa:ansible/ansible | |
RUN apt-get update | |
RUN apt-get install -y ansible |
import numpy as np | |
import pandas as pd | |
from pandas_datareader import data as web | |
from sklearn import linear_model | |
class ScikitBacktest(object): | |
def __init__(self,sys): | |
self.lags = 5 | |
self.symbol = sys | |
self.get_data() |
#!/bin/bash | |
# Check args | |
if [ $# \< 2 ]; then | |
echo "Usage: $(basename $0 $1) <file> <cache-millisec>"; | |
exit 1; | |
fi | |
#file name | |
fileName=""; |