Inspired by @lauraalpinto: https://codepen.io/lauraalpinto/pen/qLzGBX?editors=0100
This file contains hidden or 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
<!--------------------------------------------------------+ | |
|⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀| | |
|⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣶⣿⣿⣿⣿⣿⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀| | |
|⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⣿⣿⠿⠟⠛⠻⣿⠆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀| | |
|⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣆⣀⣀⠀⣿⠂⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀| | |
|⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠻⣿⣿⣿⠅⠛⠋⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀| | |
|⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢼⣿⣿⣿⣃⠠⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀| | |
|⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣟⡿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀| | |
|⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣛⣛⣫⡄⠀⢸⣦⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀| | |
|⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣾⡆⠸⣿⣿⣿⡷⠂⠨⣿⣿⣿⣿⣶⣦⣤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀| |
Combine lots of mp3s into one file. They will be combined in alphabetical order so prepare the filenames ahead of time with leading zeros if needed (e.g. whatever-01.mp3 whatever-02.mp3 ... etc)
mp3wrap combined.mp3 origs/*
Strip out all the media track id3 tags from a file (useful after combining with mp3wrap)
id3convert -s file.mp3
This file contains hidden or 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
# START Block Crawlers | |
RewriteEngine On | |
RewriteCond %{HTTP_USER_AGENT} ^APIs-Google [OR] | |
RewriteCond %{HTTP_USER_AGENT} ^AdsBot-Google [OR] | |
RewriteCond %{HTTP_USER_AGENT} ^AdsBot-Google-Mobile [OR] | |
RewriteCond %{HTTP_USER_AGENT} ^AdsBot-Google-Mobile-Apps [OR] | |
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR] | |
RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR] | |
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR] | |
RewriteCond %{HTTP_USER_AGENT} ^Custo [OR] |
This file contains hidden or 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 | |
/** | |
* Plugin Name: Remove Unwanted Default Image Sizes | |
* Plugin URI: https://gist.github.com/chrisdavidmiles/6fd21201d16f8a7e434b06b903d4706c | |
* Description: This removes three default image sizes that I don't want: medium_large, 1536x1536, and 2048x2048. | |
* Author: Jochen Gererstorfer | |
* Author URI: https://bloggerpilot.com/en/disable-wordpress-image-sizes/ | |
* Version: 0.3 | |
*/ |
This file contains hidden or 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 | |
/** | |
* Plugin Name: Disable Emojis | |
* Plugin URI: https://gist.github.com/chrisdavidmiles/7727d3c4b8b8967f87e6ff0338b8297c | |
* Description: Disable the automatic emoji replacement in post content and prevent the use of the s.w.org emoji cdn on the site. | |
* Author: Chris David Miles | |
* Version: 0.1 | |
*/ | |
This file contains hidden or 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 | |
/** | |
* Plugin Name: Auto Rename Uploads to Match Post Slug | |
* Plugin URI: https://gist.github.com/chrisdavidmiles/770ffbfe428b440fd007bcb6b08e94d7 | |
* Description: Uploads will be automatically renamed to match the post slug | |
* Author: Chris David Miles | |
* Version: 0.1 | |
*/ | |
function auto_rename_uploads_to_post_slug( $filename ) { |
This file contains hidden or 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 | |
/** | |
* Plugin Name: Require Auth | |
* Plugin URI: https://gist.github.com/chrisdavidmiles/01ad21767394d6b3770197667c32526a | |
* Description: Users must be logged in to WordPress to see site content. If a user is not authenticated, they will be redirected to the login screen. | |
* Author: Chris David Miles | |
* Version: 0.1 | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) die; |
This file contains hidden or 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 | |
/** | |
* Plugin Name: Custom Uploads Directory By File Type | |
* Plugin URI: https://gist.github.com/chrisdavidmiles/a7f3fbf09616b4c445a45310c0f88e05 | |
* Description: This plugin automatically sorts uploads into a folder corresponding to their file type. Images go into <code>/img</code>, documents go into <code>/docs</code>, video goes into <code>/img</code>, and the rest goes into <code>/misc</code>. Note: This code doesn't work with 'browser uploader'. | |
* Author: Forked from Blaine Robison | |
* Author URI: https://gist.github.com/blainerobison/e802658da007e6e806b1 | |
* Version: 0.2 | |
*/ |
This file contains hidden or 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 | |
/** | |
* Plugin Name: Automatically Set the Featured Image | |
* Plugin URI: https://gist.github.com/chrisdavidmiles/31fd0b6dfb4716ee9bfa34ca68b6cb57 | |
* Description: When a post is saved or updated, if a featured image is not set, the featured image will be set to the first image in the post. | |
* Author: Jonathan Dingman | |
* Author URI: https://web.archive.org/web/20170926163348/http://wpforce.com/automatically-set-the-featured-image-in-wordpress/ | |
* Version: 0.1 | |
*/ |
NewerOlder