This file contains hidden or 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
'atom-text-editor': | |
'ctrl-d':'editor:duplicate-lines' |
This file contains hidden or 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
Service Problems/Status | |
Events | |
Release Notes / New Release Information | |
Tips / Newsletter | |
Special Offers | |
Feedbacks/Surveys |
This file contains hidden or 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
du -chs /srv/www/* |
This file contains hidden or 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
People who believe in healing crystals. | |
People who sell multi level marketing programs | |
People who believe 9/11 is in inside job |
This file contains hidden or 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
dd if=/dev/source_disk of=/dev/destination_disk status=progress |
This file contains hidden or 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 | |
/* | |
Use case for this is when you have certain characters like "@" that should be disallowed in certain fields. You can add a list. | |
This was built for text fields with job titles. Tweak as needed. | |
*/ | |
add_filter( 'gform_field_validation', 'gravity_forms_validate_job_titles', 10, 4 ); | |
function mgravity_forms_validate_job_titles( $result, $value, $form, $field ){ | |
$forms_fields_to_check = array( | |
//form_id => array( $field_id, $field_id_1, $field_id_2), |
This file contains hidden or 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 | |
add_filter( 'gform_save_field_value', 'gravity_forms_lowercase_all_emails', 10, 5 ); | |
function gravity_forms_lowercase_all_emails( $value, $entry, $field, $form, $input_id ){ | |
if($field->type == "email" ){ | |
$value = strtolower( $value ); | |
} | |
return $value; | |
} | |
?> |
This file contains hidden or 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
#prior to running these, grab all held emails from delivra and import as suppressions to phplist. | |
#Server 2 - All active subscribers from MYB | |
SELECT | |
phplist_user_user.id, | |
TRIM(LOWER(phplist_user_user.email)) as 'email', | |
'1' as 'Business' | |
FROM phplist_listuser | |
LEFT JOIN phplist_user_user ON phplist_listuser.userid = phplist_user_user.id | |
where `listid` = 3 |
This file contains hidden or 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 | |
add_filter( 'gform_entry_field_value', 'display_key_and_value', 10, 4 ); | |
function display_key_and_value( $value, $field, $entry, $form ){ | |
switch( $field['type'] ){ | |
case "checkbox": | |
break; | |
case "select": | |
case "radio": | |
$answers = wp_list_pluck( $field['choices'], 'value', 'text' ); |