Skip to content

Instantly share code, notes, and snippets.

cat <<EOM | telnet localhost 25
EHLO localhost
MAIL FROM: duarnad@gmail.com
RCPT TO: wael.nasreddine@gmail.com
DATA
From: Arnaud Le Roy <duarnad@gmail.com>
To: Wael Nasreddine <wael.nasreddine@gmail.com>
Subject: Test Postfix/Amazon SES (Arnaud => Wael)
Test depuis postfix + amazon ses
diff -Naur a/bin/ses-send-email.pl b/bin/ses-send-email.pl
--- a/bin/ses-send-email.pl 2011-11-22 01:25:06.000000000 +0000
+++ b/bin/ses-send-email.pl 2011-11-22 01:26:07.000000000 +0000
@@ -77,6 +77,7 @@
# Read message body from STDIN.
sub read_message {
$opts{'m'} = join '', readline *STDIN;
+ $opts{'m'} =~ s/Precedence/X-Precedence/;
$opts{'m'} =~ s/^\x{FEFF}//;
}
# This is CPAN.pm's systemwide configuration file. This file provides
# defaults for users, and the values can be changed in a per-user
# configuration file. The user-config file is being looked for as
# /root/.cpan/CPAN/MyConfig.pm.
$CPAN::Config = {
'auto_commit' => q[1],
'build_cache' => q[100],
'build_dir' => q[/root/.cpan/build],
cat <<EOM | telnet localhost 25
EHLO localhost
MAIL FROM: wael.nasreddine@gmail.com
RCPT TO: listeune@affinitic.fr
DATA
From: Wael Nasreddine <wael.nasreddine@gmail.com>
To: listeune@affinitic.fr
Subject: Test Mailman/Postfix/Amazon SES (Arnaud => Wael)
Test depuis postfix + amazon ses
diff -Naur a/usr/local/bin/mvim b/usr/local/bin/mvim
--- a/usr/local/bin/mvim 2012-01-03 05:58:39.000000000 +0100
+++ b/usr/local/bin/mvim 2012-01-03 06:00:07.000000000 +0100
@@ -57,6 +57,10 @@
;;
esac
+# Unset GEM_HOME and GEM_PATH
+unset GEM_HOME
+unset GEM_PATH
@kalbasit
kalbasit / das_download.rb
Created February 27, 2012 23:37 — forked from maca/das_download.rb
Script to download all Destroy All Software screencasts, account needed
#! /usr/bin/env ruby
# usage:
# $ das_download.rb email password [download_directory]
require 'mechanize'
# gem 'mechanize-progressbar'
email = ARGV[0] or raise('Please provide the email address for your account')
password = ARGV[1] or raise('Please provide the password for your account')
path = (ARGV[2] || './').gsub /\//,''
#!/usr/bin/env ruby
#
# Proof-of-Concept RCE exploit against Gemcutter
#
# ## Advisory
#
# ## Caveats
#
# ## Synopsis
#
@kalbasit
kalbasit / mysql_my_cnf_utf8.patch
Created May 25, 2013 03:41
Mysql UTF8 utf8_unicode_ci Patch
diff -Naur a/my.cnf b/my.cnf
--- a/my.cnf 2013-05-24 15:56:51.311075819 -0700
+++ b/my.cnf 2013-05-24 20:39:26.679062359 -0700
@@ -19,6 +19,7 @@
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
+default-character-set = utf8
# Here is entries for some specific programs
@kalbasit
kalbasit / makefile.patch
Created May 26, 2014 18:25
Adding an extra env to inject liz.a
diff --git a/Library/Formula/notmuch.rb b/Library/Formula/notmuch.rb
index 4840475..019ce2a 100644
--- a/Library/Formula/notmuch.rb
+++ b/Library/Formula/notmuch.rb
@@ -12,9 +12,10 @@ class Notmuch < Formula
depends_on "gmime"
depends_on "zlib"
+ patch :DATA
+
@kalbasit
kalbasit / travis.sh
Last active August 29, 2015 14:02 — forked from rejeep/travis.sh
#!/bin/sh
# This script will setup Evm and Cask on Travis to use for Emacs Lisp testing.
#
# In .travis.yml, add Evm and Cask to PATH.
#
# - export PATH="/home/travis/.evm/bin:$PATH"
sudo mkdir /usr/local/evm
sudo chown travis:travis /usr/local/evm