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
#!/usr/bin/env node | |
/* | |
tunlr - simple SSH tunnel management | |
usage: tunlr [options] [command] | |
options: | |
-q quiet. suppress console output. |
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
<h2 style="margin-bottom: 0px;"> | |
<span class="rcp_price" rel="<?php echo esc_attr( $level->price ); ?>"> | |
<?php | |
if ($level->fee) { | |
$adjusted_price = (($level->price)+($level->fee)); | |
echo $adjusted_price > 0 ? rcp_currency_filter( $adjusted_price ) : __( 'free', 'jobify' ); | |
?> | |
</h2> | |
<small>*<?php echo rcp_currency_filter( $level->price ); ?> after first <?php echo $level->duration; ?> days.</small> | |
<?php |
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
// Shortcode can be added like this | |
// [pods_by_current_user_cpt name="document" template="Document Template"] | |
// | |
// Supports all shortcode attributes from standard PODS shortcode: | |
// http://pods.io/docs/learn/shortcodes/pods/ | |
add_shortcode( 'pods_by_current_user_cpt', 'pods_by_current_user_cpt' ); | |
function pods_by_current_user_cpt( $atts, $content = null ) { | |
$current_user = wp_get_current_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
$user = wp_get_current_user(); | |
$pod = pods('user', $user->ID); | |
$out = $pod->form(array( | |
'first_name' => array( | |
'label' => 'First name', | |
'type' => 'text', | |
'options' => array( | |
'required' => 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
<?php | |
/** | |
* Plugin installation and activation for WordPress themes. | |
* | |
* @package TGM-Plugin-Activation | |
* @version 2.4.0 | |
* @author Thomas Griffin <thomasgriffinmedia.com> | |
* @author Gary Jones <gamajo.com> | |
* @copyright Copyright (c) 2012, Thomas Griffin | |
* @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later |
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
SecRequestBodyAccess On | |
SecResponseBodyAccess On | |
SecResponseBodyLimitAction ProcessPartial | |
SecResponseBodyMimeType text/xml | |
<FilesMatch "xmlrpc.php"> | |
# Block brute force attempts using xmlrpc.php as the vector | |
# Increment our counter when the xmlrpc API indicates a failure | |
SecRule REQUEST_BODY "wp\.getUsersBlogs" "id:13504,deny,chain,status:406,\ | |
phase:4,t:none,t:urlDecode,chain,deny,\ |
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 |
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
$interests = get_resume_field( 'careers_interest' ); | |
if ( ! empty( $interests ) ) { | |
if ( is_array( $interests ) ) { | |
foreach ( $interests as $selected_value ) { | |
$tax = get_term_by( 'id', (int) $selected_value, 'careers_interest' ); | |
echo "<li>" . $tax->name . "</li>"; | |
} | |
} 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
/** | |
* Submit Step | |
*/ | |
public static function submit() { | |
global $job_manager, $post; | |
self::init_fields(); | |
// Load data if neccessary | |
if ( ! empty( $_POST['edit_resume'] ) && self::$resume_id ) { |
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
$fromEmail = "Server <server@mydomain.com>" | |
$smtpServer = "10.10.10.10" | |
$subject = "Random Subject" | |
$body = "Random Body" | |
$emailTo = "Myles <myles@myles.com>", "Bill <bill@bill.com>", "John <john@john.com>" | |
send-mailmessage -to $emailTo -from "$fromEmail" -subject "$subject" -body "$body" -smtpServer "$smtpServer" -BodyAsHtml |
OlderNewer