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
#http://stackoverflow.com/questions/6348289/download-a-working-local-copy-of-a-webpage | |
#http://stackoverflow.com/questions/8755229/how-to-download-all-file-from-website-using-wget | |
#http://stackoverflow.com/questions/4272770/wget-with-authentication?rq=1 | |
#add browser headers: | |
#--header="Accept: text/html" --user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/30.0" | |
#add .htaccess authentication details: | |
#--password=password --user=user | |
wget -m -p -E -k -K -np http://site/path/ | |
wget -p -k http://ExampleSite.com | |
# and another via Quora https://www.quora.com/How-do-you-export-a-WordPress-site-to-a-static-HTML |
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
<?php | |
/* lookforbadguys.php 2011-09-27 | |
Copyright (C)2011 Karen Chun, Steven Whitney. | |
Initially published by http://25yearsofprogramming.com. | |
This program is free software; you can redistribute it and/or | |
modify it under the terms of the GNU General Public License (GPL) | |
Version 3 as published by the Free Software Foundation. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
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 |
NewerOlder