I hereby claim:
- I am micheleorsi on github.
- I am micheleorsi (https://keybase.io/micheleorsi) on keybase.
- I have a public key whose fingerprint is F846 98A8 2306 114C C604 7478 69AB 77A6 10F6 6B7F
To claim this, I am signing this object:
# set public key | |
# change timezone to PST (sudo dpkg-reconfigure tzdata) | |
# update VM | |
$ sudo apt-get update && sudo apt-get upgrade | |
# install java | |
$ sudo apt-get -y install openjdk-7-jdk | |
$ java -version |
# run every 10 minutes | |
*/10 * * * * $GAE_PATH/appcfg.py -A <application-name> -V <release-name> -M <module> --oauth2 --include_all --append -n 1 request_logs $LOG_PATH`date +\%y-\%m-\%d`-log.log |
I hereby claim:
To claim this, I am signing this object:
# once a day at 23:50 | |
50 23 * * * <command> | |
# every 2 hours at 00 minutes | |
0 */2 * * * <command> | |
# every hour at 29 and 59 minutes (that means every half an hour) | |
29,59 * * * * <command> | |
# every hour at 59 minutes |
# 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 |
[global] | |
workgroup = WORKGROUP | |
server string = %h server | |
wins support = yes |
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]; |
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