Skip to content

Instantly share code, notes, and snippets.

@danwild
danwild / jetbrains-idea.desktop
Last active July 5, 2017 00:02
Ubuntu desktop icon to run Intellij IDEA with JAVA_HOME explicitly defined
# /usr/share/applications/jetbrains-idea.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=IntelliJ IDEA
Icon=/opt/idea-IU-143.2370.31/bin/idea.png
Exec=env JAVA_HOME=/usr/java/jdk1.8.0_131 "/opt/idea-IU-143.2370.31/bin/id$
Comment=Develop with pleasure!
Categories=Development;IDE;
Terminal=false
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danwild
danwild / meteor-nginx
Created November 17, 2016 03:17 — forked from dweldon/meteor-nginx
This is an example of how to configure nginx to serve a meteor app.
server {
listen 80;
server_name app.example.com;
rewrite ^ https://$server_name$request_uri? permanent;
}
server {
listen 443;
server_name app.example.com;
@danwild
danwild / install_netcdf4.sh
Created November 4, 2016 00:53
Install netCDF4 in Ubuntu
#!/bin/bash
# Script to install hdf5 and netCDF4 libraries on a Linux Ubuntu system
# After: https://code.google.com/p/netcdf4-python/wiki/UbuntuInstall
# And http://unidata.github.io/netcdf4-python/
# You can check for newer version of the programs on
# ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4/
# and other sources
@danwild
danwild / L.CanvasOverlay.js
Created June 27, 2016 01:02 — forked from Sumbera/L.CanvasOverlay.js
Leaflet Canvas Overlay
/*
Generic Canvas Overlay for leaflet,
Stanislav Sumbera, April , 2014
- added userDrawFunc that is called when Canvas need to be redrawn
- added few useful params fro userDrawFunc callback
- fixed resize map bug
inspired & portions taken from : https://github.com/Leaflet/Leaflet.heat
License: MIT