View gist:3509561dda65df35075f87fb7adc629e
Verifying that "chuckreynolds.id" is my Blockstack ID. https://onename.com/chuckreynolds
View sample-wordpress-options-cache.php
<?php
function get_twitter_followers() {
$ttl = 2 * HOUR_IN_SECONDS;
$cache = get_option( 'my_twitter_followers' );
if ( empty( $cache['timeout'] ) || $cache['timeout'] < time() ) {
$followers = wp_remote_get( ... );
$cache = array(
'count' => $followers,
View ngrok-to-local-vagrant.sh
./ngrok http -host-header=rewrite localsitename.app:80
View gist:c28d0957300b6b540dc295190ddfc1cb
// Disable users REST API endpoints
add_action( 'rest_endpoints', function( $endpoints) {
foreach ( $endpoints as $endpoint => $args ){
if( false !== strpos( '/wp/v2/users', $endpoint ) ){
unset( $endpoints[ $endpoint ] );
}
}
return $endpoints;
});
View wordpress-disable-jquery-migrate.php
<?php
/**
* Disable jQuery Migrate in WordPress.
*
* @author Guy Dumais.
* @link https://en.guydumais.digital/disable-jquery-migrate-in-wordpress/
*/
add_filter( 'wp_default_scripts', $af = static function( &$scripts) {
$scripts->remove( 'jquery-migrate');
} );
View .editorconfig
# editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
View npm.json
{
"name": "gablaxian",
"version": "1.0.0",
"description": "gablaxian website",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/gablaxian/gablaxian.com.git"
},
View TwiMLbin-forwarding.xml
// to forward a call and setup voicemail on timeout
<Response>
<Dial timeout="20" record="record-from-answer">xxx-xxx-xxxx</Dial>
</Response>
// to forward a sms to another number
<Response>
<Message to="+1xxxxxxxxxx">{{From}}: {{Body}}</Message>
</Response>
View antispambot-wordpress-shortcode.php
<?php
/**
* Hide email from Spam Bots using a shortcode.
* Anti-Spambot Email Shortcode, v1.1.1
* https://wordpress.org/plugins/antispambot
*
* @param array $atts Shortcode attributes. Not used.
* @param string $content The shortcode content. Should be an email address.
*
* @return string The obfuscated email address.
View block.twitter.live.txt
twitter.com##.is-playing.module.LiveVideoHomePageModule
twitter.com##.roaming-module.LiveVideoHomePageModuleContainer