From info I found here. This is how to flush the local client DNS cache.
Windows:
ipconfig /flushdns
Linux:
sudo /etc/init.d/networking restart
Mac:
lookupd -flushcache
Today I wanted to create a straight-forward MySQL Proxy service which would forward MySQL queries from a development machine to another live server which was running MySQL. The aim was to allow people on the development machine to use the same connection... » More
Video files can be converted using GUI tools such as Handbrake, Arista, WinFF but if you don't mind the command line - or if you want to automate video file conversion then the following examples might help:Convert to FLVffmpeg -i video.avi... » More
I needed to output the results of a MySQL query today for further analysis and found the answer here. For future reference...SELECT * FROM errors WHERE mailfrom LIKE 'a.n.other%' INTO OUTFILE '/tmp/a.n.other.txt' FIELDS TERMINATED BY ',' LINES TERMINATED... » More
The goals analysis in Piwik is a little limited in comparison with Google Analytics but the following plugin which is in development looks promising and of use already.http://dev.piwik.org/trac/ticket/220
These two snippets of PHP perform the same function but the ternary operator takes much less space. Read more great PHP tips at phpro.org /*** using if / else ***/ if(isset($variable)) { echo $variable; } else { echo ''; } /*** using ternary... » More
To find a text string within files in all sub-directories: find . -type f | xargs -r0 grep -F 'dodgystring' or find . -type f -exec grep -l "dodgystring" {} \; To replace a string within files in all sub-directories: find ./ -type f -exec sed -i... » More
My Virtual Machine was named http1 so I cloned the vdi as http2.vdi using the VBoxManage command:VBoxManage clonevdi http1.vdi ../pathtonewlocation/http2.vdiThe output was:0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%Clone hard disk... » More
I thought I would jot down a few notes about today's adventures with SNMP. Specifically using SNMP with Nagios mostly on Red Hat/CentOS. I have an appliance from a third-party from which I would like to monitor and graph performance. So view this as a... » More