Month: August 2006

  • scp – Copy files to another server in SSH

    Say you need to replicate a huge MySQL database to another machine and dumping and import the database might take hours, copy the binary files (/var/lib/mysql/DB_NAME) might be a quicker method. To do that, we can use scp: s1# scp -P SSH_PORT /var/lib/mysql/DB_NAME/ user@s2:/var/lib/mysql/DB_NAME/ You would also need to chmod (644) & chown (mysql:mysql) the…

  • California Tax Cheats

    Examples of abusive tax shelter schemes identified: Basis Shifting: This tax scheme uses foreign corporations (in tax haven countries) and instruments to artificially increase and shift the basis of foreign shareholder stock (not subject to U.S. taxation) to stock owned by U.S. shareholders. By applying tax laws in a manner inconsistent with legislative intent, U.S.…

  • Remote kernel upgrade

    If for some/many reasons after a kernel upgrade, the system does not reboot. Some hosting control panels can reboot the server into rescue mode. In this mode, you can edit the lilo.conf to go back to the previous working kernel. Make sure you backup the file first. # check for available partitions fdisk -l #…

  • powercfg – Save power when using battery

    A not-very-popular tool to adjust power configurations in command mode. Run “powercfg /?” C:\Documents and Settings\mathie>powercfg /? POWERCFG [/LIST | /QUERY [name] | /CREATE name | /DELETE name | /SETACTIVE name | /CHANGE name settings | /HIBERNATE {ON|OFF} | /EXPORT name [/FILE filename] | /IMPORT name [/FILE filename] | /GLOBALPOWERFLAG {ON|OFF} /OPTION flag | /BATTERYALARM…