421 reputation
39
bio website datageek.info
location China
age 27
visits member for 3 years, 3 months
seen May 25 at 6:45

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

421 Reputation

10 Jul 16
5 Jun 26
5 Jan 21
5 Oct 28 '13
5 Oct 20 '13
5 Sep 17 '13
5 Aug 1 '13
5 Jul 23 '13
5 May 27 '13
5 May 23 '13
5 May 22 '13
5 Mar 29 '13
10 Feb 4 '13
15 Dec 16 '12
5 Nov 27 '12
10 Apr 3 '12
10 Mar 1 '12
10 Feb 29 '12
10 Feb 25 '12
20 Feb 14 '12
20 Jan 24 '12
12 Dec 26 '11
5 Dec 25 '11
80 Dec 22 '11
10 Dec 20 '11
10 Nov 23 '11
14 Nov 19 '11
15 Nov 18 '11
100 Jun 2 '11