Got a new laptop recently and hadn't set up php and nginx in a long time went looking for a simple setup and thanks to TechTuts they had just what the doctor ordered.
Saturday, April 15, 2017
Friday, April 7, 2017
Find All Files Modified In Last Day Excluding Path
Recently had a situation where we were trying to track down which files had been modified in the last 24 hours but needed to exclude the cache directory since it builds files often and for a large site sifting through this is time consuming.
The following command will show all files, recursively, that have been modified in the last 24 hours and exclude the cache directory.
user@machine> find . -not \( -path ./wp-content/cache -prune \) -mtime -1 -ls
Posted by Joseph at 10:26 PM 0 comments
Sunday, May 1, 2016
Add YouTube Channel to Your Podcast Software
Go to http://podsync.net/ and past the channel URL.
If you're not sure of the channel URL perform the following:
1) Subscribe to the channel
2) Go to your channel listing in youtube.
3) Right click and select Copy link address
4) Paste into box on podsync.net and copy the link they provider to your podcast software, I use pocketcasts.com.
Posted by Joseph at 10:50 PM 0 comments
Labels: general
Thursday, February 11, 2016
Recursive Replace Text in Files
If you ever have a need to replace text in files (including subfolders) execute the following linux command.
In the below example we wanted to replace a copyright on a group of html and php pages.
2010 - 2015 became 2010 - 2016
user@machine> find . -type f -name "*" -exec sed -i'' -e 's/2010 - 2015/2010 - 2016/g' {} +
Posted by Joseph at 8:40 PM 0 comments
Labels: linux command
Sunday, May 17, 2015
Nokia 635 - Consumer Cellular MMS and Internet
Moved to Consumer Cellular a year or so ago using Apple and Android phones. A family member has a Lumia 635 running Microsoft Phone 8.1 and was unable to send/receive group SMS messages and picture text messages.
The below settings resolved the issue on the 635, see this point for the fix for a Lumia 520.
To edit/add the settings perform the following:
1) Go to System Settings > cellular+SIM > SIM settings
2) Click [Add/Edit] internet APN
APN: att.mvno...and click Disk icon to save
User name: [leave blank]
Password: [leave blank]
Proxy server (URL): 66.209.11.32
Proxy port: 80
3) Click [Add/Edit] MMS APN
APN: att.mvno...and click Disk icon to save
User name: [leave blank]
Password: [leave blank]
WAP gateway (URL): proxy.mvno.ccmobileweb.com
WAP gateway port: 80
MMSC (URL): http://mmsc.cingular.com/
MMSC port: 80
Maximus MMS size: [leave blank]
Although it should work with other Windows Phone 8+ models it would be appreciated if you could post your model below and a go/no-go if it worked for you to benefit others on the web.
All the best!
Posted by Joseph at 1:47 PM 1 comments
Monday, April 27, 2015
Nokia 520 - Consumer Cellular MMS and Internet
Moved to Consumer Cellular a year or so ago using Apple and Android phones. Recently switched to a Lumia 520 running Microsoft Phone 8.1 and was unable to send/receive group SMS messages and picture text messages.
The below settings resolved the issue on my 520, see this point for the solution for a Lumia 635.
To edit/add the settings perform the following:
1) Go to System Settings > cellular+SIM > SIM settings
2) Click [Add/Edit] internet APN
APN: ccdata...and click Disk icon to save
User name: [leave blank]
Password: [leave blank]
Proxy server (URL): [leave blank]
Proxy port: [leave blank]
3) Click [Add/Edit] MMS APN
APN: att.mvno...and click Disk icon to save
User name: [leave blank]
Password: [leave blank]
WAP gateway (URL): proxy.mvno.ccmobileweb.com
WAP gateway port: 80
MMSC (URL): http://mmsc.cingular.com/
MMSC port: 80
Maximus MMS size: [leave blank]
Although it should work with other Windows Phone 8+ models it would be appreciated if you could post your model below and a go/no-go if it worked for you to benefit others on the web.
All the best!
Posted by Joseph at 10:17 AM 0 comments
Tuesday, September 24, 2013
Create Archive of Website
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]
Posted by Joseph at 1:11 PM 0 comments
Labels: linux, linux command