348 reputation
2514
bio website datageek.info
location China
age 27
visits member for 3 years, 11 months
seen Dec 6 at 5:26

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

348 Reputation

15 Dec 8
5 Sep 17
5 Aug 10
5 Feb 11
10 Dec 1 '13
5 Nov 13 '13
5 Nov 6 '13
5 Sep 6 '13
10 Aug 18 '13
5 Jun 17 '13
5 May 28 '13
5 Apr 19 '13
5 Jan 29 '13
5 Nov 9 '12
2 Nov 7 '12
5 Jul 22 '12
5 Jul 20 '12
3 Jul 18 '12
4 Jul 2 '12
2 Jun 12 '12
10 May 30 '12
10 May 29 '12
19 May 28 '12
25 May 27 '12
15 May 4 '12
2 Feb 8 '12
-2 Feb 5 '12
2 Dec 20 '11
100 May 22 '11
5 May 10 '11