Skip to content

Instantly share code, notes, and snippets.

View surajitbasak109's full-sized avatar
💭
Working from Office

Surajit Basak surajitbasak109

💭
Working from Office
View GitHub Profile
@surajitbasak109
surajitbasak109 / Kernel.php
Created September 19, 2024 09:03
Laravel create service command
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
@surajitbasak109
surajitbasak109 / singly-linked-list.js
Created October 12, 2022 08:00
ADT for Singly Linked List
class Node {
constructor(value) {
this.value = value;
this.next = null;
}
}
class SinglyLinkedList {
constructor() {
this.head = null;
@surajitbasak109
surajitbasak109 / free_m3u8.m3u
Created September 16, 2022 09:54 — forked from Fazzani/free_m3u8.m3u
Free m3u8 streams
http://sample.vodobox.net/skate_phantom_flex_4k/skate_phantom_flex_4k.m3u8
http://playertest.longtailvideo.com/adaptive/wowzaid3/playlist.m3u8
http://cdn-fms.rbs.com.br/vod/hls_sample1_manifest.m3u8
http://nasatv-lh.akamaihd.net/i/NASA_101@319270/index_1000_av-p.m3u8?sd=10&rebase=on
http://content.jwplatform.com/manifests/vM7nH0Kl.m3u8
@surajitbasak109
surajitbasak109 / output.txt
Last active September 12, 2022 18:25
Benchmark for sorting algorithms ([Bubble, Selection, Insertion, Quick, Merge, Heap] Sort)
----------------------------------------QUICK SORT----------------------------------------
[
1, 3, 4, 4, 5, 5, 5, 6, 7, 7, 8, 9,
9, 14, 15, 15, 15, 17, 18, 20, 22, 26, 27, 28,
31, 33, 35, 35, 36, 36, 37, 38, 38, 40, 43, 45,
45, 48, 50, 53, 53, 53, 53, 55, 56, 57, 57, 58,
59, 59, 61, 64, 65, 66, 68, 69, 69, 71, 71, 73,
74, 76, 77, 79, 82, 83, 83, 85, 85, 85, 88, 89,
91, 93, 94, 95, 96, 97, 97, 98, 99, 99, 101, 102,
103, 105, 106, 107, 107, 109, 109, 109, 110, 110, 111, 113,
@surajitbasak109
surajitbasak109 / Email Server (Linux, Unix, Mac).md
Last active November 30, 2023 11:19 — forked from raelgc/Email Server (Linux, Unix, Mac).md
Setup Local Mail Server using Postfix for Laravel

Setup Local Mail Server using Postfix for Laravel

You can follow these steps to create your own local mail server using postfix.

Before that we need to learn what is Postfix? Postfix is a mail transfer agent (MTA) that routes and delivers electronic mail. And Mail transfer agent is a software that transfers electronic mail from one computer to another computer using Simple Mail Transfer Protocol(SMTP).

Here we are going to use local mail for that and we will use sendmail driver for our laravel project.

1 - Point localhost.com to your machine

@surajitbasak109
surajitbasak109 / GST Format Validation.md
Last active March 26, 2021 08:16
GST Format Validation

GSTIN Format

GSTIN Format

Format Explaination:

The GST number is a 15-digit number, which is unique for each taxpayer.

  • The first two digits represent the state code. Each state in India is assigned a unique state code.
  • The next ten digits of the GST number contain the PAN of the taxpayer.
@surajitbasak109
surajitbasak109 / .zshrc
Created December 31, 2020 18:00
My Awesome Oh My ZSH Config
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
@surajitbasak109
surajitbasak109 / font-awesome-download-icons-list.js
Last active November 21, 2020 16:39
Download all font awesome icons as JSON format
/**
* Follow This link first:
* https://fontawesome.com/cheatsheet
* Then enter following code in console panel
* will show a download dialog to download as json format
* :) :) :)
*/
(function () {
let icons = document.querySelectorAll('.icon');
let data = Array.from(icons).map(icon => {
{
"editor.fontSize": 14,
"terminal.integrated.fontFamily": "'Fira Code', 'Hack Nerd Font'",
"editor.suggestSelection": "first",
"workbench.editor.highlightModifiedTabs": true,
"files.autoSave": "afterDelay",
// "explorer.sortOrder": "type",
"explorer.sortOrder": "filesFirst",
// "files.autoSave": "onFocusChange",
"files.trimFinalNewlines": true,
<?php
/**
* src/classes/db.php
*
* @package default
*/
/**