How to detect a DDoS attack?
Posted by Cătălin on Thu, 9 Aug 2012How to detect a DDoS attack?
netstat -alpn | grep :80 | awk '{print $5}' |awk -F: '{print $(NF-1)}' |sort | uniq -c | sort -n
Read More...code
Empty Time Machine HDD on Mac
Posted by Cătălin on Wed, 4 Apr 2012Empty Time Machine HDD on Mac
Open terminal, type cd /Volumes and then ls to display all volumes and cd Time Machine Backups to go into the Time Machine volume. Because Trashes is hidden type ls -a to display all files ...
Read More...code
Inspired Bicycles
Posted by Cătălin on Sun, 28 Aug 2011Inspired Bicycles, by Danny MacAskill
Danny MacAskill, April 2009
Read More...code
How to Remove the Header and Footer from Firefox 5
Posted by Cătălin on Mon, 1 Aug 2011How to Remove the Header and Footer from Firefox 5
Printing Tips for OS X / Firefox 5 Enter in your browser address bar about:config Search in header into the filter bar and delete any info these value settings Search in footer into the filter bar,...
Read More...code
QR Codes via Google API
Posted by Cătălin on Sat, 16 Jul 2011The simplest way to to generate QR Codes using Google API
The simplest way to to generate QR Codes using Google API <?php $urlToEncode="http://www.negraru.com"; generateQRwithGoogle($urlToEncode); function generateQRwithGoogle($chl,$widhtHeight...
Read More...code
PHP script to retrieve data from AdSense
Posted by Cătălin on Fri, 15 Jul 2011PHP script to retrieve data from AdSense
I use the following PHP script to retrieve data from my AdSense account (impressions, clicks, ctr, ecpm, earnings). It's great to be used with a Cron Job to receive daily emails or SMS alerts. Thanks...
Read More...code