This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE qgis_style> | |
| <qgis_style version="2"> | |
| <symbols> | |
| <symbol name="qartoon" force_rhr="0" clip_to_extent="1" alpha="1" type="fill"> | |
| <layer class="SimpleFill" enabled="1" locked="0" pass="0"> | |
| <prop v="3x:0,0,0,0,0,0" k="border_width_map_unit_scale"/> | |
| <prop v="0,0,0,255" k="color"/> | |
| <prop v="round" k="joinstyle"/> | |
| <prop v="1,1" k="offset"/> | |
| <prop v="3x:0,0,0,0,0,0" k="offset_map_unit_scale"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| s = status --short --branch --ignore-submodules=untracked | |
| find = log --pretty=\"format:%Cgreen%H\n%s\n\n%b\" --name-status --grep | |
| amend = commit --amend --no-edit | |
| undo = reset HEAD~ | |
| upload = "!git push rakyll $(git rev-parse --abbrev-ref HEAD)" | |
| prune = "!git co master && git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d" | |
| delete = branch -D | |
| pr = "!git fetch origin pull/$1/head:pr$1" | |
| sync = "!git pull -q -r origin master" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // test.json | |
| { | |
| "title":"Foo", | |
| "children":[ | |
| { | |
| "title":"Bar", | |
| "children":[ | |
| { | |
| "title":"FooBar1" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This script is for exporting MBTiles directly to your Mapbox account. | |
| # Requires a Mapbox account with sufficient storage for your tiles and | |
| # authorized with your TileMill 0.10.0 install. | |
| # Note that the maximum file transfer size is 5GB. | |
| # Adapted from https://gist.github.com/springmeyer/7875415. | |
| # Settings: edit these as needed | |
| PROJECT_NAME="geography-class" # the folder name in your /project directory | |
| OUTPUT_DIRECTORY="~/Documents/MapBox/export/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Calculate From : http://munin-monitoring.org/browser/munin/plugins/node.d/postgres_streaming_.in | |
| -- with help : http://www.postgresql.org/docs/9.3/static/monitoring-stats.html#PG-STAT-REPLICATION-VIEW | |
| -- http://eulerto.blogspot.fr/2011/11/understanding-wal-nomenclature.html | |
| create or replace function CalculateNumericalOffset(text) | |
| returns bigint | |
| language sql | |
| as $$ | |
| select ('x'||lpad( 'ff000000', 16, '0'))::bit(64)::bigint | |
| * ('x'||lpad( split_part( $1 ,'/',1), 16, '0'))::bit(64)::bigint |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export GOPATH="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)" | |
| export OLDPS1=$PS1 | |
| export PS1="[go:$(basename $GOPATH)] $PS1" | |
| alias gcd="cd $GOPATH" | |
| deactivate() { | |
| export PS1=$OLDPS1 | |
| unset GOPATH | |
| unset OLDPS1 | |
| unalias gcd | |
| unset deactivate |