diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2023-10-24 08:59:16 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2023-10-24 08:59:16 +0800 |
| commit | c30d9e996c51de1745c410f91f8c029708dccc38 (patch) | |
| tree | 37174b6db610edc804b3574b91d19b07c2c31bef /alias | |
| parent | 0cb54bc13ff3461078b552e45109a90b5ad7d6a5 (diff) | |
Update lorem script
Diffstat (limited to 'alias')
| -rw-r--r-- | alias | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -406,7 +406,11 @@ alias sample.poly='curl -O http://download.geofabrik.de/asia/taiwan.poly' | |||
| 406 | alias sample.gpkg='curl -O http://www.geopackage.org/data/sample1_1.gpkg' | 406 | alias sample.gpkg='curl -O http://www.geopackage.org/data/sample1_1.gpkg' |
| 407 | alias sample.mvt='curl -O https://demotiles.maplibre.org/tiles/5/25/14.pbf' | 407 | alias sample.mvt='curl -O https://demotiles.maplibre.org/tiles/5/25/14.pbf' |
| 408 | alias sample.lorem='curl http://metaphorpsum.com/paragraphs/4/16' | 408 | alias sample.lorem='curl http://metaphorpsum.com/paragraphs/4/16' |
| 409 | alias lorem='curl http://metaphorpsum.com/paragraphs/4/16' | 409 | lorem() { |
| 410 | paragraph=${1:-4} | ||
| 411 | sentences=${2:-6} | ||
| 412 | curl http://metaphorpsum.com/paragraphs/$paragraph/$sentences | ||
| 413 | } | ||
| 410 | alias sample.wmts='curl -O https://gis.sinica.edu.tw/tileserver/wmts' | 414 | alias sample.wmts='curl -O https://gis.sinica.edu.tw/tileserver/wmts' |
| 411 | sample.image() { curl -Lo random.png https://picsum.photos/seed/`date +%s`/${1:-500}/${2:-500}; } | 415 | sample.image() { curl -Lo random.png https://picsum.photos/seed/`date +%s`/${1:-500}/${2:-500}; } |
| 412 | alias proto.mvt='curl -O https://raw.githubusercontent.com/mapbox/vector-tile-spec/master/2.1/vector_tile.proto' | 416 | alias proto.mvt='curl -O https://raw.githubusercontent.com/mapbox/vector-tile-spec/master/2.1/vector_tile.proto' |