diff options
-rw-r--r-- | alias | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -242,6 +242,7 @@ alias oi='ogrinfo -al -so' | |||
242 | # sample file | 242 | # sample file |
243 | alias sample_gpx='curl -O https://docs.mapbox.com/help/data/run.gpx' | 243 | alias sample_gpx='curl -O https://docs.mapbox.com/help/data/run.gpx' |
244 | alias sample_geojson='curl -O https://docs.mapbox.com/help/data/stations.geojson' | 244 | alias sample_geojson='curl -O https://docs.mapbox.com/help/data/stations.geojson' |
245 | alias sample_shapefile='curl -O https://docs.mapbox.com/help/data/stations.zip && unzip stations.zip' | ||
245 | alias sample_geotiff='curl -O https://docs.mapbox.com/help/data/landsat.tif' | 246 | alias sample_geotiff='curl -O https://docs.mapbox.com/help/data/landsat.tif' |
246 | alias sample_csv='curl -O https://docs.mapbox.com/help/data/airports.csv' | 247 | alias sample_csv='curl -O https://docs.mapbox.com/help/data/airports.csv' |
247 | alias sample_svg='curl -O https://docs.mapbox.com/help/data/bicycle-24.svg' | 248 | alias sample_svg='curl -O https://docs.mapbox.com/help/data/bicycle-24.svg' |
@@ -282,8 +283,6 @@ alias data_taiwan_county_code='curl --silent https://www.ris.gov.tw/documents/da | |||
282 | alias xi='xsel -ib' | 283 | alias xi='xsel -ib' |
283 | alias xo='xsel -ob' | 284 | alias xo='xsel -ob' |
284 | alias xl='history | tail -1 | grep -oP "^\s*[0-9]+\s\s\K.*" | xsel -ib && echo Copied to clipboard && xsel -ob' | 285 | alias xl='history | tail -1 | grep -oP "^\s*[0-9]+\s\s\K.*" | xsel -ib && echo Copied to clipboard && xsel -ob' |
285 | alias xll='xo >> ~/vimwiki/working.md' | ||
286 | alias xc='xsel -ob | gcc -xc -' | ||
287 | 286 | ||
288 | # image | 287 | # image |
289 | image_vertical() { | 288 | image_vertical() { |
@@ -327,7 +326,13 @@ alias we='weechat' | |||
327 | alias p8='ping 8.8.8.8' | 326 | alias p8='ping 8.8.8.8' |
328 | alias pg='ping google.com' | 327 | alias pg='ping google.com' |
329 | mvt_decode() { | 328 | mvt_decode() { |
330 | mvt_decode.py $1 | tr \' \" | sed 's/True/true/g' | jq . | 329 | if [[ ! -t 0 ]]; then |
330 | tmp=$(mktemp) | ||
331 | cat >$tmp | ||
332 | else | ||
333 | tmp=$1 | ||
334 | fi | ||
335 | mvt_decode.py $tmp | tr \' \" | sed 's/True/true/g' | jq . | ||
331 | } | 336 | } |
332 | big52utf8() { | 337 | big52utf8() { |
333 | iconv -f BIG-5 -t UTF-8 | 338 | iconv -f BIG-5 -t UTF-8 |