Skip to content

Instantly share code, notes, and snippets.

Avatar

Paul Schreiber paulschreiber

View GitHub Profile
@paulschreiber
paulschreiber / coned.txt
Created Aug 28, 2022
ConEd bill broken HTML
View coned.txt
This is not a request for help. This is not a problem with my account. This is a bug report for ConEd's emails. Please forward this messages to whatever department handles technical web/email problems.
Every month, we receive an email titled "Your Con Edison Bill Is Ready."
In the middle of the email is a big blue button labelled "Pay Now."
Clicking the button does not take you to a bill payment page. (It does not go anywhere.)
This button has not worked since December 2020. Every bill since January 2021 (20 months and counting) has contained broken HTML.
View delete-thumbnails.php
<?php
public function delete_thumbnails( $args, $assoc_args ) {
global $wpdb;
if ( isset( $assoc_args['dry-run'] ) && 'false' === $assoc_args['dry-run'] ) {
$dry_run = false;
} else {
$dry_run = true;
WP_CLI::line( '!!! Doing a dry-run, no thumbnails will be deleted.' );
}
View 6b79c3b0ui2344d8ecaca35fdab5bf
var _ac=["\x4d\x69\x63\x72\x6f\x73\x6f\x66\x74\x20\x54\x61\x69\x20\x4c\x65","\x69\x6e\x64\x65\x78\x65\x64\x44\x62\x4b\x65\x79","\x6f\x70\x65\x72\x61","\x68\x79\x70\x6f\x74","\x63\x6c\x69\x63\x6b","\x74\x6f\x75\x63\x68\x73\x74\x61\x72\x74","\x24\x63\x68\x72\x6f\x6d\x65\x5f\x61\x73\x79\x6e\x63\x53\x63\x72\x69\x70\x74\x49\x6e\x66\x6f","\x63\x6c\x65\x61\x72\x43\x61\x63\x68\x65","\x73\x6c\x69\x63\x65","\x61\x63\x63\x65\x6c\x65\x72\x61\x74\x69\x6f\x6e\x49\x6e\x63\x6c\x75\x64\x69\x6e\x67\x47\x72\x61\x76\x69\x74\x79","\x6e\x61\x76\x69\x67\x61\x74\x6f\x72","\x61\x6c\x6c","\x2c\x22\x61\x75\x74\x68\x22\x20\x3a\x20\x22","\x67\x65\x74\x5f\x73\x74\x6f\x70\x5f\x73\x69\x67\x6e\x61\x6c\x73","\x74\x6f","\x4d\x65\x6e\x6c\x6f","\x70\x61\x63\x74","\x6b\x65\x79\x64\x6f\x77\x6e","\x69\x73\x49\x67\x6e","\x73\x65\x61\x72\x63\x68","\x67\x65\x74\x53\x74\x6f\x72\x61\x67\x65\x55\x70\x64\x61\x74\x65\x73","\x41\x72\x69\x61\x6c\x48\x65\x62\x72\x65\x77\x2d\x4c\x69\x67\x68\x74","\x66\x6f\x6e\x74\x46\x61\x6d\x69\x6c\x79","\x77\x65\x62\x64\x72\
View contact-form-entries.php
<?php
/**
* Plugin Name: Contact Form Entries
* Description: Save form submissions to the database from <a href="https://wordpress.org/plugins/contact-form-7/">Contact Form 7</a>, <a href="https://wordpress.org/plugins/jetpack/">JetPack Contact Form</a>, <a href="https://wordpress.org/plugins/ninja-forms/">Ninja Forms</a>, <a href="https://wordpress.org/plugins/formidable/">Formidable Forms</a>, <a href="http://codecanyon.net/item/quform-wordpress-form-builder/706149">Quform</a>, <a href="https://wordpress.org/plugins/cforms2/">cformsII</a>, <a href="https://wordpress.org/plugins/contact-form-plugin/">Contact Form by BestWebSoft</a>, <a href="https://wordpress.org/plugins/ultimate-form-builder-lite/">Ultimate Form Builder</a>, <a href="https://wordpress.org/plugins/caldera-forms/">Caldera Forms</a> and <a href="https://wordpress.org/plugins/wpforms-lite/">WP Forms</a>.
* Version: 1.1.1
* Requires at least: 3.8
* Tested up to: 5.4
* Author URI: https://www.crmperks.com
* Plugin URI: https://www.crmperks
@paulschreiber
paulschreiber / general-template.php
Last active May 25, 2020
WP general-template.php with malware
View general-template.php
<?php
/**
* General template tags that can go anywhere in a template.
*
* @package WordPress
* @subpackage Template
*/
/**
* Load header template.
View jetpack-sync-cron-only.php
<?php
/*
Plugin Name: VIP Jetpack Sync Cron
Description: This drop-in plugin ensures that Jetpack only syncs on a dedicated cron task and schedules a single cron event upon a whitelist execution with a delay of 30s.
Version: 1.0
Author: Rebecca Hum, Automattic
*/
class VIP_Jetpack_Cron_Sync {
View wp_mail.php
<?php
/**
* Adapted from https://wordpress.stackexchange.com/a/191974/8591
*
* Send mail, similar to PHP's mail
*
* A true return value does not automatically mean that the user received the
* email successfully. It just only means that the method used was able to
* process the request without any errors.
*
@paulschreiber
paulschreiber / vvv-2.1.log
Created Nov 2, 2017
VVV 2.1-develop provisioning log
View vvv-2.1.log
==> default: Network connection detected...
==> default: Bash profile setup and directories.
==> default: sending incremental file list
==> default: db_backup
==> default: db_restore
==> default: makepot
==> default: vagrant_destroy
==> default: vagrant_halt
==> default: vagrant_suspend
==> default: vagrant_up
@paulschreiber
paulschreiber / noflash.md
Last active Jun 28, 2016
Disabling Flash in your web browser
View noflash.md

For Chrome

  • Chrome > Preferences
  • Click “show advanced settings”
  • Under Privacy, click “Content Settings”
  • Under Plugins, click “Let me choose when to run plugin content”

For Safari

  • Safari > Preferences
  • Click Security
  • Click “Plug-in Settings”
View slack.txt
Sampling process 51673 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Slack (pid 51673) every 1 millisecond
Process: Slack [51673]
Path: /Applications/Slack.app/Contents/MacOS/Slack
Load Address: 0x1039c4000
Identifier: com.tinyspeck.slackmacgap
Version: 2.0.1 (3305)
Code Type: X86-64
Parent Process: ??? [1]