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. ...

Best Exterior Paint For Florida

If you are reading this then you know how quickly paint is eaten up on the West facing side of your home. My house is two years old, was painted with semi-gloss “high quality” Coronado paint, and it is ready to be painted. Update 11/20/12:   Since the above post I have painted my house with ...

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*

American Meadows Coupon Codes

$10 off your next order Use coupon code: “LOYAL” $5 off your next order Use coupon code: “SAVE”

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.

FreeBSD: Proper buildworld technique

Follow all these steps in this exact order…this is from hard-won experience!!! 1. cvsup the correct /usr/src – example cvsup files can usually be found in /root/sup. Normally we follow the security releases e.g. RELENG 6_2 rather than stable e.g. RELENG_6 2. read /usr/src/UPDATING to make sure nothing bad is going to happen. 3. rm ...

Arizona “Action to Foreclose”

Arizona Tax Lien “Action to Foreclose” notification process: 42-18202. Notice A. At least thirty days before filing an action to foreclose the right to redeem under this article, but not more than one hundred eighty days before such an action is commenced or may be commenced under section 42-18101 the purchaser shall send notice of ...