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
"use client";
import { useEffect, useState } from "react";
import { RadioGroup } from "@headlessui/react";
import { usePathname, useRouter, useSearchParams } from "next/navigation";
const plans = [
{
name: "Start from scratch",
description: "Build your own custom sequence",
@MuttakinHasib
MuttakinHasib / annotation.ts
Created October 15, 2023 19:48
annotation problem
const Annotation = [
{
type: "RenderContextVerticalLineAnnotation",
options: {
id: "06d771ac-2d59-4d39-aa86-580505169d28",
annotationLayer: "AboveChart",
isEditable: true,
isHidden: false,
isSelected: false,
opacity: 1,
@MuttakinHasib
MuttakinHasib / pro.terminal
Last active August 10, 2023 05:33
Terminal Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlueColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS
AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGmCwwXHR4lVSRudWxs1Q0ODxAR
EhMUFRZcTlNDb21wb25lbnRzVU5TUkdCXE5TQ29sb3JTcGFjZV8QEk5TQ3VzdG9tQ29s
b3JTcGFjZVYkY2xhc3NPEBQwIDAuMDA3MzI4NzM5Njc3IDEgMU8QETAgMCAwLjk5ODE5
@MuttakinHasib
MuttakinHasib / .zshrc
Last active August 2, 2023 14:08
terminal config
# Fig pre block. Keep at the top of this file.
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh"
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
setInterval(() => removeFbMessage(), 3000);
function sleep() {
return new Promise((resolve) => setTimeout(resolve, 1000));
}
const removeFbMessage = async () => {
document.querySelector('[aria-label="More"]').click();
await sleep();
document.querySelector('[aria-label="Remove message"]').click();
await sleep();
document.querySelector('[aria-label="Remove"]').click();
@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";
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 / 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

Update AWS Ubuntu Linux

sudo apt-get update -y

Upgrade AWS Ubuntu Linux

sudo apt-get upgrade
@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