diff options
-rw-r--r-- | alias | 17 | ||||
-rw-r--r-- | gitconfig | 5 |
2 files changed, 14 insertions, 8 deletions
@@ -334,24 +334,25 @@ taiwan_dem() { | |||
334 | 334 | ||
335 | # data file | 335 | # data file |
336 | alias taiwan='curl -O http://download.geofabrik.de/asia/taiwan-latest.osm.pbf' | 336 | alias taiwan='curl -O http://download.geofabrik.de/asia/taiwan-latest.osm.pbf' |
337 | alias data_rudymap='curl -O https://raw.githubusercontent.com/alpha-rudy/taiwan-topo/master/styles/mapsforge_style/MOI_OSM.xml' | 337 | alias data.rudymap='curl -O https://raw.githubusercontent.com/alpha-rudy/taiwan-topo/master/styles/mapsforge_style/MOI_OSM.xml' |
338 | alias data_rudymap_ele='curl -O http://moi.kcwu.csie.org/osm_elevations/ele_taiwan_10_50_100_500_marker-2019.7.o5m' | 338 | alias data.rudymap_ele='curl -O http://moi.kcwu.csie.org/osm_elevations/ele_taiwan_10_50_100_500_marker-2019.7.o5m' |
339 | data_osm_diff_min() { | 339 | data.osm_diff_min() { |
340 | curl https://planet.openstreetmap.org/replication/minute/state.txt \ | 340 | curl https://planet.openstreetmap.org/replication/minute/state.txt \ |
341 | | sed -n 2p | cut -d'=' -f2 | sed -r 's#(.{1})(.{3})#00\1/\2#' \ | 341 | | sed -n 2p | cut -d'=' -f2 | sed -r 's#(.{1})(.{3})#00\1/\2#' \ |
342 | | xargs -I{} echo 'https://planet.openstreetmap.org/replication/minute/{}'.osc.gz \ | 342 | | xargs -I{} echo 'https://planet.openstreetmap.org/replication/minute/{}'.osc.gz \ |
343 | | xargs curl -O | 343 | | xargs curl -O |
344 | } | 344 | } |
345 | data_osm_diff_hour() { | 345 | data.osm_diff_hour() { |
346 | curl https://planet.openstreetmap.org/replication/hour/state.txt \ | 346 | curl https://planet.openstreetmap.org/replication/hour/state.txt \ |
347 | | sed -n 2p | cut -d'=' -f2 | sed -r 's#(.{2})(.{3})#000/0\1/\2#' \ | 347 | | sed -n 2p | cut -d'=' -f2 | sed -r 's#(.{2})(.{3})#000/0\1/\2#' \ |
348 | | xargs -I{} echo 'https://planet.openstreetmap.org/replication/hour/{}'.osc.gz \ | 348 | | xargs -I{} echo 'https://planet.openstreetmap.org/replication/hour/{}'.osc.gz \ |
349 | | xargs curl -O | 349 | | xargs curl -O |
350 | } | 350 | } |
351 | alias data_taiwan_town='curl -o town.zip -L http://data.moi.gov.tw/MoiOD/System/DownloadFile.aspx\?DATA\=CD02C824-45C5-48C8-B631-98B205A2E35A' | 351 | # https://data.gov.tw/dataset/7441 |
352 | alias data_taiwan_village='curl -o village.zip -L http://data.moi.gov.tw/MoiOD/System/DownloadFile.aspx\?DATA\=B8AF344F-B5C6-4642-AF46-1832054399CE' | 352 | alias data.taiwan_town='curl -o town.zip -L https://data.moi.gov.tw/MoiOD/System/DownloadFile.aspx\?DATA\=CD02C824-45C5-48C8-B631-98B205A2E35A' |
353 | alias data_taiwan_poly='curl -O http://download.geofabrik.de/asia/taiwan.poly' | 353 | alias data.taiwan_village='curl -o village.zip -L http://data.moi.gov.tw/MoiOD/System/DownloadFile.aspx\?DATA\=B8AF344F-B5C6-4642-AF46-1832054399CE' |
354 | alias data_taiwan_county_code='curl --silent https://www.ris.gov.tw/documents/data/5/1/RSCD0101.txt | iconv -f BIG-5 -t UTF-8 -' | 354 | alias data.taiwan_poly='curl -O http://download.geofabrik.de/asia/taiwan.poly' |
355 | alias data.taiwan_county_code='curl --silent https://www.ris.gov.tw/documents/data/5/1/RSCD0101.txt | iconv -f BIG-5 -t UTF-8 -' | ||
355 | 356 | ||
356 | # clipboard | 357 | # clipboard |
357 | alias xi='xsel -ib' | 358 | alias xi='xsel -ib' |
@@ -26,3 +26,8 @@ | |||
26 | helper = store | 26 | helper = store |
27 | [gpg] | 27 | [gpg] |
28 | program = gpg2 | 28 | program = gpg2 |
29 | [filter "lfs"] | ||
30 | process = git-lfs filter-process | ||
31 | required = true | ||
32 | clean = git-lfs clean -- %f | ||
33 | smudge = git-lfs smudge -- %f | ||