When cloning vm’s inside a ESX I always get a eth1 instead of eth0. So here is what I do to fix that. Step #1:Get Mac ifconfig -a | grep hwaddr eth0 Link encap:Ethernet HWaddr b8:ac:6f:65:31:e5 Step #2: Rename eth1 […]
check_backend.sh
Another bash script to monitor if there were any failed connections to the backend’s. It is a simple aproach using the command: varnishstat -1 -f backend_fail Then it puts the output on a tmp file and next time it runs […]
check_con.vbs
Check connections for windows A Visual Basic Script to check how many open connections exists in a certain port. Here is the code: ‘Script Check Number of ESTABLISHED connections ‘Author: Felipe Ferreira ‘Data: 29/07/2010 ‘Version: 1.0 (nagios) ‘———-NAGIOS VARs Const […]
How to connect NFS with a specfic user under CentOS/RedHat 6
How to connect NFS with a specfic user under CentOS/RedHat 6 ##SERVER SIDE## 1. On server side must have the insecure option enabled edit /etc/exports /exports/real 192.17.36.147/255.255.255.255(rw,nohide,insecure,no_subtree_check,sync) 2. Make the change exportfs -ra 3. Make sure it is running rpcinfo […]
free dyndns
There is a simple way to have a free dyndns account. Create an account here: https://www.dlinkddns.com/login Then go ahead and sign in to Homepage
Install a second Python on CentOS
Install a second Python on CentOS 1.download python 2.install to diff local configure –prefix=/opt/virtualenv/python make && make install 3.create virtual env using new python virtualenv /opt/virtualenv –python=/opt/python276/bin/python note: if needed it can be done with a different user chown pyuser […]
bash get analytics data
This is a bash script to get Google Analytics Data, in this case A total day Pageviews. Here is the code: #!/bin/bash # Get google anlytics pageview results # by Felipe Ferreira Dec 17 2013 # v1 #todo: get REAL […]