Skip to content

Instantly share code, notes, and snippets.

View kazi331's full-sized avatar
🎯
Focusing

Kazi Shariful Islam kazi331

🎯
Focusing
View GitHub Profile
@kazi331
kazi331 / appointmenst.js
Created December 7, 2022 18:19
Cannot overwrite `Sector` model once compiled. - mongoose override model once compiled error fixed.
import mongoose from "mongoose";
const appointmentSchema = new mongoose.Schema({
agree: Boolean,
name: String,
sectors: [
{
key: String,
label: String,
value: String,
@kazi331
kazi331 / login.js
Created December 7, 2022 18:26
Quick access input field values in form
import axios from "axios";
import Head from "next/head";
import Link from "next/link";
import { useRouter } from "next/router";
import { useState } from "react";
import { Toaster } from 'react-hot-toast';
import Icon from "../utils/icons";
const Login = () => {
@kazi331
kazi331 / skeleton.jsx
Created February 20, 2023 05:03
tailwindcss skeleton
<section className='container max-w-7xl mx-auto p-4'>
<div className='animate-pulse grid grid-cols-1 px-6 sm:px-0 gap-3 mt-3 xl:mt-8 xl:gap-6 sm:grid-cols-4 xl:grid-cols-6 lg:grid-cols-6'>
<div className="w-full h-20 bg-gray-800 border border-gray-700 p-4 rounded-lg ">
<div className="flex gap-3 items-center">
<div className='w-5 h-2 p-2 rounded bg-gray-700'></div>
<div className="flex flex-col gap-3 w-full">
<div className='w-full h-5 p-2 rounded bg-gray-700'></div>
<div className='w-full h-5 p-2 rounded bg-gray-700'></div>
@kazi331
kazi331 / product_scrap.py
Created March 5, 2023 04:59
scrap products from website with python
import requests
import json
from bs4 import BeautifulSoup
# The URL of the website to scrape
url = "https://www.startech.com.bd/laptop-notebook"
# Send a GET request to the website and get the HTML content
response = requests.get(url)
html_content = response.content
@kazi331
kazi331 / .bashrc
Last active June 29, 2024 15:13
minimal .bashrc for bash terminal
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@kazi331
kazi331 / ftp-server.txt
Created June 27, 2023 17:59
Ftp server list in bangladesh
https://samftp.com
http://discoveryftp.net
http://movies.discoveryftp.net
http://172.27.27.83
http://172.27.27.84
http://ftpbd.net
http://103.58.73.9
http://media.ftpbd.net
http://server1.ftpbd.net
http://server4.ftpbd.net
@kazi331
kazi331 / .bashrc
Last active July 1, 2024 11:56
minimal but clean and beautiful bashrcs
#aliases
alias nd="npm run dev"
alias ns="npm start"
alias nb="npm run build"
alias ga="git add ."
alias gc="git commit -m"
alias c="clear"
alias x="exit"
alias su="sudo apt update && sudo apt upgrade"
@kazi331
kazi331 / animation.html
Created November 30, 2023 09:37
Colorful Glowing Liquid loading animation
<!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">
<title>Colorful Glowing Liquid</title>
<!-- Custom Styles -->
<style>
@kazi331
kazi331 / mongo-install.md
Created December 31, 2023 18:39
mongodb isntallation step by step procedure

installation of mongodb server and compass : https://www.mongodb.com/docs/mongodb-shell/install/

step 1: import the public key used by the package management system

wget -qO- https://www.mongodb.org/static/pgp/server-7.0.asc | sudo tee /etc/apt/trusted.gpg.d/server-7.0.asc

If you receive an error indicating that gnupg is not installed, perform the following steps:

@kazi331
kazi331 / vercel.json
Created January 27, 2024 08:59
Add this file into the root of express server to deploy on vercel
{
"version": 2,
"builds": [
{
"src": "app.js",
"use": "@vercel/node"
}
],
"routes": [
{