Skip to content

Instantly share code, notes, and snippets.

View shahali007's full-sized avatar

Shah Ali bogdadi shahali007

View GitHub Profile
@shahali007
shahali007 / install-homebrew-on-linux.md
Last active August 15, 2024 06:10
Install Homebrew Package Manager on Linux

1. Update software repositories

  sudo apt update

2. Install prerequisite packages (Ignore, if already installed)

  sudo apt install build-essential procps curl file git -ymd

3. Download and execute the brew installer

@shahali007
shahali007 / gist:e998e478620452c6e0cc882a7b246b0c
Created January 12, 2024 04:55
To update the local list of remote git branches
git remote update origin --prune
@shahali007
shahali007 / generateLaravelPDF.txt
Created October 9, 2023 07:35
Generate PDF using Laravel
# Install dependency 'https://github.com/barryvdh/laravel-dompdf'
composer require barryvdh/laravel-dompdf
# Add the file in providers 'config/app.php'
Barryvdh\DomPDF\ServiceProvider::class,
# In laravel controller use the code
use PDF;
public function generatePDF(){
@shahali007
shahali007 / .prettierignore
Last active August 7, 2023 05:21
format with prettier
# files here will be ignored by prettier
node_modules
package-lock.json
yarn.lock
build

About React

Note: This repository is specific to ReactJS.

Table of Contents

No. Questions
Core React
@shahali007
shahali007 / 1.ubuntu-22-setup-tools-after.md
Last active May 12, 2022 08:44
pc configuration after linux/ubuntu installation

Ubuntu 22

Update & upgrade

sudo apt update
sudo apt upgrade

Install curl vim git

sudo apt install curl vim git

@shahali007
shahali007 / populate-district-upozila.html
Last active April 27, 2022 08:57
Populate division district upozilla js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<title>Document</title>
</head>
<body>
@shahali007
shahali007 / generate ssh-rsa
Created April 1, 2022 04:40
generate ssh-rsa
ssh-keygen -t ed25519 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
cat ~/.ssh/id_ed25519.pub
// for more information: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
@shahali007
shahali007 / gist:9ddd378627dbb6dfce60c526a1aec28e
Last active March 14, 2022 09:22
Set the Username and Email in git globally or per project
*Set the username/email for a specific repository:*
git config user.name "Your project specific name"
git config user.email "[email protected]"
*Verify your settings:*
git config --get user.name
git config --get user.email
/*
|======================================================
| Find timezone from browser
|====================================================*/
Intl.DateTimeFormat().resolvedOptions().timeZone;
/*
|======================================================
| Convert number into suffix number
| Ex: 1K, 1.04M