- httsp://bigdawggi.com/
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
<snippet> | |
<content><![CDATA[ | |
# Return Fast 404 for assets that don't exist | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule .(jpe?g|gif|png|css|js)\$ - [L,R=404] | |
</IfModule> |
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
<snippet> | |
<content><![CDATA[ | |
<?php | |
// Should only need to modify this line | |
define( 'DB_NAME', 'tmbr_${1:install_name}' ); | |
// Rest of these can likely stay the same | |
define( 'WP_DEBUG', true ); | |
define( 'WP_HOME', 'http://' . \$_SERVER['HTTP_HOST'] ); |
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
add_action( 'init', function() { | |
/* must have this check here, b/c although a new cron event won't be added without it, | |
*the wp_schedule_event() function triggers the action to run immediately, even if | |
*set for a different time of day. */ | |
if ( ! wp_next_scheduled( 'social_delete_posts' ) ) { | |
$local_time_to_run = '1am'; | |
$timestamp = strtotime( $local_time_to_run ) + ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ); | |
wp_schedule_event( | |
$timestamp, |
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
// Add the action or social posts deleting | |
add_action( 'social_delete_posts', function() { | |
$args = array( | |
'post_type' => 'social_posts', | |
'post_status' => 'any', | |
'posts_per_page' => -1, | |
'date_query' => array( | |
array( | |
'column' => 'post_date_gmt', | |
'before' => '1 month ago', |
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
SELECT | |
table_name AS "Tables", | |
round(((data_length + index_length) / 1024 / 1024), 2) "Size in MB" | |
FROM information_schema.TABLES | |
WHERE table_schema = "wp_mysitenamegoeshere" | |
ORDER BY (data_length + index_length) DESC | |
limit 10; |
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($){ | |
$(function(){ | |
$('#search-form').on('submit', function(e){ | |
e.preventDefault(); | |
var searchBox = $(this).find('input[type=search]'), | |
searchTerm = ''; | |
if(searchBox.length === 0) { | |
alert('No search term available'); | |
return false; |
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
diff --git a/wp-content/plugins/wordpress-seo/index.php b/wp-content/plugins/wordpress-seo/index.php | |
index 12c197f..abebf2a 100644 | |
--- a/wp-content/plugins/wordpress-seo/index.php | |
+++ b/wp-content/plugins/wordpress-seo/index.php | |
@@ -1,2 +1,9 @@ | |
<?php | |
-//Nothing to see here | |
\ No newline at end of file | |
+//Nothing to see here | |
+ |
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 | |
function get_user_snippet(){ | |
$id = intval( $_GET['user_id'] ); | |
global $post; | |
$post = get_post( $id ); | |
setup_postdata( $post ); | |
get_template_part( 'partials/user-snippet'); | |
exit; | |
} |
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
#!/bin/bash | |
cd /installs/ | |
echo -e "Please enter the repository name for the Github repo (Example: angelfire): \c " | |
read GITHUBSLUG | |
git clone git@github.com:TMBR/${GITHUBSLUG}.git | |
cd ${GITHUBSLUG} | |
echo -e "Please enter the WPEngine Install name (Example: angelfireresor): \c " | |
read WPESLUG | |
git remote add staging git@git.wpengine.com:staging/${WPESLUG}.git | |
git remote add production git@git.wpengine.com:production/${WPESLUG}.git |
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
foo = {} | |
jQuery(foo).on('bar', function(){ alert('hey') }) | |
jQuery(foo).trigger('bar') |
OlderNewer