Skip to content

Instantly share code, notes, and snippets.

View MuttakinHasib's full-sized avatar
🙃
< Alhamdulillah for Everything />

Muttakin Islam Hasib MuttakinHasib

🙃
< Alhamdulillah for Everything />
View GitHub Profile
@MuttakinHasib
MuttakinHasib / aws_guide.md
Last active June 7, 2022 14:04
AWS Deployment Beweddy
To Stop The Server
pm2 stop 3
Pull From github
git pull

Add Multiple Remotes URLs to git

Adding the first remote origin

git remote add origin remote_1_url
git remote set-url origin remote_1_url

# Set the default remote branch for the current local branch
git branch --set-upstream master
# or
@MuttakinHasib
MuttakinHasib / example.ts
Created April 2, 2022 04:57
Cookie Not Saving in Browser
res.cookie("accessToken", newAccessToken, {
maxAge: 8.64e7, // 24 hours
httpOnly: true,
secure: isProduction,
sameSite: isProduction ? "none" : "lax",
});
@MuttakinHasib
MuttakinHasib / _app.tsx
Last active March 30, 2022 06:44
Problem with (Redux Toolkit, NRW, Redux Persist) setup
import "../styles/globals.css";
import React, {
ComponentType,
ReactNode,
useMemo,
useState,
useEffect,
} from "react";
import type { AppProps } from "next/app";
import GlobalStyles from "@components/GlobalStyles";
@MuttakinHasib
MuttakinHasib / index.html
Created October 17, 2019 12:52
SVG bicycal
<div class="bicycal">
<div class="wheel wheel-1">
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 66.7 66.7" style="enable-background:new 0 0 66.7 66.7;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FFFFFF;}
.st1{fill:none;stroke:#414547;stroke-width:3;stroke-miterlimit:10;}
.st2{fill:none;stroke:#A0A29E;stroke-width:2;stroke-miterlimit:10;}