Monthly Archives: October 2009

disable syslogd network logging

0
Filed under WEB-DEV-LOG
Tagged as

/etc/rc.conf
syslogd_flags=”-ss”

Simple Machines Forum

0
Filed under WEB-DEV-LOG
Tagged as

SMF

TinyPortal

  • Author: Bloc
  • Submitted On: February 10, 2005, 12:54:12 PM
  • Last Updated: July 06, 2009, 10:55:32 AM
  • Total Downloads: 5794
  • SMF Versions: 1.0, 1.0.1, 1.1.8, 1.1.9

SimplePortal

  • Submitted On: February 20, 2008, 10:36:24 AM
  • Last Updated: September 02, 2009, 09:53:00 AM
  • Total Downloads: 61626
  • SMF Versions: 1.1.10, 2.0 RC1.2

BASH Shell script – foreach file in a directory

0
Filed under WEB-DEV-LOG
Tagged as
Example that lists all files in the /tmp directory.

#!/bin/sh

for filename in /tmp/*
do
  echo $filename
done;

wordpress bbpress

0
Filed under WEB-DEV-LOG
Tagged as

function wpbb_footer()
{
if (!get_option(‘wpbb_regards’) || get_option(‘wpbb_regards’) == ‘enabled’)
echo ‘<p style=”text-align:center;”>[ bbPress <a href="http://bobrik.name/code/wordpress/wordpress-bbpress-syncronization/">synchronization</a> by <a href="http://bobrik.name/cv">bobrik</a> ]</p>’;
}

change sql to disable

Spam fighter

0
Filed under WEB-DEV-LOG
Tagged as

spamhaus FAQ

Forward-confirmed reverse DNS

Zombie computer

E-mail authentication

DomainKeys

Sender Policy Framework

BSD windowing system

0
Filed under WEB-DEV-LOG
Tagged as

SLiM for Login Manager (XDM Replacement)

Fluxbox, is less demanding than xfce

Setting up X.org and FluxBox on FreeBSD

Setting up FluxBox on FreeBSD

Bronze truck rim

0
Filed under WEB-DEV-LOG
Tagged as

XD Series XD779 Badlands Wheel




HTML tidy / ultraedit

0
Filed under WEB-DEV-LOG
Tagged as

Command “XML Convert to CRLFs” is mainly for XML, but works also for XHTML. You don’t need to change the file extension to use it for HTML. You just have to select the XML syntax highlighting language at View – View As (Highlighting File Type) for your file.

However, for HTML there is usually a better tool than “XML Convert to CRLFs”, Format – HTML Validation – Run HTML Tidy. HTML Tidy is a tool to check a HTML file for errors and can also output a well formatted version of a HTML file. You just have to configure the HTML Tidy options to what you like. Read the HTML Tidy manual for details about the options.

sed

0
Filed under WEB-DEV-LOG
Tagged as

$ sed -i ‘s/ugly/beautiful/g’ /home/bruno/old-friends/sue.txt

SMTP DNS MX

0
Filed under WEB-DEV-LOG
Tagged as

An MX record is made up of two parts.

1. The host. This will be something along the lines of mail.example.com and will point to an IP address. You can use a CNAME if you wish, but there isn’t much point as it just slows things down.

2. The MX record itself. This points to a host. Pointing the MX record to an IP address is not valid. While it will work in some cases, you will get failures. The host in the MX record does not have to be in the same domain that it is serving. For example you could have the domain “xample.net” with its MX records pointing to “mail.example.com”. The host just needs to be valid. However the name used on the host does play a part with the other DNS configurations made.

If you are hosting multiple domains, then you can use the same host and MX record information for all of the domains. This will also help with reverse DNS and the name of the server (see below).

The MX weight or priority indicates which server should be used first. The lowest number is tried first. This is usually incremented in units of five. Five is the lowest, followed by ten, fifteen etc. It is very rare to see the number one.

However, be careful with the priority value. Some spammers will use the higher values on purpose, hoping that the higher numbers are backup servers without the antispam tools.

Furthermore, if you are relying on a server with a higher number to receive your email, make sure that the lower numbers are not accessible. If they initially connect then the sending server could be sat in retry mode, instead of moving on to the next server in the MX list.


Reverse DNS


Reverse DNS is also important. In many cases the reverse DNS information is used to check that your server is who it says it is. The RDNS record (also known as PTR) is attached to the IP address. As such you can only have one Reverse DNS per IP address.


The reverse DNS should ideally match the MX record, and what your server has on the SMTP banner when connecting.