How varnish can identify mobile users In this example it basically finds out via regex on the user-agent tag if the user is mobile if so it redirect to a mobile site. sub identify_device { unset req.http.hash-input; set req.http.X-Device = […]
Nagios to check log vbs
I just wrote a quick plugin to check any txt file on windows for a certain keyword. I have written simillar plugins for linux but this one was done in vbs. ‘Script Check for keyword in a specific file ‘Author: […]
install yum centos 5
There is a simple way to install yum, even if you do not have the CD/DVD. CENTOS 5 64 bits. Just run rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/gmp-4.1.4-10.el5.x86_64.rpm rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/readline-5.1-3.el5.x86_64.rpm rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-2.4.3-43.el5.x86_64.rpm rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/libxml2-2.6.26-2.1.2.8.el5_5.1.x86_64.rpm rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/libxml2-python-2.6.26-2.1.2.8.el5_5.1.x86_64.rpm rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/expat-1.95.8-8.3.el5_5.3.x86_64.rpm […]
SSH Automatic Login
SSH Automatic Login Well I am tired of entering my password 100 times a day, are you too? The solution I wrote this script using the powerful expect download expect I actually use a more complex script since our root […]
Install Nagios on CentOS
Nagios 3 Quick Install on CentOS This is short/fast HowTo Install Nagios 3 on CentOS/RedHat 5 64bits ::INSTALL NAGIOS:: rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm yum update vim /etc/selinux/config SELINUX=disabled reboot yum -v -y install libstdc++-devel gcc-c++ httpd gd gd-devel kernel-devel openssl-devel perl-DBD-MySQL […]
How to setup Cluster on Glassfish v3
How to setup Cluster on Glassfish v3 This how to imposes that you already have glassfish v3 setup and: – running under the user “fish” – have ssh key trust between both servers (howto setup that) To setup glassfish it […]
ssh copy key
You can login to a remote Linux server without entering password in 3 simple steps using ssky-keygen and ssh-copy-id as explained in this article. The magical 3 commands are: ssh-keygen -t rsa ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host ssh remote-hostls /tmp ssh-keygen […]