diff options
-rw-r--r-- | alias | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -82,7 +82,7 @@ alias yql='yay -Ql' | |||
82 | alias pf='pacman -F' | 82 | alias pf='pacman -F' |
83 | alias yf='yay -F' | 83 | alias yf='yay -F' |
84 | alias pfl='pacman -Fl' | 84 | alias pfl='pacman -Fl' |
85 | alias yfl='yay -Fl' | 85 | alias yfl='yay -Ql' |
86 | alias pqe='pacman -Qqe' | 86 | alias pqe='pacman -Qqe' |
87 | alias pR='sudo pacman -R' | 87 | alias pR='sudo pacman -R' |
88 | psi() { | 88 | psi() { |
@@ -242,6 +242,12 @@ alias sample_svg='curl -O https://docs.mapbox.com/help/data/bicycle-24.svg' | |||
242 | alias sample_mbtiles='curl -O https://docs.mapbox.com/help/data/trails.mbtiles' | 242 | alias sample_mbtiles='curl -O https://docs.mapbox.com/help/data/trails.mbtiles' |
243 | alias sample_kml='curl -O https://docs.mapbox.com/help/data/farmers_markets.kml' | 243 | alias sample_kml='curl -O https://docs.mapbox.com/help/data/farmers_markets.kml' |
244 | alias sample_osm='curl https://api.openstreetmap.org/api/0.6/node/3428095932' | 244 | alias sample_osm='curl https://api.openstreetmap.org/api/0.6/node/3428095932' |
245 | alias sample_image='curl https://file-examples-com.github.io/uploads/2017/10/file_example_JPG_100kB.jpg' | ||
246 | taiwan_dem() { | ||
247 | <<<"http://dtm.moi.gov.tw/不分幅_全台及澎湖.zip" perl -lpe 's/([^A-Za-z0-9.\/:])/sprintf("%%%02X", ord($1))/seg' |\ | ||
248 | xargs curl -Lo taiwan_dem.zip | ||
249 | unzip -p taiwan_dem.zip 20m.tif >20m.tif | ||
250 | } | ||
245 | 251 | ||
246 | # data file | 252 | # data file |
247 | alias taiwan='curl -O http://download.geofabrik.de/asia/taiwan-latest.osm.pbf' | 253 | alias taiwan='curl -O http://download.geofabrik.de/asia/taiwan-latest.osm.pbf' |
@@ -336,6 +342,9 @@ tt() { | |||
336 | up() { | 342 | up() { |
337 | curl -F"file=@${1}" http://0x0.st | 343 | curl -F"file=@${1}" http://0x0.st |
338 | } | 344 | } |
345 | short() { | ||
346 | curl -F"shorten=${1}" http://0x0.st | ||
347 | } | ||
339 | 348 | ||
340 | # tmp | 349 | # tmp |
341 | alias and='cd ~/git/geoBingAn.Android' | 350 | alias and='cd ~/git/geoBingAn.Android' |