Skip to content

Instantly share code, notes, and snippets.

View bifocalpirate's full-sized avatar
🎯
Focusing

Not Jackie Gelantis bifocalpirate

🎯
Focusing
View GitHub Profile
#!/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.
@bifocalpirate
bifocalpirate / gist:2d9007a50c35ab49d22604303c0710c4
Created December 27, 2016 21:32
colourize raspberry pi motd
#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