Skip to content

Instantly share code, notes, and snippets.

View melalj's full-sized avatar

Simo Elalj melalj

View GitHub Profile
### Keybase proof
I hereby claim:
* I am melalj on github.
* I am melalj (https://keybase.io/melalj) on keybase.
* I have a public key whose fingerprint is E550 0D7A 421A 1FDD F333 8F5F 1239 2530 BF19 4714
To claim this, I am signing this object:
@melalj
melalj / export_photos.sh
Last active August 29, 2015 14:16
Export photos using EXIF metadata
#! /bin/bash
# USE AT YOUR OWN RISK!
# This script will go through your iPhoto Library
# original files and copy them to $EXPORTDIR.
# The script will organize the files in directories
# named YYYY/YYYY-MM and will rename the files using
# EXIF data ("YYYY-MM-DD HH.MM.SS.EXT", like dropbox
# camera import does).
@melalj
melalj / .block
Last active March 25, 2016 23:55
MapTable: Global Airport Markers with filters - +6000 rows, markers grouped by city, tooltip
license: MIT
height: 900
scrolling: yes
@melalj
melalj / .block
Last active March 25, 2016 23:56
MapTable: Global Airport by Countries - +6000 rows, Log scale for country colors, tooltip
license: MIT
height: 900
scrolling: yes
@melalj
melalj / .block
Last active March 25, 2016 23:56
MapTable: Basic Map - custom markers
license: MIT
height: 900
scrolling: yes
@melalj
melalj / .block
Last active March 25, 2016 23:56
MapTable: Basic with Map, Filters and Table - minimal options
license: MIT
height: 900
scrolling: yes
@melalj
melalj / .block
Last active March 25, 2016 23:57
MapTable: Only Table and filters - sorting, virtual columns
license: MIT
height: 900
scrolling: yes
@melalj
melalj / invalidate_cloudfront.sh
Created June 7, 2016 23:56
Shell command to Invalidate Cloudfront assets
#!/bin/bash
AWSACCESS="AWSACCESS"
AWSSECRET="AWSSECRET"
DISTRIBUTION_ID="DISTRIBUTION_ID"
PATH="/path_to_invalidate"
AWSDATE=`/usr/bin/php -r "echo gmdate('D, d M Y G:i:s T');"`
AWSSIG=`/usr/bin/php -r "echo base64_encode(hash_hmac('sha1', '$AWSDATE', '$AWSSECRET', true));"`
EPOCH=`/usr/bin/php -r "echo gmdate('U');"`
@melalj
melalj / .block
Last active June 29, 2016 20:11
MapTable: GDP by countries - legend, title, tooltip, scaled color for countries
license: MIT
height: 900
scrolling: yes
@melalj
melalj / .block
Last active December 21, 2016 18:25
MapTable: Heatmap visualization (SVG + Canvas) exportable
license: MIT
height: 900
scrolling: yes