Jun
15
This script will lower the TTL on a directory full of zone files. I’ve used this with much success on many cPanel servers. I’m not sure how well it would work with other systems. My guess would be that it would work fine on any system using bind.
echo Backing up /var/named
mkdir /home/named.backup
rsync -aq —exclude=proc /var/named /home/named.backup
echo Lowering TTLs…
sed -e ’s/\s14400/ 300/g’ -i /var/named/*.db
echo Reloading zone files…
rndc reload
echo Done!
You will of course need to update the serial as well. I suggest using updateserial from http://cplicensing.net
Jun
15
My buddy rips and encodes his CDs with the AAC codec. This proves to be an issue if your mp3 player doesn’t support .m4a’s. Here’s a nice script to convert the m4a’s to mp3 using for loops and faad. You will need to install faad if you do not already have it installed.
#
# Dump m4a to wav (first step in conversion)
#-ao pcm:file=<filename> instead.
for i in *.m4a
do
faad -o - "$i" | lame -h -b 192 - "${i%m4a}mp3"
done
You can change the bitrate to whatever you prefer. In this script it is set to 192kbps. This value is set by the -b flag.
Jun
14
I created this prompt to match my irssi theme ski. Below are the parts necessary to have your own just like it. Insert this into your .bashrc and then source ~/.bashrc
GRAD1=‘\333\262\261\260′
GRAD2=‘\260\261\262\333′
YLOBRN=‘\[\033[01;33;43m\]‘
WHTBRN=‘\[\033[01;37;43m\]‘
REDBRN=‘\[\033[00;31;43m\]‘
REDBLK=‘\[\033[00;31;40m\]‘
PPLBLK=‘\[\033[01;35;40m\]‘
WHTBLK=‘\[\033[01;37;40m\]‘
CYNBLK=‘\[\033[01;36;40m\]‘
NONE=‘\[\033[00m\]‘
HBLK=‘\[\033[00;30;30m\]‘
HBLU=‘\[\033[01;34;34m\]‘
BLU=‘\[\033[00;34;34m\]‘
YEL=‘\[\033[00;33;33m\]‘
WHT=‘\[\033[01;37;37m\]‘
PRPL=‘\[\033[00;34;35m\]‘
RED=‘\[\033[01;31;31m\]‘
NORM=‘\[\033[01;00;0m\]‘
Jun
14
Black 0;30 Dark Gray 1;30 Blue 0;34 Light Blue 1;34 Green 0;32 Light Green 1;32 Cyan 0;36 Light Cyan 1;36 Red 0;31 Light Red 1;31 Purple 0;35 Light Purple 1;35 Brown 0;33 Yellow 1;33 Light Gray 0;37 White 1;37
Pages
Your List
- Your list items
- Your list items
- Your list items
- Your list items
- Your list items


