333 reputation
2514
bio website datageek.info
location China
age 27
visits member for 3 years, 10 months
seen Oct 8 at 13:12

Simplicity is the ultimate sophistication. — Leonardo Da Vinci

less is more

  • The basic problem is actually very complicated.
  • It's amazing that computers only use 0s and 1s.

handy tools

# download bigfile
$ aria2c -c -k1M -{x,j,s}16 --checksum=md5=dccff28314d9ae4ed262cfc6f35e5153 http://mirrors.zju.edu.cn/ubuntu-releases/14.04/ubuntu-14.04-desktop-amd64.iso

# backup txt files
$ rsync -avzm --include '*/' --include '*.txt' --exclude '*' source/ remote:target/

# transfer big file
$ rsync -hP remote:file .

# convert json to csv
$ jq -r '[.field1,.field2,.field3]|@csv' input.json > output.csv

# convert socks5 to http
$ delegate -P8080 SERVER=http SOCKS=1.2.3.4:1080 ADMIN=noreply@datageek.info

# zero-padding file names
$ rename 's/^\d+/sprintf("%02d", $&)/e' [0-9]*

# concat video parts
$ printf "file '%s'\n" part*.mp4 | ffmpeg -f concat -i - -c copy all.mp4

Oct
14
awarded  Popular Question
Jul
16
awarded  Notable Question
Jul
2
awarded  Curious
Mar
31
awarded  Famous Question
Feb
12
awarded  Caucus
Aug
20
awarded  Famous Question
Jul
1
awarded  Notable Question
Apr
13
awarded  Popular Question
Mar
27
awarded  Popular Question
Mar
19
awarded  Popular Question
Dec
17
awarded  Notable Question
Nov
7
comment Can I add myself to group `root'?
Thanks. It works!
Nov
7
accepted Can I add myself to group `root'?
Nov
7
asked Can I add myself to group `root'?
Sep
8
awarded  Notable Question
Jul
4
awarded  Popular Question
Jul
2
accepted How to visually indicate whether a window is `Always On Top`?
Jul
2
accepted How to cancel Update Manager downloading flashplugin-installer?
Jun
12
accepted How to make Ctrl-Alt-Num 4 and 6 shortcuts work?
Jun
10
asked How to cancel Update Manager downloading flashplugin-installer?