aboutsummaryrefslogtreecommitdiffhomepage
path: root/alias
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2025-01-01 13:56:10 +0800
committerHsieh Chin Fan <pham@topo.tw>2025-01-01 13:56:10 +0800
commitfa3ecfebf0b2cf55620b049b9cdd85386c19b55d (patch)
treed22cdb0970d303d716a0384faf5a8cbd915cf427 /alias
parenteae3e6d3674c5973c21628eb88ed1c4772505310 (diff)
Update
Diffstat (limited to 'alias')
-rw-r--r--alias42
1 files changed, 21 insertions, 21 deletions
diff --git a/alias b/alias
index 1095dba..a9ac9c5 100644
--- a/alias
+++ b/alias
@@ -460,6 +460,27 @@ github.raw() {
460} 460}
461 461
462# }}} 462# }}}
463# GIS {{{
464alias oo='ogr2ogr'
465alias oi='ogrinfo -al -so'
466TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305'
467TAIWAN_BBOX_V='20.72799,118.1036,26.60305,122.9312'
468TAIPEI_BBOX='121.346,24.926,121.676,25.209'
469TAIPEI_BBOX_V='24.926,121.346,25.209,121.676'
470pbf() {
471 protoc --decode_raw
472}
473mvt.decode() {
474 if [[ ! -t 0 ]]; then
475 cat >$tmp
476 tmp=$(mktemp)
477 else
478 tmp=$1
479 fi
480 mvt_decode.py $tmp | tr \' \" | sed 's/True/true/g; s/False/false/g'
481}
482wrap2geojson() { jq -s '{ type: "FeatureCollection", features: . }'; }
483# }}}
463# DEV: Docker{{{ 484# DEV: Docker{{{
464alias dk='docker' 485alias dk='docker'
465alias dc='docker-compose' 486alias dc='docker-compose'
@@ -564,27 +585,6 @@ alias b='vim $HOME/bean/main.bean'
564# python{{{ 585# python{{{
565alias pip3='python3 -m pip' 586alias pip3='python3 -m pip'
566# }}} 587# }}}
567# GIS {{{
568alias oo='ogr2ogr'
569alias oi='ogrinfo -al -so'
570TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305'
571TAIWAN_BBOX_V='20.72799,118.1036,26.60305,122.9312'
572TAIPEI_BBOX='121.346,24.926,121.676,25.209'
573TAIPEI_BBOX_V='24.926,121.346,25.209,121.676'
574pbf() {
575 protoc --decode_raw
576}
577mvt.decode() {
578 if [[ ! -t 0 ]]; then
579 cat >$tmp
580 tmp=$(mktemp)
581 else
582 tmp=$1
583 fi
584 mvt_decode.py $tmp | tr \' \" | sed 's/True/true/g; s/False/false/g'
585}
586wrap2geojson() { jq -s '{ type: "FeatureCollection", features: . }'; }
587# }}}
588# Misc{{{ 588# Misc{{{
589alias yl='youtube-dl' 589alias yl='youtube-dl'
590alias yla='youtube-dl -x --audio-format mp3' 590alias yla='youtube-dl -x --audio-format mp3'