2015-10-21
- jennifer
- martym
| # Save as ~/.mailcap. Then use run-mailcap to: | |
| # | |
| # - open files by `run-mailcap --action=view <file>`, or | |
| # - view them in the terminal by `run-mailcap --action=cat <file>`. | |
| # | |
| # Useful | |
| # | |
| # - in mutt by `set mailcap_file $HOME/.mailcap` | |
| # - in Vim by adding to your vimrc | |
| # |
| #!/usr/bin/env python | |
| """ | |
| Use pip to get a list of local packages to check against one or more package | |
| indexes for updated versions. | |
| """ | |
| import sys | |
| import xmlrpclib | |
| import subprocess | |
| from distutils.version import StrictVersion, LooseVersion |