Control Zoom audio/video via AppleScript.
Clone the repo somewhere. Assume: ~/Applications/Zoom-JS
Then run:
These notes are super rough, and I didn’t take notes for a couple sessions. Let me know if you found them useful or they helped you remember things presented at the conference! @markjaquith on Twitter.
by Nuno Maduro
[!question] How do snapshots work in CI? Won’t there not be an existing snapshot when the tests run?
<?php | |
/** | |
* Plugin Name: Alloptions Optimizer | |
* Author: Mark Jaquith | |
*/ | |
class AllOptionsOptimizer { | |
private static $usedOptions = []; | |
private static $allOptions = []; | |
private static $allOptionsBytes; |
#!/bin/zsh | |
function maybeBail() { | |
if [[ $? -ne 0 ]]; then | |
exit 1 | |
fi | |
} | |
TYPE=$(gum choose "fix" "feat" "docs" "style" "refactor" "test" "chore" "revert") | |
maybeBail |
<?php | |
/** | |
* Plugin Name: Open Admin Links in New Tab | |
* Author: Mark Jaquith | |
*/ | |
add_action('admin_footer', function () { | |
echo <<<SCRIPT | |
<script> | |
document.body.addEventListener('click', (e) => { |
<?php | |
// Block the ACF settings UI entirely, except on local dev. | |
if (! defined('WP_LOCAL_DEV') || ! WP_LOCAL_DEV) { | |
add_filter('acf/settings/show_admin', '__return_false'); | |
add_filter('acf/settings/capability', function () { return 'do_not_allow'; }); | |
} |
<?php | |
add_action( 'gform_stripe_post_include_api', function() { | |
if ( method_exists( '\Stripe\Stripe', 'setApiVersion' ) ) { | |
\Stripe\Stripe::setApiVersion( '2016-07-06' ); | |
} | |
}); |
<?php | |
/** | |
* Plugin Name: YOUR PLUGIN NAME | |
*/ | |
include( dirname( __FILE__ ) . '/lib/requirements-check.php' ); | |
$your_plugin_requirements_check = new YOUR_PREFIX_Requirements_Check( array( | |
'title' => 'YOUR PLUGIN NAME', | |
'php' => '5.4', |
<?php | |
/* | |
Plugin Name: Block WordPress attachment queries | |
Description: Blocks MySQL queries for WordPress attachments that are on domains we know will never resolve to a local WordPress attachment ID. | |
Author: Mark Jaquith | |
*/ | |
add_filter( 'query', function( $query ) { | |
global $wpdb; |