aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2021-05-05 17:52:15 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2021-05-05 17:52:15 +0800
commit4a81e91f02e400d34aeedc9d2ae9e8013696f2d7 (patch)
tree11f41ff3060f5cad2cb09279f70e7c1f8700c43f
parenta987b6489e6ee71af2c78ed698ec9cab84d66c0c (diff)
update
-rw-r--r--alias9
1 files changed, 6 insertions, 3 deletions
diff --git a/alias b/alias
index e8d5afc..1c984d4 100644
--- a/alias
+++ b/alias
@@ -295,6 +295,12 @@ image_horizontal() {
295# thunderbird 295# thunderbird
296alias thunder.pull='rsync -a --delete pham@topo.tw:~/.thunderbird/ ~/.thunderbird &' 296alias thunder.pull='rsync -a --delete pham@topo.tw:~/.thunderbird/ ~/.thunderbird &'
297 297
298# Reset clock
299date-reset() {
300 sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
301}
302alias clock-reset='hwclock --systohc'
303
298# misc 304# misc
299alias foo='echo bar > foo && echo File foo is created && ls -lh foo' 305alias foo='echo bar > foo && echo File foo is created && ls -lh foo'
300alias bar='echo foo > bar && echo File bar is created && ls -lh bar' 306alias bar='echo foo > bar && echo File bar is created && ls -lh bar'
@@ -318,9 +324,6 @@ alias mm='mkvmerge -o out.webm -w 01.webm + 02.webm'
318alias we='weechat' 324alias we='weechat'
319alias p8='ping 8.8.8.8' 325alias p8='ping 8.8.8.8'
320alias pg='ping google.com' 326alias pg='ping google.com'
321date-reset() {
322 sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
323}
324mvt_decode() { 327mvt_decode() {
325 mvt_decode.py $1 | tr \' \" | sed 's/True/true/g' | jq . 328 mvt_decode.py $1 | tr \' \" | sed 's/True/true/g' | jq .
326} 329}