Compressing a directory with rar on Linux
rar a -m5 -R output.rar /etc/
This will create a max compression (not taking into account dictionary sizes and the like) archive of the entire etc directory.
2747 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
rar a -m5 -R output.rar /etc/
def hanoi(n, a='A', b='B', c='C'): """ move n discs from a to c using b as middle """ if n == 0: return hanoi(n-1, a, c, b) print a, '->', c hanoi(n-1, b, a, c) hanoi(3)