clearing the arp cache in linux

You can clear the arp cache using following commands: Current arp cache root@server [~]# arp -n Address HWtype HWaddress Flags Mask Iface 70.167.140.1 ether 00:00:0C:9F:F0:04 C eth0   Clearing arp cache with verbose root@server [~]# ip -s -s neigh flush all 70.167.140.1 dev eth0 lladdr 00:00:0c:9f:f0:04 ref 42 used 17/0/65 REACHABLE *** Round 1, deleting…


Villustrator

From bilalquadri.com Here is a nice little addition to vi or vim. You can create a custom theme for vi/vim and download it to use locally. Nice! From their FAQ: Where do I put the colorscheme I just downloaded? The colorscheme should be put in “~/.vim/colors”. If those directories don’t already exist, you will need…


Reset visual and editor to use Vim

Hi, I ran across a small issue where the client wanted to use vim as the default editor for crontab as opposed to pico. I was able to modify this by using the following commands; EDITOR=vim; export EDITOR VISUAL=vim; export VISUAL=vim and done… Now, when editing crontab, it uses vim. Simple.


Install Mongodb

From mongodb.org From if-not-true-then-false.com From php.net To install mongodb, add the appropriate repo information below for your distribution version (x86_64 or i686) to /etc/yum.repos.d/10gen.repo: vim /etc/yum.repos.d/10gen.repo add [10gen] name=10gen Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 gpgcheck=0 or [10gen] name=10gen Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686 gpgcheck=0 then run yum update && yum install mongo-10gen mongo-10gen-server Check the basic mongodb configuration settings before starting…


Edit cPanel nameserver IP’s

As of WHM 11.30, the nameservers’ IP assignments are now read from the Zonefiles and actual DNS queries after recent updates. If you are not seeing the needed IPs in /etc/nameserverips please do not attempt to edit that file, as it is now overwritten by cPanel. Check under WHM: Main >> DNS Functions >> Nameserver…


IO wait Load Tracking

From http://balajitheone.blogspot.com IO wait load tracking to a process. How to identify what processes are generating I/O wait load. ————————————————————- An easy way to identify what process is generating your IO Wait load is to enable block I/O debugging. This is done by setting /proc/sys/vm/block_dump to a non zero value like: echo 1 > /proc/sys/vm/block_dump…


Installing the H264 Streaming Module for Apache

Installing the streaming module can be a problem sometimes. This is a simple install guide which worked fine in a standard Cent5/cpanel server: cd /usr/src wget http://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz tar -xzvf apache_mod_h264_streaming-2.2.7.tar.gz cd mod_h264_streaming-2.2.7 ./configure –with-apxs=’which apxs’ make && make install add the following entries via vim /usr/local/apache/conf/httpd.conf add AddHandler h264-streaming.extensions .mp4 LoadModule h264_streaming_module /usr/local/apache/modules/mod_h264_streaming.so then… service…


Define

Just a quick script for looking up the definition of a word via the commandline… touch define vim define add the following code then :wq to save #! /bin/bash # display definition of a word # curl –stderr /dev/null dict://dict.org/d:$1 | sed ‘/^[.,0-9].*$/d’ then, chmod +x define mv define /usr/bin/define Usage # define linux Linux…


Monitor file changes live

Here’s a quick one for ya… watch -d -n 2 “df; ls -FlAt;” This brings up a top like interface which every 2 seconds shows files which are being written to. Enjoy 🙂


Mikogo

Looking to host an online meeting without paying through the teeth? Look no further. Mikogo is a free desktop sharing tool full of features to assist you in conducting the perfect online meeting or web conference. Take advantage of the opportunity to share any screen content or application over the Internet in true color quality…