3,132 reputation
41
bio website weibo.com/datageek
location China
age 26
visits member for 4 years, 1 month
seen Feb 6 '12 at 11:52

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/

# 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]*

This user has not answered any questions
This user has not participated in any tags
This user has not asked any questions
Stack Overflow 41,170 rep 670117
Super User 3,132 rep 11335
Unix & Linux 411 rep 39
Ask Ubuntu 323 rep 2413
Programming Puzzles & Code Golf 121 rep 4

0 Votes Cast

This user has not cast any votes