A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
<?php | |
/** | |
* Will read and parse the passed source files in the project and add them to the appropiate indexes | |
* | |
* @return Promise <void> | |
*/ | |
public function index(): Promise | |
{ | |
return coroutine(function () { |
<?php | |
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
/* Remove Yoast from front end for a single post or page | |
* Credit: Dodinas https://stackoverflow.com/questions/37845968/disable-wordpress-yoast-seo-on-single-page | |
* Last Tested: Nov 08 2019 using Yoast SEO 12.4 on WordPress 5.2.4 | |
* Note: For version 14+, please use the code here: https://developer.yoast.com/customization/yoast-seo/disabling-yoast-seo | |
********* | |
* DIFFERENT POST TYPES | |
* Post: Change 123456 to the post ID | |
* Page: Change is_single to is_page and 123456 to the page ID |
# Cleanup old node_modules | |
echo "Cleaning node_modules in projects older than 30 days" | |
find . -name "node_modules" -type d -mtime +30 | xargs rm -rf | |
echo "Done cleaning node_modules" | |
# Clean up homebrew | |
echo "Clean homebrew" | |
brew update && brew upgrade && brew cleanup | |
echo "Done cleaning homebrew" |
<?php | |
/** | |
* Make sure the Composer\Autoload namespace is prefixed. | |
* Needs to be run after php-scoper. | |
* | |
* `php ./patch-scoper-autoloader-namespace.php MY_PREFIX` | |
*/ | |
if ( empty( $argv[1] ) ) { | |
return; |
Replace TextEdit as the default text editor application for opening plain text files and files with no extensions on macOS.
Run the following command in the Terminal to find the bundle identifier for your desired text editor application:
$ osascript -e 'id of app "Visual Studio Code"'
com.microsoft.VSCode
$ osascript -e 'id of app "Sublime Text"'
com.sublimetext.3
<?php | |
/** | |
* Usage of 'gu_fix_repo_slug' filter. | |
* | |
* @package wordpress-plugin | |
* @link https://github.com/afragen/git-updater/issues/971 | |
*/ | |
/** | |
* Plugin Name: Change Default Content Folder |
// Core assets | |
let coreAssets = []; | |
// On install, cache core assets | |
self.addEventListener('install', function (event) { | |
// Cache core assets | |
event.waitUntil(caches.open('app').then(function (cache) { | |
for (let asset of coreAssets) { | |
cache.add(new Request(asset)); |