Roll Your Own Social Media Buttons

I recently tested out several WordPress’s social media share plug-ins and disappointed with unnecessary injections of JavaScripts and CSS. Some services even use their own site as a gateway to server up the social media services. I was frustrated and ended up rolling my own, thanks to this blog post. Here’s my customized codes: <a … Continue reading “Roll Your Own Social Media Buttons”


$ sass –watch style.scss:style.css –style compressed // Import @import “normalize”; // Variables $body_font: ‘Georgia’, serif; // Mixin @mixin rounded_corners($rounding) { -webkit-border-radius:$rounding; -moz-border-radius: $rounding; -o-border-radius: $rounding; border-radius: $rounding; }

Apache Rewrites

Redirect non-www to www with .htaccess RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] Example: to Add trailing slash (/) to URL: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$$1/ [QSA,L,R=301] Example: to

Forgot Manager Login Upgrade and Disabled

Security note from MODX: The Forgot Manager Login plugin distributed with all versions of MODX Evolution (and 0.9.x) contains a vulnerability that allows users to gain unauthorized access to the MODX Manager. Action: Upgrade Forgot Manager Login to version 1.1.4 and also disabled the plug in.

Upgrade Notes

WordPress: Just hit the upgrade button MODX: 1.06 Follow Upgrading Guide (Alternate Method). Back up and Once upgraded, change default sort order in resource tree:if (!isset($_SESSION[‘tree_sortby’]) && !isset($_SESSION[‘tree_sortdir’])) { // This is the first startup, set default sort order $_SESSION[‘tree_sortby’] = ‘menuindex’; // Change menuindex to a value of your choice. $_SESSION[‘tree_sortdir’] = … Continue reading “Upgrade Notes”

Frequently Used Linux Command Lines

Install WordPress wget tar xfz latest.tar.gz cp -r * ~/public_html/your/website/folder/ Change Permissions (rwx => 4 + 2 + 1 = 7) For Directories: find /path/to/your/directory/ -type d -exec chmod 755 {} \; For Files: find /path/to/your/file/ -type f -exec chmod 644 {} \; Permissions chmod -R 755 directory chmod -R 644 files Remove files … Continue reading “Frequently Used Linux Command Lines”