Skip to content

Instantly share code, notes, and snippets.

Avatar

Jun Morimoto mrmt

View GitHub Profile
@mrmt
mrmt / gist:1523116
Created Dec 27, 2011
/etc/postfix/reject_ip
View gist:1523116
# Search the named access database for the client name, parent domains,
# client address, or networks obtained by stripping least significant
# octets. Reject if the result is REJECT or "[45]XX text". Permit otherwise.
# The access_map_reject_code parameter specifies the response code for
# REJECT results (default: 550).
12.214.13.167 REJECT
12.216.246.48 REJECT
12.217.142.247 REJECT
12.217.242.193 REJECT
@mrmt
mrmt / gist:1523121
Created Dec 27, 2011
/etc/postfix/helo_checks
View gist:1523121
# $Id: helo_checks,v 1.1 2008-07-26 04:09:08 morimoto Exp $
# $Source: /var/cvs/postfix-conf/helo_checks,v $
DH.vicp.net REJECT
MY-TOMATO.vicp.net REJECT
arkmx0.rmail.ne.jp REJECT
changqing10.vicp.net REJECT
compuserve.com REJECT
dianxin1.vicp.net REJECT
dianxin_05.vicp.net REJECT
dragon01.vicp.net REJECT
@mrmt
mrmt / gist:1523127
Created Dec 27, 2011
/etc/postfix/header_checks
View gist:1523127
# $Id: header_checks,v 1.5 2008-07-26 04:05:52 morimoto Exp $
# $Source: /var/cvs/postfix-conf/header_checks,v $
/^From: .*@bghnjk\.com/ REJECT NS001
/^From: .*@bmuv\.com/ REJECT NS002
/^From: .*@bhwu\.com/ REJECT NS003
/^From: .*@dgdte\.com/ REJECT NS004
/^From: .*@dsssf\.com/ REJECT NS005
/^From: .*@eudhr\.com/ REJECT NS006
/^From: .*@euryt\.com/ REJECT NS007
@mrmt
mrmt / gist:1523129
Created Dec 27, 2011
/etc/postfix/body_checks
View gist:1523129
# $Id: body_checks,v 1.3 2008-07-26 04:05:52 morimoto Exp $
# $Source: /var/cvs/postfix-conf/body_checks,v $
# 注意: 以下は短縮URLサービスなのでむやみに追加しないこと
# eid.jp, mooo.jp, slimurl.jp, fm7.biz
/catvmagic\.12345\.pl/ REJECT L605
/(concon12454\.dynu|m-master\.letsjoin)\.net/ REJECT L606
/catv\.sppd\.ne\.jp/ REJECT L607
/kyohi@starline\.ee/ REJECT L608
View gist:3156329
From: "Mark Zuckerberg"<Ebertilene@gmail.com>
Subject: URGENT
Date: Sun, 22 Jul 2012 02:06:56 +1000
Account Auditor
Mr. Mark Zuckerberg
E-mail: zuckerberg.mark@aol.com
Dear Customer/Beneficiary;
@mrmt
mrmt / refollow.pl
Created Sep 5, 2012
re-follow twitter followers
View refollow.pl
#!/usr/bin/perl
# get consumer keys and access token from http://dev.twitter.com/apps/new
use utf8;
use strict;
use warnings;
use Net::Twitter;
use YAML::Tiny;
use Data::Dumper;
sub usage{
@mrmt
mrmt / seen
Created Oct 12, 2012
rename mail file within Maildir to seen status
View seen
#!/usr/bin/perl
# rename mail file within Maildir to seen status
use strict;
use warnings;
my $file = shift;
die unless -r $file;
die unless -f $file;
@mrmt
mrmt / 101.reg
Created Oct 21, 2012
Registry to force Windows 7 to use US keyboard
View 101.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\i8042prt\Parameters]
"LayerDriver JPN"="kbd101.dll"
"OverrideKeyboardIdentifier"="PCAT_101KEY"
"OverrideKeyboardType"=dword:00000007
"OverrideKeyboardSubtype"=dword:00000000
@mrmt
mrmt / follow-back.pl
Created Dec 1, 2012
following back my twitter followers
View follow-back.pl
#!/usr/bin/perl
# following back my twitter followers
# get consumer keys and access token from http://dev.twitter.com/apps/new
use utf8;
use strict;
use warnings;
use Net::Twitter;
use YAML::Tiny;
sub usage{
@mrmt
mrmt / calendarserver
Created Dec 31, 2012
/etc/default/calendarserver
View calendarserver
# Defaults for calendarserver initscript (/etc/init.d/calendarserver)
# This is a POSIX shell fragment
# uncomment to start calendarserver on system startup
start_calendarserver=yes
# options to pass to calendarserver on startup
#DAEMON_OPTS=""