- Download binary from https://www.ottoproject.io/downloads.html
- Unzip and move binary to a location of your choice
- Add otto to your path
# Command for Otto
export PATH="$PATH:$HOME/PATH/TO/otto"
{ | |
"heading": | |
"Thank you for your interest in the MotorTrend / Hot Wheels<sup>®</sup> promotion!", | |
"logos": [ | |
"https://mtg-mtod-production.s3-us-west-2.amazonaws.com/images/hotwheels-logo.png", | |
"https://mtg-mtod-production.s3-us-west-2.amazonaws.com/images/motortrend-logo-desktop-red.svg" | |
], | |
"messaging": { | |
"campaign.code.already.used": | |
"We are sold out at this time, but look for more opportunities in the future from us. In the meantime learn more about MotorTrend and subscribe to our streaming service by clicking <a href="/freetrial/">on this link</a>.", |
<?php | |
$array = get_option('wpseo-premium-redirects'); | |
foreach ( $array as $key => $row ) { | |
file_put_contents( ABSPATH . 'redirects.csv', $key . ',' . $row[ 'url' ] . "\n", FILE_APPEND ); | |
} |
<?php | |
class View_Variables { | |
public static function dump( $variables, $die = true ) { | |
if ( is_array( $variables ) ) { | |
foreach ($variables as $var ) { | |
var_dump( $var ); | |
} | |
} else { | |
var_dump( $variables ); |
DELETE FROM `wp_posts` | |
WHERE `post_type` = 'posttype' |
<?php | |
$plugin_dir = realpath( dirname( __FILE__ ) . '/..' ); | |
$plugin = $plugin_dir . '/plugin.php'; | |
register_activation_hook( $plugin, 'f2d_activation' ); | |
function f2d_activation() { | |
if ( ! wp_next_scheduled( 'send_f2d' ) ) { | |
wp_schedule_event( time(), 'weekly', 'send_f2d' ); | |
} |
<?php | |
// write form submissions to text file. | |
// be sure to set permissions of text file to 750. | |
$leads = fopen('leads.txt', 'a') or die('Unable to process that request'); | |
$txt = date(DATE_RFC2822); | |
$txt .= PHP_EOL; | |
$txt .= $body; | |
fwrite($leads, $txt . PHP_EOL . PHP_EOL); | |
fclose($leads); |
$(document).ready(function() { | |
appendTooltipHoverListener(); | |
removeDuplicateHeaders(); | |
wrapDates(); | |
}); | |
var tooltip = new $.tooltip(); | |
function onFilterSelected(val) { | |
for (var ctrlName in appCtrl.coverflow) { |
<?php | |
$args = array( | |
'orderby' => 'id', | |
'hide_empty' => false, | |
'parent' => 0 | |
); | |
$terms = get_terms( 'category', $args ); | |
$cats = get_terms( 'category', $args ); | |
$year = date( 'Y' ); |
# Command for Otto
export PATH="$PATH:$HOME/PATH/TO/otto"