Back to home

PyCoder's Weekly Issue #79: Its Friday.

News

Discussions

Projects

>>> from simpleflake import simpleflake, parse_simpleflake
>>> simpleflake()
3594162604452825250L
>>> parse_simpleflake(3594162604452825250L)
SimpleFlake(timestamp=1375160370.606, random_bits=6768802L)
  • Cheat *nix 系统工具手册,展示常见用法,可以自己添加 Snippets
$ cheat tar
To extract an uncompressed archive:
tar -xvf /path/to/foo.tar

To extract a .gz archive:
tar -xzvf /path/to/foo.tgz

To create a .gz archive:
tar -czvf /path/to/foo.tgz /path/to/foo/

To extract a .bz2 archive:
tar -xjvf /path/to/foo.tgz

To create a .bz2 archive:
tar -cjvf /path/to/foo.tgz /path/to/foo/

ca8319c071586041430d52b70667738a.jpe

Articles