Skip to content

Instantly share code, notes, and snippets.

@echo off
REM This script should delete any settings for your local
REM installation of Sublime Text 2. It will then create
REM sym-links that point to your Dropbox folder
SET dropboxSettingDir=%USERPROFILE%\Dropbox\Apps\Sublime Text 2\
SET sublimePluginDir=%APPDATA%\Sublime Text 2\
echo Local Settings Dir: %sublimePluginDir%
# Adding Yii PHP framework project into Git repository
# http://code.dimilow.com/adding-yii-php-framework-project-into-git-repository/
# Recursively add a .gitignore file to all directories
# in the working directory which are empty and don't
# start with a dot. Helpful for tracking empty dirs
# in a git repository.
for i in $(find . -type d -regex ``./[^.].*'' -empty); do touch $i"/.gitignore"; done;
# Global maildrop filter file
DEFAULT="$HOME/MailDir"
AUTOREPLYFILE="$HOME/AutoReply"
HASAUTOREPLY=`test -e $AUTOREPLYFILE && echo YES`
# If the Spam-Flag is set, move the mail to the Junk folder
if (/^X-Spam-Flag:.*YES/)
{
# $Id: maildroprc.in,v 1.1 2010/02/02 03:41:35 ak Exp $
#
# maildroprc for virtual mailbox
#
PATH='/usr/local/virtmail/bin:/usr/local/virtmail/sbin:/usr/local/bin:/usr/bin:/bin:.'
SHELL='/bin/sh'
UMASK='077'
logfile '/var/log/maildrop-virtual.log'
RECIPIENT="$1"

Platform requirements:

The project is designed for the Linux operating system.

It may work on FreeBSD and Mac OS, but we don't test our application for these systems and can't guarantee stability and full functionality.

We officially support (recent versions of) these Linux distributions:

  • Ubuntu Linux
  • Debian/GNU Linux
#!/bin/bash
postconf -d >/root/postfix.defaults
postconf >/root/postfix.conf
diff -u /root/postfix.defaults /root/postfix.conf | grep -v '^ '|grep -v '^@' |grep -v '^---' | grep -v '^+++'
show_deferred_message() { postcat `find /var/spool/postfix -name $1 | grep deferred` | less; }
#!/bin/bash
app="whiptail --backtitle 'Postfix Queue Manager - stwalkerster.net Cluster' --clear --nocancel"
while true; do
queue=`ls /var/spool/postfix/hold/`
menulist=""
for i in $queue; do
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
#smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_banner = $myhostname ESMTP ready
#!/bin/bash
SERVICES=('zabbix_agentd' 'sshd' 'denyhosts' 'httpd' 'mysqld' 'postfix' 'amavisd')
for service in ${SERVICES[@]}; do
proc_count=`ps ax | grep -v 'grep' | grep -c "$service" 2>/dev/null`
if [ $proc_count -eq 0 ]; then
echo "start ${service}..."
/etc/init.d/${service} start
fi;