Skip to content

Instantly share code, notes, and snippets.

António P. P. Almeida perusio

  • Perusio LLC & UP42
  • Berlin, Germany
Block or report user

Report or block perusio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View lake_konstanz_aoi.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@perusio
perusio / gist:1724301
Created Feb 2, 2012
Workaround in PHP cURL for the 100-continue expectation
View gist:1724301
<?php
// cURL obeys the RFCs as it should. Meaning that for a HTTP/1.1 backend if the POST size is above 1024 bytes
// cURL sends a 'Expect: 100-continue' header. The server acknowledges and sends back the '100' status code.
// cuRL then sends the request body. This is proper behaviour. Nginx supports this header.
// This allows to work around servers that do not support that header.
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
// We're emptying the 'Expect' header, saying to the server: please accept the body right now.
// Read here: http://pilif.github.com/2007/02/the-return-of-except-100-continue/
@perusio
perusio / geostore-found-spot-AU.json
Created Sep 23, 2019
Geostore found image not available through OneAtlas API. Australia.
View geostore-found-spot-AU.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@perusio
perusio / job_inputs.json
Created Sep 19, 2019
UP42: Re-using a previously downloaded image
View job_inputs.json
{
"tiling:1": {
"tile_width": 768,
"tile_height": 768,
"match_extents": false,
"output_prefix": "",
"augmentation_factor": 1,
"discard_empty_tiles": true
},
"data-conversion:1": {
@perusio
perusio / data.json
Created Sep 19, 2019
UP42: GeoJSON from downloaded image with order ID.
View data.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@perusio
perusio / data.json
Created Sep 19, 2019
UP42: GeoJSON TestQuery output with price estimation
View data.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View data.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@perusio
perusio / first_workflow_aoi.json
Created Aug 29, 2019
UP42 Getting started: Running your first workflow AOI.
View first_workflow_aoi.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@perusio
perusio / first_job_run.sh
Last active Aug 29, 2019
UP42 API: Script to run your fist job via the API.
View first_job_run.sh
#!/bin/bash
# first_job_run.sh --- Simple bash script to run a first job via the
# UP42 API.
# Copyright (C) 2019 UP42 GmbH
# Author: António P. P. Almeida <antonio.almeida@up42.com>
# Permission is hereby granted, free of charge, to any person obtaining a
@perusio
perusio / demo_project_aoi.json
Created Aug 27, 2019
UP42 demo project AOI
View demo_project_aoi.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.