Skip to content

Instantly share code, notes, and snippets.

Avatar

André Fernando Araújo de Carvalho andre-carvalho

View GitHub Profile
@andre-carvalho
andre-carvalho / Dockerfile.ta.monitor
Created Oct 14, 2020
Dockerfile to create an image for the TerraAmazon-Monitor application
View Dockerfile.ta.monitor
FROM node:8.11.4
RUN npm install pm2 -g
WORKDIR /data
EXPOSE 36000-36010
VOLUME ["/data"]
@andre-carvalho
andre-carvalho / download-deter-data.py
Last active Sep 15, 2020
A simple example to download geography data of DETER Amazon project via WFS service using authentication.
View download-deter-data.py
"""
Download WFS
Download Shapefile DETER
Copyright 2020 TerraBrasilis
Usage:
download-deter-data.py
Options:
@andre-carvalho
andre-carvalho / nginx-tuning.md
Created Sep 20, 2019 — forked from denji/nginx-tuning.md
NGINX tuning for best performance
View nginx-tuning.md

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@andre-carvalho
andre-carvalho / zonal_stats.py
Created Apr 18, 2018 — forked from perrygeo/zonal_stats.py
Python implementation of zonal statistics function. Optimized for dense polygon layers, uses numpy, GDAL and OGR to rival the speed of starspan.
View zonal_stats.py
"""
Zonal Statistics
Vector-Raster Analysis
Copyright 2013 Matthew Perry
Usage:
zonal_stats.py VECTOR RASTER
zonal_stats.py -h | --help
zonal_stats.py --version
@andre-carvalho
andre-carvalho / README-Template.md
Created Nov 23, 2017 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You can’t perform that action at this time.