Linux installation notes (tested under Ubuntu 14.04LTS/12.04LTS), assuming VirtualBox is already installed on host.
With: https://www.ffmpeg.org/ (brew install ffmpeg
)
The command I used to strip the unused/silent audio channel + "hint for streaming" was:
ffmpeg -i my-video.mp4 -c copy -an -movflags faststart my-video-nosound-hint.mp4
This caused an 8MB video which was too big for web usage, to become a 10MB file that plays immediately while the video is still downloading.
- Before: Lighthouse complained about the page and the video file (Rightly so).
List of Cloudflare's new DeepLinks. These links will allow you to link to specific areas of the Cloudflare dashboard without being dependant on any particular account or zone.
- All Websites (Not a DeepLink)
- Account Home/Zones List
- Analytics
- Workers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find ./ -type f -name '*.jpg' -exec sh -c 'cwebp -q 75 $1 -o "${1%.png}.webp"' _ {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Abbotsford | |
Airdrie | |
Armstrong | |
Barrie | |
Bathurst | |
Belleville | |
Brampton | |
Brandon | |
Brant | |
Brantford |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); | |
$plugins = array( | |
'wordpress-seo/wp-seo.php', | |
'broken-link-checker/broken-link-checker.php' | |
); | |
if ( strpos(get_site_url(), 'devserver.com') !== false ) { | |
deactivate_plugins( $plugins ); | |
} | |
else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Alberta | |
British Columbia | |
Manitoba | |
New Brunswick | |
Newfoundland and Labrador | |
Northwest Territories | |
Nova Scotia | |
Nunavut | |
Ontario | |
Prince Edward Island |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WP FEATURED IMAGE URLS in JSON API | |
// See: https://wordpress.stackexchange.com/a/249769/105228 | |
// | |
add_action( 'rest_api_init', 'add_thumbnail_to_JSON' ); | |
function add_thumbnail_to_JSON() { | |
//Add featured image | |
register_rest_field( | |
'post', // Where to add the field (Here, blog posts. Could be an array) | |
'featured_image_src', // Name of new field (You can call this anything) | |
array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cwebp Docs: https://developers.google.com/speed/webp/docs/using | |
find ./ -type f -name '*.png' -exec sh -c 'cwebp -q 75 $1 -o "${1%.png}.webp"' _ {} \; && | |
find ./ -type f -name '*.jpg' -exec sh -c 'cwebp -q 75 $1 -o "${1%.jpg}.webp"' _ {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fetch external data for use with 11ty (https://www.11ty.dev) | |
const fetch = require("node-fetch"); | |
module.exports = async function() { | |
console.log( "Fetching titles…" ); | |
// Sheety API - See: https://sheety.co/ | |
const response = await fetch("https://v2-api.sheety.co/fc583ad9266228c03ecc1ee9ace31835/starWarsChronologicalOrder/sheet1") | |
return response.json(); | |
}; |
NewerOlder