- Download FFmpeg
- Extract it and save it to C drive ( choose any location - it's optional )
- Set environment variable - copy the location of bin folder which is inside the extracted file and set the location on system path variable.
- Done!
This file contains hidden or 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
/* SIDE BY SIDE PHRICTION EDIT */ | |
/* add a userstyle with pattern */ | |
/* L H S */ | |
/* pos of left-hand editor */ | |
.phui-box.phui-box-border.mlt.mll.mlr.phui-object-box.phui-object-box-lightblue { | |
margin-right: 800px !important; | |
margin-left:0 !important; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>*scratch*</title> | |
<style> | |
body { | |
font-family: Hack, Menlo, Monaco, 'Droid Sans Mono', 'Courier New', monospace; | |
white-space: pre; |
This file contains hidden or 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 | |
/* | |
PHP Automorphic Number Finder Algorithm | |
Author: Lawrence Lagerlof | |
License: MIT | |
*/ | |
$limit = 1000000; | |
$milestone = $limit / 100; | |
for ($n = 2; $n <= $limit; $n++) { | |
$square = (string) $n * $n; |
This file contains hidden or 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 | |
// original author: https://www.php.net/manual/en/function.print-r.php#93529 | |
// another dev said it was fixed for null values, but I don't encountered errors with null values for Matt's: https://www.php.net/manual/en/function.print-r.php#121259 | |
// Matt | |
function print_r_reverse($in) { | |
$lines = explode("\n", trim($in)); | |
if (trim($lines[0]) != 'Array') { | |
// bottomed out to something that isn't an array | |
return $in; |
This file contains hidden or 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
# Must run as root in mysql cli | |
SET global log_output = 'FILE'; | |
SET global general_log_file='mysql_sql.log'; | |
SET global general_log = 1; | |
# Disable with SET global general_log = 0; |
This file contains hidden or 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
function substringExists(haystack, needle) | |
{ | |
size_haystack = haystack.length; | |
size_needle = needle.length; | |
loop = size_haystack - size_needle; | |
for (i=0; i < loop + 1; i++) { | |
sub = haystack.substr(i, size_needle); | |
c = sub.localeCompare(needle, {}, {sensitivity: 'base'}); | |
if (c === 0) { | |
return true; |
This file contains hidden or 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 | |
/* | |
This script can be used on terminal. Eg: | |
$ php id_date_valid.php 2019-08-12 15:23:58 | |
*/ | |
$datetime = $argv[1] . ' ' . $argv[2]; | |
if ($datetime == date('Y-m-d H:i:s', strtotime ($datetime))) { | |
echo "true"; | |
} else { |