This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
This code will process a folder containing .7z archives and output .zip files to a destation folder. It does the .7z extraction | |
and zipping natively. You can enable file logging at line 24. There are about 15000? files I needed to | |
convert so that's a useful config item. In my use-case I can assume the source folder is composed entirely of .7z files but I | |
do catch exceptions appropriately. | |
This software is released AS-IS. If your kittens end up having nightmares because of it, or something more or less as dramatic | |
you have been warned. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#sudo apt-get install toilet | |
toilet -f big "motd text in 'big' font" --filter gay --export ansi > motdfile | |
#sudo mv motdfile /etc/motd | |
logout to see updated motd | |