Skip to content

Instantly share code, notes, and snippets.

@gnomeria
gnomeria / installcdo.sh
Last active July 1, 2019 21:18 — forked from mainvoid007/installcdo.sh
install cdo with grib2, hdf5, netcdf4
#!/bin/bash
# Institut für Wetter- und Klimakommunikation GmbH / Qmet
# O. Maywald <[email protected]>
# This should install CDO with grib2, netcdf and HDF5 support. Note that the binaries are in /opt/cdo-install/bin.
# For further information look:
# http://www.studytrails.com/blog/install-climate-data-operator-cdo-with-netcdf-grib2-and-hdf5-support/
# docker-command
@gnomeria
gnomeria / ecmwf_precip_s3_downloader.sh
Last active June 30, 2019 19:06
ECMWF Precipitation 1 Hour - S3 Shell Script Downloader With Aria2
#!/bin/bash
type=$1
startY=$(($2))
endY=$(($3))
# trap ctrl-c and call ctrl_c()
trap ctrl_c INT
function ctrl_c() {
ssh -vvvi ~/.ssh/id.pem -D 9000 -fCNTq user@HOST
@gnomeria
gnomeria / settings.json
Created December 27, 2018 05:46
VS Code Settings for Javascript prettier
{
"eslint.validate": [{
"language": "html",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
},
{
@gnomeria
gnomeria / IntervalSearchTree.kt
Created October 7, 2018 05:33
Rough kotlin Interval Search Tree implementation
/**
* Kotlin rough reimplementation of Robert Sedgewick and Kevin Wayne Interval Search Tree
* from Java. The value is stored as a list of values, that will be added on key collision
*
* https://algs4.cs.princeton.edu/93intersection/IntervalST.java.html
*/
/******************************************************************************
* Compilation: javac IntervalST.java
* Execution: java IntervalST