I got a little paranoid with MySQL running in Windows 2003, so I wrote a quick script to make backup script of the databases along with the save date:
@echo off
FOR /F “TOKENS=1* DELIMS= ” %%A IN (’DATE/T’) DO SET CDATE=%%B
FOR /F “TOKENS=1,2 eol=/ DELIMS=/ ” %%A IN (’DATE/T’) DO SET mm=%%B
FOR /F “TOKENS=1,2 DELIMS=/ eol=/” %%A IN (’echo %CDATE%’) DO SET dd=%%B
FOR /F “TOKENS=2,3 DELIMS=/ ” %%A IN (’echo %CDATE%’) DO SET yyyy=%%B
SET date=%mm%%dd%%yyyy%
echo Running MySQL5 Backups
“C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqldump” -uroot -p[PASS] -P [PORT] –result-file=”c:\backup\[HOSTNAME].%date%.sql” –all-databases –verbose –add-drop-table -add-locks -f
echo Done!
I was migrating a VM container to Virtuozzo VE when I ran into the following error:
# Error invoking external utility: can’t set Container network flags
It looks like this is a bug with Virtuozzo container version 4.0, and from the look of it there doesn’t seem to be a hotfix in existence. However, you can fix the issue by issuing the following command:
$ vzctl set [VEID] –netif_add vznet1 –ipadd [IP ADDRESS] –save
This worked in my case.
hahaha! I nearly feel on my knees reading this.
I was checking the DNS record for a domain (using dnsstuff.com) and I noticed that the Bind version was being disclosed to the public:
Your nameservers have the following versions:
65.49.*.*: “9.2.4″
65.49.*.*: “9.2.4
Continue reading »
So you’ve got yourself one of those dreaded Microsoft Outlook errors? Same here:
Task ‘Checking for new mail in subscribed folders on Mail Failure Logs.’ reported error (0×8004DF0B) : ‘Outlook is unable to download folder (null) from the IMAP e-mail server for account Mail Failure Logs. Error: The connection to the server is unavailable. Outlook must be online or connected to complete this action. If you continue to receive this message, contact your server administrator or Internet service provider (ISP).’
Truth be told, Bill Gates isn’t at fault here. This is actually a courier-imap setting. To correct the issue, shell to your server, and edit /etc/courier-imap/imapd (may be located elsewhere on your *nix distro) look for the following flag: MAXPERIP=4, increase the number and restar the courier services. The error is no longer there.
Like I said, music 1.0 is dead
RIAA’s Mafia days are numbered…
I’m beginning to lose my mind with the amount of information I have to remember. This includes the passwords for nearly 200+ accounts that I have for my personal and web hosting business that I maintain.
Now, I could have setup a fancy database and encrypt the data using DES but that’s too much work and I want to be able to carry the data securely with me. So, what’s the answer? Enter IronKey.
$78 for the 1GB version got me a USB key that has a built in Crypto chip that protects data using the same encryption algorithm as many governmental agencies. I wish that they would have developed the Linux drivers as well. It seems that they’re working on it but no news on when it’ll be released. Update: Core functions now available in Linux.
Note: Remember to carry it with you and don’t leave sitting around in the office. This has a threshold of 10 attempts for the account log-in, so try 10 times and you’ll erase everything permanently!
Of course, your other alternative is PassPack but you won’t have a cool all metal USB key that’s practically indestructible.
If you’re a Linux geek in the San Francisco bay area, then you should contribute to installfest.
Easy:
$ find [path] -user [user] -print | xargs rm -Rfv
crap! Plesk with Qmail has some small bugs. To correct this particular issue, run the following command:
$ find /var/qmail/mailnames -type d -name ‘.*’ -a -not -name ‘.spamassassin’ -exec touch ‘{}’/maildirfolder \; -exec chown popuser:popuser ‘{}’/maildirfolder \;
Give it a few minutes…
Really easy! If you have an SSL certificate, you can setup pop3s, imaps and smtps by editing the following:
POP3: /usr/share/courier-imap/pop3d.pem
IMAP: /usr/share/courier-imap/imapd.pem
First, backup the existing files, then (use vi) remove the KEY And CERTIFICATE and replace them with your own. Once you’ve done this, run:
$ service courier-imap restart
So, I run the bash installer for a software from the shell and I get a window with ASCII characters instead of the lines for the border. The solution?
$ export LANG=en_US.ISO-8859-1″ >> .bashrc
I’ve been running on nothing but Rockstart, Chilli, Fig newton and some other crap for the last 24 hours now. There is nothing glam-fabulus about IT!