Skip to content

Instantly share code, notes, and snippets.

View sumonta121's full-sized avatar
🎯
In order to be irreplaceable, one must always be different

Sumonto sumonta121

🎯
In order to be irreplaceable, one must always be different
View GitHub Profile
@sumonta121
sumonta121 / Codeigniter htaccess
Created May 2, 2025 04:57
Codeigniter htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
<FilesMatch ".(?:html|php)$">
SetHandler application/x-httpd-alt-php74
</FilesMatch>
@sumonta121
sumonta121 / largedbimport.bat
Created April 10, 2025 11:01
Large MySql Database import script
@echo off
title MySQL Large Database Import Tool - by sumonta121@gmail.com
color 0A
setlocal enabledelayedexpansion
echo ====================================================
echo MySQL Import Tool for Windows (Laragon)
echo ====================================================
echo Author: sumonta121@gmail.com
echo ----------------------------------------------------
@sumonta121
sumonta121 / Email otp html template with raw css
Created December 23, 2024 11:05
Email otp html template with raw css
<!DOCTYPE html>
<html lang="en" style="margin: 0; padding: 0;">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WIthdraw OTP - LinuxWiser</title>
</head>
<body style="font-family: 'Arial', sans-serif; line-height: 1.6; margin: 0; padding: 0; background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);">
<div style="max-width: 600px; margin: 40px auto; background-color: #ffffff; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);">
<!-- Header Section -->
@sumonta121
sumonta121 / html tree design with minimal css
Created December 22, 2024 20:02
html tree design with minimal css
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tree Node with Modal</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f9f9f9;
@sumonta121
sumonta121 / node js server set up
Created October 6, 2024 11:11
node js server set up
Node JS Server Setup
NodeJs Server Instalation proccess.
1. sudo apt update && sudo apt upgrade –y
18.x is nodejs version. Install what version required.
2. curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash –
3. sudo apt install nodejs –y
Mongo DB Instalation proccess.
Install Required Tools: First, ensure that gnupg and curl are installed:
sudo apt-get install gnupg curl
Import MongoDB's Public Key: You'll need to import the MongoDB GPG key for version 8.0:
@sumonta121
sumonta121 / React time format
Created September 26, 2024 11:56
React time format
const formatTimestamp = (timestamp) => {
let date;
if (timestamp !== undefined && timestamp !== null) {
date = new Date(timestamp);
} else {
date = new Date(); // Set to current time if timestamp is undefined or null
}
const today = new Date();
@sumonta121
sumonta121 / larave simple image upload
Created July 12, 2024 08:02
larave simple image upload
$imageName = time().'.'.$request->image->extension();
$request->image->move(public_path('images'), $imageName);
DB::table('documents')->where('client_id',Auth::id())->insert(['document_name'=>$imageName,'name'=>$request->title]);
@sumonta121
sumonta121 / fiat currency current usd rate free api
Last active May 14, 2024 14:54
fiat currency current usd rate free api
https://api.exchangerate-api.com/v4/latest/USD
https://open.er-api.com/v6/latest/USD
import axios from 'axios';
export async function fetchExchangeRate() {
try {
const response = await axios.get('https://api.exchangerate-api.com/v4/latest/USD');
const exchangeRate = response.data.rates.BDT;
return exchangeRate;
@sumonta121
sumonta121 / query checker for php - laravel
Created April 27, 2024 21:06
query checker for php - laravel
// Enable query logging
DB::connection()->enableQueryLog();
// Your existing code goes here...
// Execute database queries
// ...
// Retrieve logged queries
@sumonta121
sumonta121 / neon color transition border
Created April 6, 2024 15:50
neon color transition border
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Neon Border Card</title>
<style>
.card {
position: relative;
width: 300px;