Wednesday, July 7, 2010
Tuesday, July 6, 2010
Using procmail with postfix to filter mail
Look in /etc/postfix/main.cf
Look for this line ( change to this ):
Look for this line ( change to this ):
mailbox_transport = procmail
mailbox_command = /usr/bin/procmail -t -a "$EXTENSION"
Create/Edit ~/.procmailrc
PATH=$PATH:/bin/:/procmail/bin:/usr/bin:$HOME/procmail/bin
SHELL=/bin/bash
DEFAULT=/var/mail/prm
MAILDIR=$HOME/
LOGFILE=$HOME/procmail/log/procmail.log
:0:
*
| $HOME/procmail/bin/poster.sh
Monday, July 5, 2010
Equivalent print_r in PHP -> Ruby
For PHP developer just enter the Ruby on Rails world.
To debug an array[PHP] we use print_r($array_name):
In Ruby on Rails, we can use :: <%= debug you_object_name %> in the view.
Subscribe to:
Posts (Atom)
Proxmox installation display out of range
Reference: https://forum.proxmox.com/threads/proxmox-ve-screen-out-of-range.131297/
-
How to remove BBCODE from a string ? <?php $String = "[b][color=#0000ff]TEST[/color][/b]"; $regex = '|[[\/\!]*?[^\[\]...
-
Original Source:: http://www.zytrax.com/tech/pc/serial.html Tech Info - USB and Firewire USB and FireWire (IEEE 1394a and b) represent the...