3,332 reputation
11538
bio website datageek.info
location China
age 27
visits member for 4 years, 4 months
seen Oct 6 at 19: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

128
× 35
5
× 2
4
2
57
× 23
5
3
× 9
2
53
× 8
5
3
× 4
2
49
× 3
5
3
× 2
2
49
× 3
4
× 4
3
2
32
× 2
4
× 2
3
2
31
4
3
2
26
× 8
4
3
2
22
× 14
4
3
2
8
× 2
4
2
× 5
1
× 3
7
× 2
4
2
× 2
1
× 2
6
× 2
4
2
× 2
1
× 2
5
× 2
4
2
× 2
1
× 2