Category Archive: Online Marketing

Nov 24

Fix yum hang on CentOS

ls -l /var/lib/rpm rm -f /var/lib/rpm/__db* rpm -vv –rebuilddb rm /var/run/yum.pid yum yum clean all OPTIONAL: yum update

Jul 26

du without the du command

Print the number of bytes of storage capacity the current directory recursively uses:

ls -lR $1 | grep -v ^d | awk ‘{total+=$5;} END {print total;}’

Oct 21

Unix Cheat Sheet

Turn off color in viĀ 

:syntax off

 

Line count output (rate) per 1 second (e.g. to determine # of apache web requests at 1 second intervals)

tail -f access.log|perl -e ‘while (<>) {$l++;if (time > $e) {$e=time;print “$l\n”;$l=0}}’

 

Continue reading »

Feb 17

Start in Amazon’s Cloud with TLC

Amazon’s Elastic Cloud Computing (EC2) services are the next major technology wave invigorating and re-inventing American businesses big and small, and for good reason. Learn more about the rationale for picking AWS, implementing Chef Server, and why account creation and management by TLC can be the easiest and quickest way to get started in the Cloud.