Skip to content

Instantly share code, notes, and snippets.

View konstantinos2018's full-sized avatar
🎯
Focusing

Kostas Vlachos konstantinos2018

🎯
Focusing
View GitHub Profile
@KMarkert
KMarkert / silvacarbon-gee-tensorflow.ipynb
Created September 22, 2020 15:05
silvacarbon-gee-tensorflow.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@crazyoptimist
crazyoptimist / compose.yaml
Last active April 9, 2024 23:20
MongoDB Docker Deployment
name: mongodb
services:
mongodb:
container_name: mongo
image: mongo:7
volumes:
- mongodb_data:/data/db/
ports:
- 27017:27017
@jakebrinkmann
jakebrinkmann / download_m2m.py
Last active April 12, 2024 12:42
Python module for straight-forward EarthExplorer Machine-to-Machine
"""
Data download script for EarthExplorer Machine-to-Machine
download_m2m('/path/to/downloads', username='user1234', dataset='ARD_TILE',
products='TOA,BT,SR,PQA', threads=40,
fields={'Region': 'CU', 'Spacecraft': 'LANDSAT_8'})
More M2M documentation: https://earthexplorer.usgs.gov/inventory/documentation
Author: Jake Brinkmann <jacob.brinkmann.ctr@usgs.gov>
@dccampbell
dccampbell / setupEnv.sh
Last active December 27, 2022 14:18
Linux Environment - Initial Setup Script
#!/usr/bin/env bash
echo "=== System Install Starting! ==="
# Variables
DL_DIR="$HOME/Downloads/EnvSetup" && mkdir -p "$DL_DIR"
BIN_DIR="$HOME/bin" && mkdir -p "$BIN_DIR"
source /etc/os-release #loads $UBUNTU_CODENAME
export DEBIAN_FRONTEND=noninteractive
@drmalex07
drmalex07 / convert-geojson-to-wkt.py
Created May 12, 2014 22:13
Convert GeoJSON to/from WKT in Python. #python #geojson #geometry
import json
import geojson
from shapely.geometry import shape
o = {
"coordinates": [[[23.314208, 37.768469], [24.039306, 37.768469], [24.039306, 38.214372], [23.314208, 38.214372], [23.314208, 37.768469]]],
"type": "Polygon"
}
s = json.dumps(o)
@jgomezdans
jgomezdans / dn_2_rad.py
Last active September 13, 2021 12:56
Landsat DN to radiance script using GDAL and Numpy.
#!/usr/bin/env python
"""
SYNOPSIS
dn_2_rad.py [-h,--help] [-v,--verbose] [-i,--input] [-o,--output]
DESCRIPTION
This program is used to extract the gain parameters and to convert
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 28, 2024 21:36
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname