diff options
author | typebrook <typebrook@gmail.com> | 2019-11-14 17:25:41 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-11-14 17:25:41 +0800 |
commit | 4d6eb0d2cbfaf766dc70703f24efb73e15c003f9 (patch) | |
tree | 9166784868a4525506536c6345d42b9eff204967 | |
parent | 0608603e07fbd446315eddcefac35966ed9ac693 (diff) |
update
-rw-r--r-- | alias | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -158,13 +158,17 @@ alias sample-kml='curl -O https://docs.mapbox.com/help/data/farmers_markets.kml' | |||
158 | 158 | ||
159 | # data file | 159 | # data file |
160 | alias taiwan='curl -O http://download.geofabrik.de/asia/taiwan-latest.osm.pbf' | 160 | alias taiwan='curl -O http://download.geofabrik.de/asia/taiwan-latest.osm.pbf' |
161 | alias data-taiwan-town='curl -o town.zip -L http://data.moi.gov.tw/MoiOD/System/DownloadFile.aspx\?DATA\=CD02C824-45C5-48C8-B631-98B205A2E35A' | ||
162 | alias data-taiwan-village='curl -o village.zip -L http://data.moi.gov.tw/MoiOD/System/DownloadFile.aspx\?DATA\=B8AF344F-B5C6-4642-AF46-1832054399CE' | ||
163 | alias data-rudymap='curl -O https://raw.githubusercontent.com/alpha-rudy/taiwan-topo/master/styles/mapsforge_style/MOI_OSM.xml' | 161 | alias data-rudymap='curl -O https://raw.githubusercontent.com/alpha-rudy/taiwan-topo/master/styles/mapsforge_style/MOI_OSM.xml' |
164 | alias data-osm-diff="curl https://planet.openstreetmap.org/replication/minute/state.txt |\ | 162 | alias data-osm-diff="curl https://planet.openstreetmap.org/replication/minute/state.txt |\ |
165 | sed -n 2p | cut -d'=' -f2 | sed -r 's/(.{1})(.{3})/00\1\/\2\//' |\ | 163 | sed -n 2p | cut -d'=' -f2 | sed -r 's/(.{1})(.{3})/00\1\/\2\//' |\ |
166 | xargs -I {} echo -e https://planet.openstreetmap.org/replication/minute/'{}'.osc.gz |\ | 164 | xargs -I {} echo -e https://planet.openstreetmap.org/replication/minute/'{}'.osc.gz |\ |
167 | xargs curl -O" | 165 | xargs curl -O" |
166 | alias data-taiwan-town='curl -o town.zip -L http://data.moi.gov.tw/MoiOD/System/DownloadFile.aspx\?DATA\=CD02C824-45C5-48C8-B631-98B205A2E35A' | ||
167 | alias data-taiwan-village='curl -o village.zip -L http://data.moi.gov.tw/MoiOD/System/DownloadFile.aspx\?DATA\=B8AF344F-B5C6-4642-AF46-1832054399CE' | ||
168 | data-taiwan-county-code() { | ||
169 | curl --silent https://www.ris.gov.tw/documents/data/5/1/RSCD0101.txt |\ | ||
170 | iconv -f BIG-5 -t UTF-8 - | ||
171 | } | ||
168 | 172 | ||
169 | # clipboard | 173 | # clipboard |
170 | alias xi='xsel -ib' | 174 | alias xi='xsel -ib' |