diff options
-rw-r--r-- | alias | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -295,6 +295,12 @@ image_horizontal() { | |||
295 | # thunderbird | 295 | # thunderbird |
296 | alias thunder.pull='rsync -a --delete pham@topo.tw:~/.thunderbird/ ~/.thunderbird &' | 296 | alias thunder.pull='rsync -a --delete pham@topo.tw:~/.thunderbird/ ~/.thunderbird &' |
297 | 297 | ||
298 | # Reset clock | ||
299 | date-reset() { | ||
300 | sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z" | ||
301 | } | ||
302 | alias clock-reset='hwclock --systohc' | ||
303 | |||
298 | # misc | 304 | # misc |
299 | alias foo='echo bar > foo && echo File foo is created && ls -lh foo' | 305 | alias foo='echo bar > foo && echo File foo is created && ls -lh foo' |
300 | alias bar='echo foo > bar && echo File bar is created && ls -lh bar' | 306 | alias 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' | |||
318 | alias we='weechat' | 324 | alias we='weechat' |
319 | alias p8='ping 8.8.8.8' | 325 | alias p8='ping 8.8.8.8' |
320 | alias pg='ping google.com' | 326 | alias pg='ping google.com' |
321 | date-reset() { | ||
322 | sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z" | ||
323 | } | ||
324 | mvt_decode() { | 327 | mvt_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 | } |