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