git init
or
// ==UserScript== | |
// @name Gmail Sender Utils | |
// @namespace https://github.com/szhu | |
// @match https://mail.google.com/mail/u/* | |
// @version 1.3 | |
// @author Sean Zhu | |
// @description Quickly drill down by sender or label in Gmail. | |
// @homepageURL https://gist.github.com/szhu/1d816086307c5de02bc9a2bb1cf01fe0 | |
// @updateURL https://gist.github.com/szhu/1d816086307c5de02bc9a2bb1cf01fe0/raw/gmail-sender-utils.user.js | |
// @downloadURL https://gist.github.com/szhu/1d816086307c5de02bc9a2bb1cf01fe0/raw/gmail-sender-utils.user.js |
<?php | |
/** | |
* AMP Async Validation | |
* | |
* Installation instructions: | |
* 1. Click the “Download ZIP” button. | |
* 2. Rename the downloaded ZIP file to “amp-async-validation.zip” | |
* 3. In the WordPress admin, go to Plugins > Add New | |
* 4. Click the Upload Plugin button. | |
* 5. Select the “amp-async-validation.zip” file and click “Install now”. |
#!/bin/bash | |
# https://cloud.google.com/compute/docs/faq#find_ip_range | |
# nslookup -q=TXT _cloud-netblocks.googleusercontent.com 8.8.8.8 | |
myarray=() | |
for LINE in `dig txt _cloud-netblocks.googleusercontent.com +short | tr " " "\n" | grep include | cut -f 2 -d :` | |
do | |
myarray+=($LINE) | |
for LINE2 in `dig txt $LINE +short | tr " " "\n" | grep include | cut -f 2 -d :` |
<?php | |
/** | |
* @package curl-no-ipv6 | |
* @version 1.0 | |
* @since 1.0 | |
*/ | |
/* | |
Plugin Name: cURL no IPv6 | |
Plugin URI: https: | |
Description: On systems where cURL is compiled with IPv6, Requests to Wordpress Update API will timeout since cURL tries it about 15s. Since the timeout defined by WordPress is 3s/5s/10s this will breake the Updater. This Plugin simply forces cURL to use IPv4 only. |
<?php | |
/* | |
* Plugin Name: Disabling autocomplete for editor | |
* Description: See https://core.trac.wordpress.org/ticket/28037 | |
*/ | |
add_action( 'post_edit_form_tag' , 'disable_autocomplete_for_editor__gfm_ac' ); | |
function disable_autocomplete_for_editor__gfm_ac( ) { | |
echo ' autocomplete="off" '; |