Skip to content

Instantly share code, notes, and snippets.

View AlanD20's full-sized avatar
🎯
Focusing

AlanD20 AlanD20

🎯
Focusing
View GitHub Profile

Generate Text From Video using Python

Install the following python modules:

pip3 install librosa SpeechRecognition

Install ffmpeg CLI app

@AlanD20
AlanD20 / 0_README.md
Last active May 26, 2023 15:21
disable alt click and alt double click downloads in browsers

Disable Alt + Click & Alt + Double Click Downloads in Browsers

Installation

  1. Download TamperMonkey extension.
  2. Copy the script's raw link.
  3. Go to TamperMonkey's dashboard and then Utilities.
  4. Paste the script's raw link in the Import from URL then press install.
@AlanD20
AlanD20 / 0_README.md
Last active August 8, 2023 15:24
Docker Database Setup

Docker Database Setup

This is a simple project that helps you setup a simple MySQL, phpMyAdmin, Mailpit/Mailhog containers in a single docker compose file. The project contains a docker-compose file with a package.json to run the docker-compose commands easily.

@AlanD20
AlanD20 / README.md
Last active June 30, 2022 14:41
Tools Configurations

Tools Configuration & Code Formatters

Postcss:

yarn add -D postcss postcss-cli tailwindcss autoprefixer cssnano

Postcss Build Command:

postcss ./dev -o ./src
@AlanD20
AlanD20 / README.md
Last active January 14, 2023 22:03
Windows Customization

Windows Customization

Installation

  • Chocolatey
  • Scoop.sh and here is Scoop Documentation.
    • You may also have to add other repositories such as extras and versions with the following command:
      scoop bucket list # Check current lists
      scoop bucket add extras
      scoop bucket add versions
@AlanD20
AlanD20 / README.md
Last active February 26, 2024 04:34
Fresh Ubuntu Configs & Customizations

Ubuntu Customization

GNOME Extensions

  • Install the following packages:
sudo apt install gnome-tweaks gnome-shell-extensions
sudo apt-get install chrome-gnome-shell # Only Chromium Browsers
@AlanD20
AlanD20 / DictionaryLookup.md
Created June 10, 2022 12:25
Coding Problems

Algorithm Problem - Dictionary Lookup

  1. You have setup() function that accepts an array of words.
  2. Calling isInDict(word) function by passing a single string word. Returns true if it includes in the dictionary which we have initialized from setup() function.
  3. The word we pass it to isInDict() function, may have wild cards which each wild card represent a single letter.

Here is an example:

Dictionary initializatoin:

@AlanD20
AlanD20 / Database.php
Last active August 8, 2023 20:34
PHP Custom Helper Classes
<?php
namespace App\Service;
use PDO;
use PDOStatement;
class Database
{
private string $database;
@AlanD20
AlanD20 / mergesort.js
Last active May 2, 2022 11:16
Merge sort algorithm in javascript / python
// Testing Example
const list = [5, 2, 1, 4, 5, 2, 5, 7, 9, 8, 3]
console.log("Before Merge Sorting:");
console.log(...list);
mergeSort(list);
console.log("After Merge Sorting:");
<html>
<head>
<style>
*, *::after, *::before{
margin: 0;
padding: 0;
box-sizing: border-box;
}