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
This file contains 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
<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;} |
This file contains 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
import "../styles/globals.css"; | |
import React, { | |
ComponentType, | |
ReactNode, | |
useMemo, | |
useState, | |
useEffect, | |
} from "react"; | |
import type { AppProps } from "next/app"; | |
import GlobalStyles from "@components/GlobalStyles"; |
This file contains 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
res.cookie("accessToken", newAccessToken, { | |
maxAge: 8.64e7, // 24 hours | |
httpOnly: true, | |
secure: isProduction, | |
sameSite: isProduction ? "none" : "lax", | |
}); |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
This file contains 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
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; |
This file contains 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
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"; |
OlderNewer