mysql –u root -p
GRANT ALL PRIVILEGES ON *.* TO root@'%' 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
from moviepy.editor import VideoFileClip | |
from tkinter.filedialog import * | |
import os | |
# Accept only .mov and .mp4 files. Feel free to change. | |
accepted_files = [("Mov files", "*.mov"), ("MP4 files", "*.mp4")] | |
# Select a video which is one of the accepted file types from your machine | |
video_file = askopenfilename(filetypes=accepted_files) |
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
# Source1: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-20-04 | |
sudo apt update | |
sudo apt install -y apache2 | |
sudo apache2 -v | |
sudo apt install -y mysql-server | |
sudo apt install -y php libapache2-mod-php php-mysql php-common php-cli php-common php-json php-opcache php-readline php-dom php-curl | |
php -v |
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
/** | |
* A implementation of Stack using Java Generic Programming | |
* @author Al- Imran Ahmed | |
*/ | |
public class Stack<T>{ | |
//Top node of the stack | |
private Node top = null; | |
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
/** | |
* Implementation of Queue using Java | |
* @author Al- Imran Ahmed | |
*/ | |
public class Queue<T>{ | |
Node font = null; | |
Node back = null; | |
private class Node{ | |
T item; | |
Node next; |
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 | |
function isMatched(string $pattern, string $value): bool | |
{ | |
if ($pattern == $value) { | |
return true; | |
} | |
$pattern = preg_quote($pattern, '#'); |
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 | |
namespace App\Helpers; | |
/** | |
* XML to Associative Array Class | |
* | |
* Usage: | |
* $domObj = new xmlToArrayParser($xml); |
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 | |
$finder = Symfony\Component\Finder\Finder::create() | |
->notPath('bootstrap/cache') | |
->notPath('storage') | |
->notPath('vendor') | |
->in(__DIR__) | |
->name('*.php') | |
->name('_ide_helper') | |
->notName('*.blade.php') | |
->ignoreDotFiles(true) |
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 | |
namespace App\Services\EmailVerify; | |
use \DOMDocument; | |
use \DOMXpath; | |
use Log; | |
/** | |
* Verifies email address by attempting to connect and check with the mail server of that account |
NewerOlder