-
WP-Config Options You Probably Didn’t Know About
1. Override options “siteurl” and “home” [code language=”php”]define(‘WP_SITEURL’, ‘http://your-sites-address.com’); define(‘WP_HOME’, ‘http://your-sites-address.com’);[/code] 2. Revisions [code language=”php”]define(‘WP_POST_REVISIONS’, FALSE); define(‘WP_POST_REVISION’, 3);[/code] 3. AutoSave Interval [code language=”php”]define(‘AUTOSAVE_INTERVAL’, 160);[/code] 4. New wp-content location [code language=”php”]define( ‘WP_CONTENT_DIR’, $_SERVER[‘DOCUMENT_ROOT’] . ‘/somewhere/wp-content’ ); define( ‘WP_CONTENT_URL’, ‘http://server.com/somewhere/wp-content’); define( ‘WP_PLUGIN_DIR’,…
-
-
Relating a MySQL Process to Server Process
All of this assumes LAMP (specifically CentOS 6, MySQL server 5.5, Apache 2+ with mod-status enabled) On mysql server: watch -n 1 “mysql -e ‘show processlist’;” Look for sleeping connections that are staying open for a while. Watch for a…
-
Super Screwdrivers
I’ve got to give the credit of this drink to Tina and her Sister. They concocted this delicious treat a couple weeks ago and I played with the ratios for a few nights to come up with this. Make sure…
-
Find all files recursively and give them a different extension
find . -name “*.mp3” -exec rename .mp3 .mp3srbad {} ;
-
It’s April Already?
What happened? It seems like yesterday was March 4, the day Rylan was born. Just like that, a month has gone by. What have I been doing? Here’s a rundown of the last month of my life. I went to…
-
Watch mysql processlist in (almost) real time
watch -n 1 “mysql -h 10.0.0.1 -u username -pPASSWORD -e ‘SHOW PROCESSLIST;’”
-
-
-