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 / 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;}
@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 / 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",
});

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 / 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
@MuttakinHasib
MuttakinHasib / AWS_GUIDE_README.md
Last active June 8, 2022 21:40
AWS Linux Guide

Update AWS Linux

sudo yum update

Perform a quick update on your instance:

sudo yum update -y

Update AWS Ubuntu Linux

sudo apt-get update -y

Upgrade AWS Ubuntu Linux

sudo apt-get upgrade
@MuttakinHasib
MuttakinHasib / node_nginx_ssl.md
Created June 11, 2022 10:40 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

server {
root /var/www/html; root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name beweddy.com www.beweddy.com;
@MuttakinHasib
MuttakinHasib / _app.tsx
Last active October 12, 2022 13:14
RT+NRW+RP
import React, {
ComponentType,
ReactNode,
useMemo,
useState,
useEffect,
} from "react";
import type { AppProps } from "next/app";
import { GoogleOAuthProvider } from "@react-oauth/google";
import GlobalStyles from "@components/GlobalStyles";