• Assign Random Featured Images To All Posts

    , ,

    Could be used for setting up dummy content for a staging environment, or something similar. Be my guest and let me know how you decide to use it in the comments! Also, check my github for this function built into…

  • Extract Memory Usage As Integer

    ,

    [code]free -m | grep Mem | awk ‘{print $3}'[/code] Use that and feed memory usage into a graphite server every minute from a cron script: [code]*/1 * * * * echo "some.system.memoryusage `free -m | grep Mem | awk ‘{print…

  • WordPress Trackback Maintenance

    , , ,

    Sometimes you just need to get rid of all that trackback data from your WordPress database. Here’s how to do it manually from your MySQL command line: [code language=”sql”]DELETE FROM wp_comments WHERE comment_type=’trackback’; DELETE FROM wp_comments WHERE comment_type=’pingback’;[/code] Great, but…

  • Flying to PBI

    [travel type=”flight” path=”LGA,PBI”]

  • Flying to New York

    [travel type=”flight” path=”PBI,LGA”]

  • Making A Bootable CentOS 6.4 x86_64 USB Key

    ,

    Download the PenDriveLinux “Univerals USB Installer” from http://www.pendrivelinux.com/downloads/Universal-USB-Installer/Universal-USB-Installer-1.9.3.9.exe. Download the Centos 6.4 Live DVD from http://holmes.umflint.edu/centos/6.4/isos/x86_64/CentOS-6.4-x86_64-LiveDVD.iso (or any other mirror). Run the Universal USB Installer utility and click “I Agree” on the license agreement screen. Insert your USB drive into…

  • Using Samba on CentOS With Windows 7/8

    ,

    Go ahead and install the samba packages: sudo yum install samba samba-client samba-common smbd –version sudo chkconfig smb on sudo chkconfig nmb on sudo nano /etc/selinux/config Disable SELINUX by editing /etc/selinux/config and make one small change: SELINUX=disabled Make some additions…

  • Resize All JPEG Images In a Folder

    [code]for file in *.jpg; do convert $file -resize 1024×1024> $file; done[/code]

  • An Adventure, a Wedding, Family, and Fun Times to Come

    , ,

    I couldn’t be happier as I sit on our patio, overlooking the deep-water canal where our boat gently rocks with the motion of the waters beneath it. I got married two days ago during what had to be one of…

  • Snorkeling Grecian Rocks, 6/28/2013

    , , ,

    The day before our wedding, we took some guests out to Grecian Rocks off Key Largo for a snorkeling adventure that they’ll never forget.