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
handbrakeCLI -i INPUT-FILENAME -o OUTPUT-FILENAME -B 320 -e x264 |
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
youtube-dl -v --no-cache-dir --rm-cache-dir --prefer-ffmpeg --hls-prefer-ffmpeg -R infinite -c --ignore-errors --audio-quality 8 --audio-format wav --ffmpeg-location /usr/local/Cellar/ffmpeg/4.1/bin/ffmpeg VIDEO/PLAYLIST-URL |
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
# Finding handle for your plugins | |
function display_script_handles() { | |
global $wp_scripts; | |
if(current_user_can('manage_options')){ # Only load when user is admin | |
foreach( $wp_scripts->queue as $handle ) : | |
$obj = $wp_scripts->registered [$handle]; | |
echo $filename = $obj->src; | |
echo ' : <b>Handle for this script is:</b> <span style="color:green"> '.$handle.'</span><br/><br/>'; | |
endforeach; | |
} |
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
// REMOVE BEGINNING OF N CHARACTERS OF TEXT | |
// (Removes first three characters of strings located in array) | |
=ArrayFormula(right(D1:D15,len(D1:D15)-3)) | |
// (Removes the first character in first column and the first three columns in the second column) | |
=ArrayFormula(replace(A1:B10,1,3,"")) | |
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
ffmpeg -i Video_Title.mp4 -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis Video_Title.webm |
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
ffmpeg -i input.mp4 -c:v libtheora -q:v 7 -c:a libvorbis -q:a 4 output.ogv |
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
// Adding a class if id exists | |
if ($("#ifIdIsPresent")[0]){ | |
$(".targetClass").addClass( "new-class" ); | |
} |
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 _e(date('Y')); ?> |
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
open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --disable-gpu | |