pflogsumm.pl is designed to provide an over-view of postfix activity, with just enough detail to give the administrator a “heads up” for potential trouble spots.
emerge net-mail/pflogsumm
pflogsumm.pl is designed to provide an over-view of postfix activity, with just enough detail to give the administrator a “heads up” for potential trouble spots.
emerge net-mail/pflogsumm
#!/bin/sh
/usr/bin/rsync -avxE –delete /var/www/prebid/upload /home/rimmon/daily_backup
本來是想在我的 sparc 裝 solaris 10 再裝 oracle 來玩的….沒想到搞半天 solaris 一直說抓不到 SCSI HD….orz
因為我的 SCSI CDROM 一直無法 boot cdrom , 所以改採 boot net
要 enable kernel 以下的 options ….
及相關 rules
emerge dev-php/PEAR-Cache_Lite
require_once "Cache/Lite.php";
define('ENABLE_CACHE_LITE',1);
function _fn_get_data_from_cache($key) {
$options = array(
'cacheDir' => '/tmp/',
'lifeTime' => 10,
'pearErrorMode' => CACHE_LITE_ERROR_DIE
);
if (ENABLE_CACHE_LITE) {
$cache=new Cache_Lite($options);
if ($data=$cache->get($key)) {
// got data from cache_lite then return
return $data;
}
}
// not found! then do the process
// sample
$data=time();
if (ENABLE_CACHE_LITE) {
$cache->save($data);
}
return $data;
}
// ======
$key='abc';
echo _fn_get_data_from_cache($key);
gentoo linux kernel 2.6.20 用 iptables
compile options
— Networking
—- Networking options
—— Network packet filtering framwork
——– Core Netfilter Configuration
Netfilter Xtable 用 modules 方式 compile