Web Development

Whats My IP From Command Line

Lots of times you need to determine your public IP address, if you are using Linux operating system to power your PC, you may use some good console commands to guess your public IP address. Most of these methods will return you the local IP and not the public IP of...

Rotate logfiles for MAMP Pro

Rotating  logfiles for MAMP Pro is pretty simple. Under the "Extended" tab for the Hosts setup add this to “Additional parameters for ”.   [crayon-5b53d340d6f0f058661932/] Don’t forget to edit the path…...

How to install SmartGit on Ubuntu 14.04

How to install SmartGit on Ubuntu-14.04 Open terminal and use following commands. Add Repo:[crayon-5b53d340d70ab784974087/]Then we want to update the Repos:[crayon-5b53d340d70b1979387697/]Now lets install SmartGit:[crayon-5b53d340d70b2899629858/]Now click on the find...

Check User Account Status

You need to use the chage command. It can display password expiry information as well as changes the number of days between password changes and the date of the last password change. This information is used by the system to determine when a user must change his/her...

Create WordPress User

Add new Admin user to WordPress. USE AT YOUR OWN RISK! 1. Put this file in your WordPress root directory and run it from your browser. 2. Delete it when your done. DO NOT forget this step. Thanks to: https://gist.github.com/jawinn/8012327#file-createwordpressuser-php...

How to define a default post thumbnail

I’ve seen a few tutorials floating around the WordPress-o-Sphere about setting a default post thumbnail for WordPress’ featured image functionality. Some involve tactics like saving a permanent default image (theme authors, please don’t do that). A default thumbnail...

WordPress 3.9, Time to Update

The whopping 267 contributors to WordPress 3.9 have been working hard since Beta 1 was announced on March 11. All the creases have now been ironed out and the much-anticipated release date has arrived! Visual editor has been updated to improve speed, accessibility,...

Clean Terminal History

Heres 3 ways to delete/clear terminal command line history in Linux, Unix  or OSX? Pick one. Then cut and paste into the Terminal. https://gist.github.com/tdavidrussell/a8f8c21619374f8226c5 Then close and reopen terminal.

WAMP, LAMP and MAMP Whats it Mean

Acronym for (Windows, Linux or MAC)/Apache/MySQL/PHP, Python, (and/or) PERL. (Windows, Lunix and MAC )AMP also includes Apache, MySQL and PHP, which are three of the most common technologies used for creating dynamic websites. MySQL is a high-speed database, while PHP...