Skip to content

Instantly share code, notes, and snippets.

View Endebert's full-sized avatar
🤖

Robert Ende Endebert

🤖
View GitHub Profile
@Endebert
Endebert / leaflet.py
Created October 10, 2018 18:12
custom tile layer creation script for leaflet. based on https://bitbucket.org/zmasek/gimp-leaflet
#!/usr/bin/env python
import os
from gimpfu import gimp, main, pdb, PF_IMAGE, PF_DRAWABLE, PF_DIRNAME, PF_SPINNER, register
BOX = 256
DIMENSIONS = (256, 512, 1024, 2048, 4096, 8192, 16384)
ZOOM_DEFAULT = 4
ZOOM_OPTIONS = (0, 8, 1)
QUALITY_DEFAULT = 0.9
QUALITY_OPTIONS = (0.1, 1.0, 0.1)
@Endebert
Endebert / gist:8e4838d57bce484dac5b8b6e4e48f4a5
Created February 22, 2017 09:52
SUPER ZSH SAVE ALIAS ALIAS TURBO: ARCADE EDITION
1. add to .zshrc: source ~/.zshrc_alias
2. salias='alias > $HOME/.zshrc_alias && sed -i -e "s/^/alias /" $HOME/.zshrc_alias && tail -n +2 "$HOME/.zshrc_alias" > "$HOME/.zshrc_alias.tmp" && mv -f "$HOME/.zshrc_alias.tmp" "$HOME/.zshrc_alias"'
3. salias
4. ???
5. PROFIT