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
ffprobe -loglevel error -show_streams ~/Desktop/img-3322-online-video-cuttercom-2.mp4 | |
[STREAM] | |
index=0 | |
codec_name=aac | |
codec_long_name=AAC (Advanced Audio Coding) | |
profile=LC | |
codec_type=audio | |
codec_tag_string=mp4a | |
codec_tag=0x6134706d | |
sample_fmt=fltp |
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
git log --since="February 1" --until="March 1" > ~/Documents/site.nl/february_commits.txt | |
git log --since="March 1" --until="April 1" > march_commits.txt | |
git log --since="April 1" --until="May 1" > april_commits.txt | |
git log --since="April 1" --until="April 10" > april_commits_apr1_to_apr9.txt |
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
CREATE USER 'user'@'10.0.0.3' IDENTIFIED BY 'password'; | |
GRANT ALL PRIVILEGES ON database.* TO 'user'@'10.0.0.3' IDENTIFIED BY 'password'; | |
FLUSH PRIVILEGES; |
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
if( is_a( $post, 'WP_Post' ) ) { | |
write_log( 'WP_Post' ); | |
} else { | |
write_log( 'WP_Post is not a WP_Post' ); | |
} | |
$category_filters = xx_get_category_filter( $post, $the_term->slug ); |
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
mkdir backups | |
ll | |
cd backups | |
wget https://domain.nl/domain.nl_root--2024.02.09.sql.gz | |
ll | |
mysql dbasename < domain.nl_root--2024.02.09.sql -u dbase_admin -p | |
mc | |
wget https://public_html.tar.gz/public_html.tar.gz | |
wget https://domain.nl/public_html.tar.gz | |
ll |
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
ssh-keygen -t rsa -C "jasper@doamin.com" -f ~/.ssh/name | |
ssh-keygen -t rsa -b 4096 -f ~/.ssh/name |
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 | |
/* | |
Plugin Name: Custom Script Runner | |
Description: Allows users to run a custom PHP script. | |
Version: 1.0 | |
Author: Your Name | |
*/ | |
// Define the page where the script can be run | |
function custom_script_runner_menu() { |
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
sudo setfacl -Rm u:deployment:rwx /home/user/site.nl/public |
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('wc_rms_change_short_desc_disp_count', 'wc_rms_change_short_desc_disp_count_updated', 100, 2); | |
/** | |
* Filter callback function for modifying the short description displayed count. | |
* | |
* This function is hooked to the 'wc_rms_change_short_desc_disp_count' filter | |
* and is designed to modify the short description of a WooCommerce product. | |
* | |
* @param string $desc The original short description of the product. | |
* @param object $prod The WooCommerce product object. |
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
# add node_modules line to .gitignore file | |
# run this command | |
git rm -r --cached node_modules | |
# Now you can commit your repository without node_modules: | |
git commit -m "Removed node_modules" | |
# And push your changes: | |
git push origin master |
NewerOlder