Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
DB="your_database_name" | |
USER="your_db_user" | |
PASS="your_db_pass" | |
HOST="database_hostname" | |
( | |
echo 'ALTER DATABASE `'"$DB"'` CHARACTER SET utf8 COLLATE utf8_general_ci;' | |
mysql -p $PASS -u $USER -h $HOST "$DB" -e "SHOW TABLES" --batch --skip-column-names \ | |
| xargs -I{} echo 'ALTER TABLE `'{}'` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;' | |
) \ | |
| mysql -p $PASS -u $USER -h $HOST "$DB" |
/* | |
Plugin Name: Convert WP Database to UTF-8 | |
Plugin URI: http://topher.wpengine.com/ | |
Description: Converts the WordPress database (both tables and columns) to UTF-8 character set. | |
Version: 1.1.0 | |
Author: Topher Hota (@WPEtopher), Yihui Xie | |
Author URI: http://yihui.name | |
*/ | |
/* |
<?php | |
class SecureSessionHandler extends SessionHandler { | |
protected $key, $name, $cookie; | |
public function __construct($key, $name = 'MY_SESSION', $cookie = []) | |
{ | |
$this->key = $key; | |
$this->name = $name; |
# Homebrew and Cask | |
Install the XCode command line tools by running `xcode-select --install` in the terminal. | |
Install Homebrew by following the instructions on the [homebrew website](http://brew.sh). | |
Install Cask by following the instructions on the [cask website](https://caskroom.github.io). | |
# Applications |
<?php | |
/** | |
* @link | |
* @since 1.0.0 | |
* @package TODO | |
* | |
* @wordpress-plugin | |
* Plugin Name: Use MailHog | |
* Description: Configure WordPress on Valet to use MailHog | |
* Version: 1.0.0 |
// Filter the title with a custom function | |
add_filter('genesis_seo_title', 'wap_site_title' ); | |
// Add additional custom style to site header | |
function wap_site_title( $title ) { | |
// Change $custom_title text as you wish | |
$custom_title = '<span class="custom-title">WA</span>Estate'; | |
// Don't change the rest of this on down |
<?php | |
/** | |
* Creates a link for email and then hide email address from Spam Bots in HTML using a shortcode. | |
* [email][email protected][/email] | |
* | |
* @param array $atts Shortcode attributes. Not used. | |
* @param string $content The shortcode content. Should be an email address. | |
* | |
* @return string The obfuscated email address. |
# 1. Install brew --> http://brew.sh/ | |
# 2. run the following commands in your Terminal | |
brew tap homebrew/dupes | |
brew tap homebrew/versions | |
brew tap homebrew/homebrew-php | |
brew install --with-openssl curl | |
brew install --with-homebrew-curl --with-apache php71 | |
brew install php71-mcrypt php71-imagick | |
# 3. Follow these instructions to make Apache and php-cli use the newer php executable and make the change persist after reboot. | |
brew info php71 |
This issue is noted here: https://deliciousbrains.com/wp-migrate-db-pro/doc/ssl-errors/
Original reference for this fix is from: http://stackoverflow.com/questions/26461966/osx-10-10-curl-post-to-https-url-gives-sslread-error/26538127#26538127
php -i | grep "SSL Version"