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
Delivered-To: [email protected] | |
Received: by 10.220.159.20 with SMTP id h20cs25679vcx; | |
Fri, 16 Sep 2011 03:52:22 -0700 (PDT) | |
Received: by 10.52.174.84 with SMTP id bq20mr613772vdc.3.1316170342554; | |
Fri, 16 Sep 2011 03:52:22 -0700 (PDT) | |
Return-Path: <> | |
Received: from a192-92.smtp-out.amazonses.com (a192-92.smtp-out.amazonses.com [199.255.192.92]) | |
by mx.google.com with ESMTP id r8si2177380vcv.204.2011.09.16.03.52.22; | |
Fri, 16 Sep 2011 03:52:22 -0700 (PDT) | |
Received-SPF: pass (google.com: best guess record for domain of a192-92.smtp-out.amazonses.com designates 199.255.192.92 as permitted sender) client-ip=199.255.192.92; |
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
[b]NOTE: This is not a perfect solution and I just checked the bounce case for non-existing email address.[/b] | |
Dude, here is a workaround to let CiviCRM uses Amazon SES . A patch can be found here - | |
[url]https://gist.github.com/1223565[/url]. Let me explain the intention of the patch first. | |
Amazon SES has a set of restricted email headers | |
(see [url]http://docs.amazonwebservices.com/ses/2010-12-01/DeveloperGuide/index.html?AppendixHeaders.html[/url]), | |
thus the "Precedence" header has to be removed. And, Amazon SES may rewrite the envelope From, Bounces-To, and | |
Return-Path headers. As a result, the Return-Path header is no longer reliable for bounce checking in | |
EmailProcessor (see sample bounce notification from Amazon [url]https://gist.github.com/1223583[/url]). |
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
# Put this snippets to .bash_rc :) | |
# enable bash completion in interactive shells | |
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then | |
# Include ~/.bash_completion.d/ | |
BASH_COMPLETION_COMPAT_DIR=~/.bash_completion.d | |
. /etc/bash_completion | |
fi |
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
diff --git a/git_fix_whitespace.py b/git_fix_whitespace.py | |
index 39f6807..0c72f5f 100755 | |
--- a/git_fix_whitespace.py | |
+++ b/git_fix_whitespace.py | |
@@ -15,7 +15,7 @@ def sanitize_line(line): | |
return line | |
-def sanitize_diff(git_diff): | |
+def sanitize_diff(git_diff, git_root): |
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
#!/bin/bash | |
# Usage: tz.sh from-timezone to-timezone time | |
# Example: tz.sh America/Los_Angeles America/New_York '2000-01-01 00:01:02' | |
from=$1 | |
to=$2 | |
if [[ "$3" == "" ]]; then | |
time=`date -R` | |
else | |
time=$3 |
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 | |
# Usage: urldecode.py url | |
import urllib | |
import sys | |
print urllib.unquote_plus(sys.argv[1]) |
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
#!bash | |
# | |
# Enable file/directory completion for git. | |
# | |
# bashref - http://is.gd/PHQRX1 | |
# bashlib - http://code.google.com/p/bash-completion-lib/ | |
have git && { | |
_git_completion() | |
{ |
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 bash | |
sudo smtp-sink -R /tmp -u root -d "mail.%Y-%m-%dT%H%M." 127.0.0.1:25 1024 |
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
" Smart indenting for Python | |
autocmd FileType python set smartindent | |
autocmd FileType python set cinwords=if,elif,else,for,while,try,except,finally,def,class | |
autocmd FileType python set tabstop=4 | |
autocmd FileType python set shiftwidth=4 | |
autocmd FileType python set expandtab |
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
# Fuck off httplib2 reporting failed SSL cert verification. | |
import httplib2 | |
import certifi | |
httplib2.CA_CERTS = certifi.where() |