Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| #!/usr/bin/php | |
| <?php | |
| $lines = file_get_contents( 'php://stdin', 'r' ); | |
| if ( empty( $lines ) ) { | |
| exit( 0 ); | |
| } | |
| $lines = explode( "\n", $lines ); | |
| $lines = explode( ' ', $lines[0] ); |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| 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_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,'…','...'); |