Super easy way to add custom fields to the user profile on WordPress. This will take you 3 seconds to implement. function modify_contact_methods($profile_fields) { // Add new fields – this can be as many as you like $profile_fields[‘cool_new_field’] = ‘Twitter Username’; // Remove old fields unset($profile_fields[‘some_existing_field_you_hate’]); return $profile_fields; } add_filter(‘user_contactmethods’, ‘modify_contact_methods’); //And if you want […]

In this example I’m using 90 days. But you can use whatever you would like in the place of it. It’s also set to run at the first of every month. 0 0 1 * * find /home/somehomedir/thatfolderyouwanttouse/ -type f -mtime +90 -exec rm {} + [show_super_mega_popup]

Make a div with the same id as the select input and you should be good to go. $(window).load(function(){ $(document).ready(function () { $(‘.group’).hide(); $(‘#div1’).fadeIn(‘slow’); $(‘#div1’).change(function () { $(‘.group’).hide(); $(‘#’+$(this).val()).fadeIn(‘slow’); }) }); });

Each YouTube video has 4 generated images. They are predictably formatted as follows: http://img.youtube.com/vi/<insert-youtube-video-id-here>/0.jpg http://img.youtube.com/vi/<insert-youtube-video-id-here>/1.jpg http://img.youtube.com/vi/<insert-youtube-video-id-here>/2.jpg http://img.youtube.com/vi/<insert-youtube-video-id-here>/3.jpg The first one in the list is a full size image and others are thumbnail images. The default thumbnail image (ie. one of 1.jpg, 2.jpg, 3.jpg) is: http://img.youtube.com/vi/<insert-youtube-video-id-here>/default.jpg For the high quality version of the thumbnail use a url similar […]

1. SSH into your instance. 2. Edit /etc/ssh/sshd_config and set PasswordAuthentication to yes. One way to do this is to enter the command nano /etc/ssh/sshd_config, then scroll down toPasswordAuthentication. Change the no to yes. Then press Ctrl+X, and press the Y key to save and quit. 3. Enter the command /etc/init.d/sshd reload. (for Ubuntu, enter the command reload ssh) 4. Set your password if you haven’t already, with the passwd command. […]

. Getting the required software For an SSL encrypted web server you will need a few things. Depending on your install you may or may not have OpenSSL and mod_ssl, Apache’s interface to OpenSSL. Use yum to get them if you need them. yum install mod_ssl openssl Yum will either tell you they are installed […]