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/sh | |
# Creates a 1gb swap image. | |
# @see https://www.digitalocean.com/community/tutorials/how-to-configure-virtual-memory-swap-file-on-a-vps | |
if [ -f /var/swap.img ]; then | |
echo "Swap file already exists." | |
else | |
touch /var/swap.img | |
chmod 600 /var/swap.img |
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
/* | |
* Javascript time conversion script | |
* version 1.0 | |
* @requires jQuery | |
* @author Modern Tribe, Inc. (Peter Chester) | |
* | |
* Converts several formats to a 2 point float. Accepted formats include: | |
* 1.3333333333 | |
* 1h 10m | |
* 1: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
/** | |
* Enqueue the necessary javascript to support the Image Widget in Site Origin's Page Builder | |
*/ | |
function tribe_image_widget_siteorigin_page_builder_support() { | |
global $wp_widget_factory; | |
if ( isset( $wp_widget_factory->widgets ) && isset( $wp_widget_factory->widgets['Tribe_Image_Widget'] ) ) { | |
add_action( 'siteorigin_panel_enqueue_admin_scripts', array( $wp_widget_factory->widgets['Tribe_Image_Widget'], 'admin_setup' ) ); | |
} | |
} | |
add_action('widgets_init', 'tribe_image_widget_siteorigin_page_builder_support', 999); |
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 | |
/* | |
Plugin Name: New Relic Config | |
Plugin URI: http://tri.be | |
Description: Configures New Relic | |
Author: Modern Tribe, Inc. | |
Author URI: http://tri.be | |
Version: 1.0 | |
*/ | |
/** |
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/postie/postie.php b/wp-content/plugins/postie/postie.php | |
index 9b94006415b74c3fcf2c5f667a9c277a14ab7f39..46d83ff3c226b3ecdca11ade57b8fcd267baac3d 100644 | |
--- a/wp-content/plugins/postie/postie.php | |
+++ b/wp-content/plugins/postie/postie.php | |
@@ -76,9 +76,9 @@ if (is_admin()) { | |
add_action( 'admin_init', 'postie_admin_settings' ); | |
add_action('admin_menu', 'postie_loadjs_add_page'); | |
if(function_exists('load_plugin_textdomain')){ | |
- $plugin_dir = WP_PLUGIN_DIR . '/' . basename(dirname(__FILE__)); | |
function postie_load_domain() { |
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/postie/postie-functions.php b/wp-content/plugins/postie/postie-functions.php | |
index ddf4cd8daf8ed4bdeb30978733e472ea97d96abd..75a598b1b6f77cb47a612a3d39b53a115f14a1cb 100644 | |
--- a/wp-content/plugins/postie/postie-functions.php | |
+++ b/wp-content/plugins/postie/postie-functions.php | |
@@ -1,11 +1,41 @@ | |
<?php | |
-$revisions= WP_POST_REVISIONS; | |
-define('WP_POST_REVISIONS', false); | |
-//define('POSTIE_DEBUG', true); | |
-if (!ini_get('safe_mode')) { |
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 ( my_site_is_infected() ) { | |
visit( "sucuri.net" ); | |
} else { | |
die(); | |
} | |
?> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<style> | |
.char { | |
padding: 0; | |
margin: 0; | |
display: block; | |
float: left; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<style> | |
.ichingchar { | |
padding: 0; | |
margin: 0; | |
height: 24px; | |
width: 19px; |
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/twitter-cards.php b/twitter-cards.php | |
index 06f6c00..6aa751c 100644 | |
--- a/twitter-cards.php | |
+++ b/twitter-cards.php | |
@@ -22,9 +22,8 @@ class Twitter_Cards { | |
* @since 1.0 | |
*/ | |
public static function init() { | |
- if ( apply_filters( 'twitter_cards_display', is_single() ) ) { | |
+ if ( is_single() ) |
NewerOlder