3,222 reputation
11337
bio website datageek.info
location China
age 27
visits member for 4 years, 2 months
seen Aug 17 at 4:11

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

3,222 Reputation

5 2 days ago
10 Aug 26
5 Aug 16
15 Aug 12
5 Aug 11
10 Aug 8
10 Aug 6
5 Aug 5
5 Aug 1
10 Jul 28
10 Jul 16
10 Jul 10
5 Jul 6
10 Jul 2
15 Jul 1
15 Jun 22
5 Jun 18
10 Jun 10
10 Jun 9
10 Jun 3
-2 Jun 1
15 May 25
10 May 16
10 May 14
10 May 13
5 May 5
20 Apr 25
5 Apr 22
10 Apr 17
5 Apr 14