Upgrade all software on CentOS

Most yum repos are out of date, many choose to run outdated software for fear of change, etc. wget -q -O – http://www.atomicorp.com/installers/atomic.sh | sh yum upgrade

Blackberry + “A” Key + uo

You probably have found this post after searching numerous sites… all with the wrong answer. 1. It is NOT moisture 2. It is NOT “dirty contacts” on the keyboard 3. It is NOT the trackball 4. You do not need to wipe your BlackBerry with JL_Cmder and reinstall the OS. I did all of the ...

Excellent Number List Generator

A very cool little website I found to generate sequential number lists: http://textmechanic.com/Generate-List-of-Numbers.html Also generate random number lists.

Shell Script: Create Range of Numbers

for i in {1..5}; do echo $i; done Change 1..5 to the range you want. for i in {2..5999}; do echo $i; done

Unix Shell Script: Convert upper to lowercase text

One command magic: tr ‘[:upper:]’ ‘[:lower:]’ < input.txt > output.txt

Common CentOS Run levels

Common services and their run levels for auto start httpd: chkconfig –level 234 httpd on named: chkconfig –levels 35 named on vsftpd: chkconfig –level 234 vsftpd on -level 234 is fairly common

CentOS: Alias IP Ranges

cd /etc/sysconfig/network-scripts Quick and easy range of ips: Add this file: ifcfg-eth0-range0 Contents: IPADDR_START= 11.xxx.xxx.xxx IPADDR_END= 11.xxx.xxx.xxx CLONENUM_START=0 If you want to add another range: Add this file: ifcfg-eth0-range1 IPADDR_START=10.xxx.xxx.xxx IPADDR_END=10.xxx.xxx.xxx CLONENUM_START=11 Pay close attention to CLONENUM_START. In the second range it must be a number higher than the amount of IPs adding in range0. ...

YUM repo massive update

rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm http://dag.wieers.com/rpm/FAQ.php#B

Perl Single Line – Search and Replace

perl -pi -e ‘s/about news\.$/about selling advertising space\./’ file*

How many cigarette cartons can be brought into the USA?

This is first hand experience! You can bring 1 carton of cigarettes into the USA duty free. Each carton after that is taxed at $10 per carton and it must be paid before leaving Customs/Immigrations to your connecting flight. The process is extremely quick and easy.