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/python | |
# This code is public domain and can be freely used. | |
# | |
# This script echoes all replies it has received that are either | |
# prefixed or suffixed with @username | |
# | |
# Requirements: | |
# Python 2.5+ | |
# python-twitter: http://code.google.com/p/python-twitter/ | |
# simplejson: http://www.undefined.org/python/ |
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
# Basic setup (direct imap) | |
source ~/.mutt/imap-creds | |
set folder="imaps://mail.inoi.fi:993/" | |
set spoolfile="imaps://mail.inoi.fi:993/INBOX" | |
set postponed="+INBOX.Drafts" | |
set record="imaps://mail.inoi.fi:993/INBOX.Sent" | |
set query_command= "abook --mutt-query '%s'" | |
macro index,pager A "<pipe-message>abook --add-email-quiet<return>" "add the sender address to abook" |
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
import XMonad | |
import XMonad.Config.Gnome | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.EwmhDesktops | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Layout.ToggleLayouts as TL | |
import XMonad.Layout.PerWorkspace | |
import XMonad.Layout.NoBorders | |
import XMonad.Layout.ResizableTile | |
import XMonad.Util.Run(spawnPipe) |
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
import socket | |
def sockrecv(sock): | |
d = '' | |
while not d or d[-1] != '\n': | |
d += sock.recv(8192) | |
return d | |
NewerOlder