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 […]
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 […]
How to add a disk to lvm
Add disk and expand in a Logical Volume no reboot, but not for /root /(boot). Tested in Linux CentOS/RedHat 5.7 /var First add a disk in (VMWare) Scan echo “- – -” > /sys/class/scsi_host/host0/scan fdisk -l fdisk /dev/sdb n,p,1,w Format […]
vimrc example
This is a nice vi / vim color schema Edit ~/.vimrc set cindent set shiftwidth=3 set tabstop=3 set expandtab set ruler ” some colors: “white on black” hi normal ctermfg=white ctermbg=black guifg=white guibg=black hi nontext ctermfg=blue ctermbg=black guifg=blue guibg=black […]
Change Netflix region
There is a simple way to watch the US netflix, change your DNS. Thats pretty much what sites like http://www.unblock-us.com/ offers for $5 a month. The way I did was: nslookup server 208.122.23.22 > netflix.com Server: 208.122.23.22 Address: 208.122.23.22#53 Name: netflix.com […]
How to use lftp
This is a quite handy command, of course you have also curl and wget. But I kind of like lftp because there is so many diferent configurations that can be set, it seems it also work for torrents! The configuration […]
How to setup aws cmd line tools
To be able to execute the many API command line tools you will need to setup and configure the authentication correctly. This will help you to do just that. 1. Download the Autoscalling CLI, CloudWatch and ec2-API-Tools cd /opt wget […]