Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <?php | |
| # Register custom post types on the 'init' hook. | |
| add_action( 'init', 'my_register_post_types' ); | |
| /** | |
| * Registers post types needed by the plugin. | |
| * | |
| * @since 1.0.0 | |
| * @access public |
| alias ng="npm list -g --depth=0 2>/dev/null" | |
| alias nl="npm list --depth=0 2>/dev/null" |
| <?php | |
| /** | |
| * == About this Gist == | |
| * | |
| * Code to add to wp-config.php to enhance information available for debugging. | |
| * | |
| * You would typically add this code below the database, language and salt settings | |
| * | |
| * Oh.. and *do* make sure you change the path to the log file to a proper file path on your server (make sure it exists). | |
| * |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <?php | |
| /** | |
| * WordPress Console Debug | |
| * | |
| * Debug PHP using the JavaScript console. | |
| * Enable this plugin and view your console for more information on how to use it. | |
| * | |
| * @package WP_console_debug | |
| * @author DRSK | |
| * @license WTFPL |
Perform DNS Lookup:
https://github.com/phallstrom/AlfredDig
WordPress Function Reference:
http://www.alfredforum.com/topic/2153-search-the-wordpress-function-reference/
Send URL:
| update wp_posts set post_content = replace(post_content,'ä','ä'); | |
| update wp_posts set post_title = replace(post_title,'ä','ä'); | |
| update wp_comments set comment_content = replace(comment_content,'ä','ä'); | |
| update wp_postmeta set meta_value = replace(meta_value,'ä','ä'); | |
| update wp_posts set post_excerpt = replace(post_excerpt,'ä','ä'); | |
| update wp_terms set name = replace(name,'ä','ä'); | |
| update wp_posts set post_content = replace(post_content,'ö','ö'); | |
| update wp_posts set post_title = replace(post_title,'ö','ö'); | |
| update wp_comments set comment_content = replace(comment_content,'ö','ö'); |
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn.
Author: Kaspars Dambis
kaspars.net / @konstruktors
Unfortunately, the Cisco AnyConnect client for Mac conflicts with Pow. And by "conflicts", I mean it causes a grey-screen-of-death kernel panic anytime you connect to the VPN and Pow is installed.
As an alternative, there is OpenConnect, a command-line client for Cisco's AnyConnect SSL VPN.
Here's how to get it set up on Mac OS X:
OpenConnect can be installed via homebrew:
brew update
brew install openconnect
| function get_date_string(para_date) { | |
| var date = para_date || new Date(); | |
| var day = (date.getDate() > 10 ) ? date.getDate() : ("0" + date.getDate() ), | |
| month = ((date.getMonth()+1) > 10 ) ? (date.getMonth()+1) : ("0" + (date.getMonth()+1) ), | |
| year = (date.getFullYear() > 10 ) ? date.getFullYear() : ("0" + date.getFullYear() ), | |
| hours = (date.getHours() > 10 ) ? date.getHours() : ("0" + date.getHours() ), | |
| minutes = (date.getMinutes() > 10 ) ? date.getMinutes() : ("0" + date.getMinutes() ); | |
| return year + month + day + "_" + hours + minutes; | |
| }; |