Archive by Author

Agile – short ideas

Do not develop an attachment to any one weapon or any one school of fighting Miyamoto Musashi, 17th century Samurai Agile Agile software development is a group of software development methods based on iterative and incremental development, where requirements and … Continue reading

Linux IO speed test

dd if=/dev/zero of=/tmp/output.img bs=8k count=256k rm /tmp/output.img

very simple slideshow

DEMO HERE I recently uploaded a slideshow on github. It’s very simple to use as 1-2-3: 1. you build a list of html elements like: 2. you include the css, js libraries in the header 3. you start the slideshow … Continue reading

install ntop on centos 5 with whm/cpanel environment

———- install ruby ——————– /scripts/installruby ———- install libpcap ——————– yum install libpcap-devel libpcap I removed from /etc/yum.conf : ruby and perl from the exclude list vi /etc/yum.conf ———- install rrdtool ——————– yum install rrdtool yum install rrdtool-devel ———- install nDPI … Continue reading

Real IP in apache acces logs whm/cpanel

in /usr/local/apache/conf/includes/post_virtualhost_global.conf add LogFormat “%{X-Forwarded-For}i %h %l %u %t \”%r\” %>s %b \”%{Referer}i\” \”%{User-Agent}i\”” combined

Some DOS/DDOS protection

Bellow I describe how to avoid some denial of service attacks TCP syn flood attacks This kind of attack assumes that an attacker is sending syn packets to the server but not any ACK packets, because of this breaking the … Continue reading

Cakephp 1.3 and php 5.4

A quick notice how to disable the errors that appear after upgrading the php to 5.4 which is by the way a lot faster than ever before. cake/bootstrap.php replace: error_reporting(E_ALL & ~E_DEPRECATED); with error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT); cake/libs/debugger.php after: … Continue reading

centos install memcached and memcache php module

1. yum install memcached 2a. wget http://pecl.php.net/get/memcache-3.0.6.tgz 2b. tar -xvf memcache-3.0.6.tgz here is a little storry, we need to use phpize to prepare the imagick php extension for compiling. On my server I have multiple php installations and if I … Continue reading