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 / readme.md
Created June 29, 2024 15:00
Linux Mint Cinnamon Bluetooth keyboard connection issue fixed

First, make sure the local Bluetooth controller (e.g. a Bluetooth dongle the built in Bluetooth radio) is recognized:

lsusb

lsusb

bluetoothctl

bluetoothctl
@kazi331
kazi331 / .Xmodmap
Last active April 5, 2024 18:11
Key remap on linux. How to remap keyboard keys on linux
keycode 117 = End
@kazi331
kazi331 / Steps.tsx
Created March 10, 2024 07:25
Very simple react step component with typescript
import { Check } from "lucide-react";
export default function Steps({ steps, currentStep = 1 }: { steps: string[], currentStep?: number }) {
return (
<div className="flex gap-x-0 -mx-4 lg:-ms-0 overflow-auto py-4">
{steps.map((step, index) => (
<div key={index} className="flex flex-col items-center px-4 gap-2 relative step-circle-container ">
<div className={`${currentStep > index + 1 ? 'before:bg-gray-700 after:bg-gray-700 border-gray-700' : 'before:bg-gray-300 after:bg-gray-300 border-gray-300'} h-5 w-5 bg-white border rounded-full step-circle flex items-center justify-center `}>
<div className={`${currentStep > index + 1 ? 'scale-100 w-full h-full' : currentStep == index + 1 ? ' scale-100 h-1.5 w-1.5' : 'scale-0'} flex items-center justify-center rounded-full bg-gray-700 `}>
@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": [
{
@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 / 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 / .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 / 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