aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2021-03-04 16:12:13 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2021-03-04 16:12:13 +0800
commit92ac263111aa47f4a35aa997c8d7d29b1b3076ed (patch)
treea5a72a8dfb67c8e9ef7189bd7ee289ec77a94b2e
parent93ba922be874cfc0d939ba697ea69c82150d55e3 (diff)
update
-rw-r--r--alias6
1 files changed, 6 insertions, 0 deletions
diff --git a/alias b/alias
index 8aa63eb..3bde69b 100644
--- a/alias
+++ b/alias
@@ -320,6 +320,9 @@ mvt_decode() {
320big52utf8() { 320big52utf8() {
321 iconv -f BIG-5 -t UTF-8 321 iconv -f BIG-5 -t UTF-8
322} 322}
323utf82big5() {
324 iconv -t BIG-5 -f UTF-8
325}
323urlencode() { 326urlencode() {
324 perl -lpe 's/([^A-Za-z0-9.\/:])/sprintf("%%%02X", ord($1))/seg' 327 perl -lpe 's/([^A-Za-z0-9.\/:])/sprintf("%%%02X", ord($1))/seg'
325 # Alternative: 328 # Alternative:
@@ -328,6 +331,9 @@ urlencode() {
328bak() { 331bak() {
329 cp $1 $1.bak 332 cp $1 $1.bak
330} 333}
334wrap2geojson() {
335 jq -s '{ type: "FeatureCollection", features: . }'
336}
331 337
332# task 338# task
333alias tk='task' 339alias tk='task'