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
alias rm='rm -i' | |
alias cp='cp -i' | |
alias mv='mv -i' | |
alias aliases='nano ~/.bashrc' | |
alias realias='. ~/.bashrc' | |
alias ls="ls -ahl --color=never --group-directories-first" | |
alias del=rm | |
alias cls=clear |
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 | |
add_filter( 'body_class', function( $classes ) { | |
$restrict_page = ( get_field( 'msp_registration_required' ) ? true : false ); | |
error_log( "before count = " . count( $classes ) ); | |
if ( $restrict_page ) { | |
$classes[] = 'msp-restrict-page'; | |
} | |
error_log( "after count = " . count( $classes ) ); | |
return $classes; | |
} ); |
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
#!/bin/bash | |
folder="/var/www/{website}/wp-content/uploads/video" | |
for filename in $folder/*.mov; do | |
if [ -f $filename ]; then | |
ffprobe -hide_banner -v quiet -print_format json -show_format -show_streams $filename > $folder/$(basename -s .mov $filename).json | |
fi | |
done | |
for filename in $folder/*.mp4; do | |
if [ -f $filename ]; then | |
ffprobe -hide_banner -v quiet -print_format json -show_format -show_streams $filename > $folder/$(basename -s .mp4 $filename).json |
OlderNewer