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>
# every couple of days at 2PM run git repo backup | |
0 14 */2 * * /home/git/runBackup.sh |
worker_processes 4; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
## | |
# Basic Settings |
# REQUEST NORMAL LOGS | |
# once a day at 23:50 | |
50 23 * * * <full-path>/appcfg.py -A <gae-application-name> -M <module-name> -V <version-name> --oauth2 --include_all --append -n 1 request_logs <full-path>/`date +\%y-\%m-\%d`.log | |
# REQUEST LOGS WITH WARNING AND SEVERE INFOS | |
# once a day at 23:50 | |
50 23 * * * <full-path>/appcfg.py -A <gae-application-name> -M <module-name> -V <version-name> --oauth2 --include_all --append -n 1 --severity=2 request_logs <full-path>/`date +\%y-\%m-\%d`-full.log |
input { | |
file { | |
type => "gae" | |
path => ["/home/ubuntu/gae_logs/**/*log"] | |
tags => ["some","tags"] | |
stat_interval => 30 | |
discover_interval => 180 | |
} | |
} |
[global] | |
workgroup = WORKGROUP | |
server string = %h server | |
wins support = yes |
# Remove all stopped containers. | |
docker rm $(docker ps -a -q) | |
# Remove all untagged images | |
docker rmi $(docker images | grep "^<none>" | awk "{print $3}") | |
public boolean solution(int[] A) { | |
if(isArrayInNonDecreasingOrder(A)) { | |
return true; | |
} | |
for(int i=0; i<A.length; i++) { | |
for(int j=0; j < A.length; j++) { | |
if(i!=j) { | |
int[] testArray = A.clone(); | |
int tempValue = testArray[i]; | |
testArray[i]=testArray[j]; |
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>
ogr2ogr -f "GeoJSON" california_geojson.json tl_2010_06_zcta510.shp
topojson -o california_topojson.json california_geojson.json
ogr2ogr -f "GeoJSON" working/counties.geo.json assets/ca/counties.shp
ogr2ogr -f "GeoJSON" working/zipcodes.geo.json source/tl_2010_06_zcta510.shp
# merge two shapefils
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() |