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 CONCAT('ALTER TABLE ', table_name, ' ENGINE=InnoDB;') AS sql_statements | |
FROM information_schema.tables AS tb | |
WHERE table_schema = 'database_name' | |
AND `ENGINE` = 'InnoDB' | |
AND `TABLE_TYPE` = 'BASE TABLE' | |
ORDER BY table_name DESC; |
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
#run mysql daemon | |
#select database you're using | |
#note wp_prefix can be something else too | |
update wp_options set option_value='http://newurl.com' where option_name='home' or option_name = 'siteurl'; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="SilverStripe Clean URLs" stopProcessing="true"> | |
<match url="^(.*)$" /> | |
<conditions> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
</conditions> |
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
# Install fail2ban | |
$ sudo apt-get install fail2ban | |
#### /etc/fail2ban/jail.local | |
[apache] | |
enabled = true |
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
<!-- Start of Brightcove Player --> | |
<div style="display:none"></div> | |
<!-- | |
By use of this code snippet, I agree to the Brightcove Publisher T and C | |
found at https://accounts.brightcove.com/en/terms-and-conditions/. | |
--> | |
<script language="JavaScript" type="text/javascript" src="http://admin.brightcove.com/js/BrightcoveExperiences.js"></script> | |
<script src="http://admin.brightcove.com/js/APIModules_all.js"> </script> |
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
$mail = new PHPMailer(); | |
$mail->IsSMTP(); | |
$mail->CharSet = 'UTF-8'; | |
$mail->Host = "smtp.gmail.com"; | |
$mail->SMTPDebug = 0; | |
$mail->SMTPAuth = true; | |
$mail->SMTPSecure = "tls"; | |
$mail->Port = 587; | |
$mail->Username = "xxxxxxx@gmail.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
<?php | |
namespace Drewm; | |
/** | |
* Super-simple, minimum abstraction MailChimp API v2 wrapper | |
* | |
* Uses curl if available, falls back to file_get_contents and HTTP stream. | |
* This probably has more comments than code. | |
* |
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
<!-- ENGLISH FEATURED VIDEOS HERE --> | |
<div class="large-4 columns"> | |
<h3>I'm Not That Girl <br/>(Official Music Video)</h3> | |
<p> Watch Chiquis' Hit Single<br/><strong>I'm Not That Girl</strong> on<br/> | |
<img src="http://38.media.tumblr.com/e128ea2982fdb6df9cd44d486347ceb9/tumblr_mog0viDv891svlv8bo2_1280.png" style="max-height:40px !important;" /></p> | |
<div class="addthis_wrapper"> | |
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url="https://www.youtube.com/watch?v=0tr9mYglHiU" addthis:title="Chiquis - I'm Not That Girl (Official English Video)"> | |
<a class="addthis_button_preferred_1"></a> | |
<a class="addthis_button_preferred_2"></a> | |
<a class="addthis_button_preferred_3"></a> |
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 style="display:none"></div> | |
<script language="JavaScript" type="text/javascript" src="http://admin.brightcove.com/js/BrightcoveExperiences.js"></script> | |
<object id="myExperience3857591643001" class="BrightcoveExperience"> | |
<param name="bgcolor" value="#FFFFFF" /> | |
<param name="width" value="**WIDTH**" /> | |
<param name="height" value="**HEIGHT**" /> | |
<param name="playerID" value="2591610883001" /> | |
<param name="playerKey" value="AQ~~,AAACW2gH-yk~,LTOMIBNGiaYQoerc4mG5nWxubZlMSV1K" /> | |
<param name="isVid" value="true" /> |
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
<p> | |
<input type="email" id="mc4wp_email" class="form-control" name="EMAIL" placeholder="Your email address" required /> | |
</p> | |
<p> | |
<input type="submit" class="btn btn-primary" value="Sign up" /> | |
</p> |