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 / .bashrc
Last active January 14, 2025 07:43
minimal but clean and beautiful bashrcs | alternative to zsh
#aliases
alias x="exit"
alias c="clear"
#alias firefox='/opt/firefox/firefox'
alias pnd="pnpm dev"
alias nd="npm run dev"
alias ns="npm start"
alias nb="npm run build"
@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 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 / 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 / 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 / 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 / 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,