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
import csv | |
from datetime import datetime | |
# Open the CSV file | |
with open('wepay-input.csv', 'r') as csvfile: | |
# Create a reader object | |
reader = csv.DictReader(csvfile) | |
# Open the QFX file | |
with open('wepay-output.qfx', 'w') as qfxfile: |
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
find -iname "*.jpg" -type f -exec identify -format '%w %h %i\n' '{}' \; | awk '$1>1050' | sed 's/.* //' | sudo mogrify -resize 1050x\> @- |
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
grep 'on line' error_log | cut -d' ' -f11-34 | sort | uniq -c | sort -n |
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
// Adds custom mail tag to WPCF7 that gets the email address on a profile page of the profiled author/user. | |
function custom_wpcf7_special_mail_tag( $output, $name, $html ) { | |
$name = preg_replace( '/^wpcf7\./', '_', $name ); // for back-compat | |
$submission = WPCF7_Submission::get_instance(); | |
if ( ! $submission ) { | |
return $output; | |
} | |
if ( '_url' == $name ) { |