"100","MEMBERSHIPVIP",1
"200","MEMBERSHIPVIPPLUS",1
"ELSE","MEMBERSHIPVIP",1
#Reduce input file resolution by half :: -vf "scale=trunc(iw/4)*2:trunc(ih/4)*2" | |
#Reduce quality (Higher is lower qualuty) :: -crf 24 | |
#Codec :: -vcodec libx265 OR -vcodec libx264 | |
ffmpeg -i input.mp4 -vf "scale=trunc(iw/4)*2:trunc(ih/4)*2" -vcodec libx264 -crf 24 output.mp4 |
ffmpeg -f lavfi -i color=s=1080x1920 -loop 1 -t 0.08 -i "%~1" -filter_complex "[1:v]scale=1080:-2,setpts=if(eq(N\,0)\,0\,1+1/0.02/TB),fps=25[fg]; [0:v][fg]overlay=y=-'t*h*0.02':eof_action=endall[v]" -map "[v]" output-nomusic.mp4 |
<?php | |
/* | |
* Plugin Name: WordPress Log All DB Queries To File | |
* Plugin URI: http://example.com/plugin-name-uri/ | |
* Description: All database queries will be logged to uploads/sql_log.txt activated. | |
* Version: 1.0.0 | |
* Author: Ethan Piliavin | |
* Author URI: http://piliavin.com/ | |
* License: GPL-2.0+ | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
<?php | |
* Plugin Name: WordPress Plugin Boilerplate | |
* Plugin URI: http://example.com/plugin-name-uri/ | |
* Description: This is a short description of what the plugin does. It's displayed in the WordPress admin area. | |
* Version: 1.0.0 | |
* Author: Your Name or Your Company | |
* Author URI: http://example.com/ | |
* License: GPL-2.0+ | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
# Find suspicious php files | |
find . -type f -name '*.php' | xargs egrep -i "(mail|fsockopen|pfsockopen|stream\_socket\_client|exec|system|passthru|eval|base64_decode) *(" | |
# Find suspicious images | |
find wp-content/uploads -type f -iname '*.jpg' | xargs grep -i php | |
#Find iframes | |
find . -type f -name '*.php'| grep -i '<iframe' | |
#Find files modified in last 3 days |
<?php | |
/* | |
* Plugin Name: On Sale Filter for WooCommerce Admin | |
* Description: Filter the products list in WooCommerce admin to show items on sale. | |
* Version: 1.0 | |
* Requires at least: 5.2 | |
* Requires PHP: 7.2 | |
*/ |
convert image.png -background white -alpha remove -alpha off new-image.png |
#!/bin/sh | |
#How to play a web stream on mopidy from command line (Linux) using CURL. | |
#Can also adjust moplidy playback volume if needed | |
#Clear current tracklist. Will also stop playback | |
curl -X POST -H Content-Type:application/json -d '{ | |
"method": "core.tracklist.clear", | |
"jsonrpc": "2.0", | |
"id": 1 | |
}' http://localhost:6680/mopidy/rpc |
<?php | |
//https://stackoverflow.com/a/48896992/933782 | |
function jwt_request($token, $post) { | |
header('Content-Type: application/json'); // Specify the type of data | |
$ch = curl_init('https://APPURL.com/api/json.php'); // Initialise cURL | |
$post = json_encode($post); // Encode the data array into a JSON string | |
$authorization = "Authorization: Bearer ".$token; // Prepare the authorisation token | |
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json' , $authorization )); // Inject the token into the header |