This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 ---------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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 --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Enable query logging | |
DB::connection()->enableQueryLog(); | |
// Your existing code goes here... | |
// Execute database queries | |
// ... | |
// Retrieve logged queries |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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; |
NewerOlder