This file contains 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
# encoding: utf-8 | |
# | |
# Copyright (c) 2009 by ole <[email protected]> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 3 of the License, or | |
# (at your option) any later version. | |
# |
This file contains 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 | |
# encoding: utf-8 | |
from urllib.request import FancyURLopener | |
username = 'username' | |
password = 'superlongandhardpassword' | |
url = 'https://%s:%[email protected]/mail/feed/atom' % (username, password) |
This file contains 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 | |
# encoding: utf-8 | |
import re | |
LATIN_MAP = { | |
'À': 'A', 'Á': 'A', 'Â': 'A', 'Ã': 'A', 'Ä': 'A', 'Å': 'A', 'Æ': 'AE', 'Ç': | |
'C', 'È': 'E', 'É': 'E', 'Ê': 'E', 'Ë': 'E', 'Ì': 'I', 'Í': 'I', 'Î': 'I', | |
'Ï': 'I', 'Ð': 'D', 'Ñ': 'N', 'Ò': 'O', 'Ó': 'O', 'Ô': 'O', 'Õ': 'O', 'Ö': | |
'O', 'Ő': 'O', 'Ø': 'O', 'Ù': 'U', 'Ú': 'U', 'Û': 'U', 'Ü': 'U', 'Ű': 'U', |
This file contains 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 | |
# encoding: utf-8 | |
import cookielib | |
import urllib | |
import urllib2 | |
import re |
This file contains 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
# Text files | |
LS_TEXT_FILES=(229 txt js py rb c cpp sh conf cfg pl log xml html php cer cfm csr css htm jsp) | |
# Archive files | |
LS_ARCH_FILES=(161 zip 7z Z rar tar.gz tar tar.xz tar.bz2 bz2 gz tbz2 tgz) | |
LS_FILE_EXTS=(LS_TEXT_FILES LS_ARCH_FILES) | |
LS_COLORS="" | |
for e in ${LS_FILE_EXTS[*]}; do | |
eval c=(\${$e[*]}) |
This file contains 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 | |
# encoding: utf-8 | |
# to read the notifications from your local machine use something like this: | |
# ssh [email protected] ": > ~/.weechat/onotify.log ; tail -f -q -s 2 ~/.weechat/onotify.log" | while read message; do notify-send "Weechat" "${message}"; done | |
import os.path | |
import weechat | |
SCRIPT_NAME = 'onotify' | |
SCRIPT_AUTHOR = 'Ole Bergmann <[email protected]>' |