This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated by Percona Configuration Wizard (http://tools.percona.com/) version REL5-20120208 | |
# Configuration name database generated for mike@etchsoftware.com at 2013-01-31 22:23:13 | |
[mysql] | |
# CLIENT # | |
port = 3306 | |
socket = /var/lib/mysql/mysql.sock | |
[mysqld] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tcb_filter_search( $term ) { | |
if ( is_search() ) | |
$search = "(($wpdb->posts.post_title LIKE '%{$term}%') OR ($wpdb->posts.post_content LIKE '%{$term}%'))"; | |
return $search; | |
} | |
add_filter( 'posts_search', 'tcb_filter_search', null, 2 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gifify() { | |
if [[ -n "$1" ]]; then | |
if [[ $2 == '--good' ]]; then | |
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
rm out-static*.png | |
else | |
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
fi | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! defined( 'WP_CLI' ) ) | |
return; | |
WP_CLI::add_command( 'pdxwp-presentation', 'PDXWP_WP_CLI_Presentation_Command' ); | |
class PDXWP_WP_CLI_Presentation_Command extends WP_CLI_Command { | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<h1>Makefolio</h1> | |
<p>Dispassionate extraterrestrial observer gathered by gravity bits of moving fluff gathered by gravity. Dream of the mind's eye, cosmic ocean hydrogen atoms galaxies vastness is bearable only through love the carbon in our apple pies stirred by starlight Apollonius of Perga at the edge of forever bits of moving fluff.</p> | |
<p>Billions upon billions intelligent beings, corpus callosum trillion Sea of Tranquility culture, tingling of the spine something incredible is waiting to be known, kindling the energy hidden in matter are creatures of the cosmos Sea of Tranquility, worldlets as a patch of light intelligent beings, decipherment, Hypatia, rogue? Hearts of the stars, of brilliant syntheses birth circumnavigated. The ash of stellar alchemy!</p> | |
<p>Billions upon billions? Venture! Dispassionate extraterrestrial observer culture! Dispassionate extraterrestrial observer kindling the energy hidden in matter hundreds of thousands venture, Vangelis shores of the cosmic ocean sta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case 'layout_chooser': | |
echo '<ul id="form_template_options" class="">'; | |
$tv_donate_class = new TVDonate; | |
$tv_views_list = $tv_donate_class->return_tv_views_list(); | |
// Arrays of settings & layouts | |
include( plugin_dir_path( dirname( dirname( __FILE__ ) ) ) . 'tv-donate-settings.php' ); | |
$tv_views_list = $this->tv_views_list; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// match first <p><a><img class="size-large wp-image-[0-9]+"></a> | |
// special cases spotted in the wild: | |
// - content prepended by <p> </p>, we can take care of this one easy | |
// - misplaced wrappers eg <p> <a><img></a>blah blah blah<p>, well try to | |
handle this in the filter function | |
// - misc whitespace all over, lets get sloppy | |
// - no link wrapping the image, we'll try to handle this | |
// - some posts are stuck in the db without a class on the images, luckily it | |
should still be present in the rel on the wrapping anchor | |
// match guide: [0]match [1]p a? img /a? [2]a? [3]img [4]img.class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set WshShell = CreateObject("WScript.Shell") | |
WshShell.Run chr(34) & "C:\srv\apache24\startup.bat" & Chr(34), 0 | |
WshShell.Run chr(34) & "C:\srv\redis\quiet-start.bat" & Chr(34), 0 | |
WshShell.Run chr(34) & "C:\tmp\misc.bat" & Chr(34), 0 | |
Set WshShell = Nothing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Go to plugins/jetpack/jetpack.php into the folder of your WP local website. | |
# Find the line (276) below: | |
/** | |
* Is Jetpack active? | |
*/ | |
public static function is_active() { | |
return (bool) Jetpack_Data::get_access_token( JETPACK_MASTER_USER ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Frontend | |
*/ | |
if ( !defined('WPSEO_VERSION') ) { | |
header('HTTP/1.0 403 Forbidden'); | |
die; | |
} |