funky networking bug

Able to download at 8-20 Mbps, only able to upload at 300kbps. Advertised rate is more than 10x that. It was on all uploads I tried (ssh, ftp, http). Aside: it is nearly impossible to do anything on Charter’s website but get stuck in their endless “help pages”. Finally called Read more

xcp add disk

xe sr-list #gives you a list of sr’s from which to pick a sr-uuid xe vdi-create sr-uuid= name-label= type=user virtual-size= #the above vdi-create outputs a vdi-uuid xe vm-list # gives you a list of vm’s from which to pick a vm-uuid xe vbd-create vm-uuid= vdi-uuid= bootable=false mode=RW type=Disk device= #pick Read more

new vps with centos 6 for tinydns secondary

yum update -y ; vi /etc/sysconfig/iptables; #configuring iptables is an exercise for the reader iptables-restore /etc/sysconfig/iptables; /etc/init.d/httpd stop; chkconfig –del httpd; /etc/init.d/sendmail stop; chkconfig –del sendmail; /etc/init.d/xinetd stop; chkconfig –del xinetd; #install daemontools (djb does crazy things with symlinks – trust me when I say you want this package installed Read more

backup to warm-swapable disk

#physically insert disk # on this next line the hostN number may be different echo “- – -” > /sys/class/scsi_host/host5/scan mount /dev/sdc1 /mnt rsync -aHxv /boot /mnt rsync -aHxv /dev /mnt rsync -aHxv / /mnt #this is for a special home directory mount –bind / /media rsync -axv /media/home/user /mnt/home/ Read more

djbdns dnscache

This is great simple way to get off of your ISP’s dns, e.g. stop them redirecting you to their search partner when you typo. And very handy if you’re working with DNS or changing webhosts, in that a quick sudo killall dnscache clears out your cache so you can see Read more