Posts
Gmail (& Google Apps) & IPv6
It seems that Google’s anti spam measurement for IPv6 is basically checking if the IP has a reverse DNS. If not, reject the e-mail:
This is the mail system at host rootspirit.com. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. The mail system <xxx@gmail.com>: host gmail-smtp-in.l.google.com[2a00:1450:4013:c01::1b] said: 550-5.7.1 [2001:1af8:3100:a00a:21::1010 12] Our system has detected that 550-5.7.1 this message is likely unsolicited mail. To reduce the amount of spam 550-5.7.1 sent to Gmail, this message has been blocked. Please visit 550-5.7.1 http://support.google.com/mail/bin/answer.py?hl=en&answer=188131 for 550 5.7.1 more information. df5si15766518wjb.42 - gsmtp (in reply to end of DATA command)
There is no difference if the mail is a one word e-mail or a wall of text that crits over 9000.
Wheezy Xen Dom0 & RAM
Note to self: <1Gb of RAM on a Dom0 Wheezy server causes kernel panics.
Using 2Gb of RAM seems to do the trick.
Deleting big files from your git history
I committed a couple of big binary files, which eventually really slowed down Git.
Unchanged: This is how you find them, and delete them:
Script (will show top 10 biggest files):
#!/bin/bash
#set-x
# Shows you the largest objects in your repo's pack file.
# Written for osx.
# @see http://bit.ly/UmpwkV
# @author Antony Stubbs
# set the internal field separator to line break,
# so that we can iterate easily over the verify-pack output
IFS=$'\n';
# list all objects including their size, sort by size, take top 10
objects=`git verify-pack -v .git/objects/pack/pack-*.idx | \
grep -v chain | sort -k3nr | head`
echo "All sizes are in kB's. The pack column is the size of the object, \
compressed, inside the pack file."
output="size,pack,SHA,location"
for y in $objects
do
# extract the size in bytes
size=$((`echo $y | cut -f 5 -d ' '`/1024))
# extract the compressed size in bytes
compressedSize=$((`echo $y | cut -f 6 -d ' '`/1024))
# extract the SHA
sha=`echo $y | cut -f 1 -d ' '`
# find the objects location in the repository tree
other=`git rev-list --all --objects | grep $sha`
#lineBreak=° echo e "\n"*
output="${output}\n${size},${compressedSize},${other}"
done
echo -e $output | column -t -s ', '
And then:
