If you have a website that you're retiring but would like to copy it from your current registrar without having to sFTP/FTP the following command will copy it in Linux.
wget --recursive --domain [domain] --no-parent --page-requisites [location]
Tuesday, September 24, 2013
Create Archive of Website
Posted by Joseph at 1:11 PM 0 comments
Labels: linux, linux command
Wednesday, September 18, 2013
Force Verizon Galaxy S3 to CDMA Only
There are quite a few people searching for an old app that would force the S3 to CDMA only or maybe they are wanting a way to turn off 4g on an Android phone. In my case it was necessary because I had invested big $$ in a signal booster however it only handles the 800 MHz and 1900 MHz frequencies. Well guess what 4G uses, if you're with Verizon not those two frequencies.
The old app was named Phone Info and was in the Google Play store but has been removed/retired. After some search stumbling across a comment for this post which indicated there is a post here that explains the issue but it requires registration. However after registering it turns out it just refers to a Google Play store app.
Short answer, install the Battery Monitor Widget. Once installed click the Tests button on the bottom right, click the Device Info menu and VoilĂ scroll down and select under the 'Set preferred network type:' menu.
Posted by Joseph at 10:15 PM 0 comments
Tuesday, September 10, 2013
Nginx - Count of IP addresses in /var/log/nginx/access.log
Inspired by this post which supposedly works for Apache and also works for my Nginx installation. It seems however, some of the comments didn't work quite right on our Debian Lenny equipment.
Did away with grep (instead using cat) and tweaked to fix sorting not working correctly.
cat access.log | cut -d' ' -f1 | sort | uniq -c | sort -rg
If your log is big enough to scroll multiple pages when logged in remotely.
cat access.log | cut -d' ' -f1 | sort | uniq -c | sort -rg | less
Posted by Joseph at 6:13 PM 0 comments
Labels: linux, linux command, nginx