$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 68818C72E52529D4
# Get Key$ sudo echo "deb http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
# Create needed files$ sudo apt-get update
# Reload packages$ sudo apt-get install -y mongodb-org
# install MongoDB$ sudo mkdir -p /data/db
# Create the db files$ sudo chown -R `id -un` /data/db
# Give appropriate permissions to directories$ sudo systemctl start mongod
# Start mongod process$ sudo systemctl enable mongod
# Enable the process$ sudo netstat -plntu
# Have mongod start on boot
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
const data1 = [ | |
{ | |
id: 1, | |
name: 'Mug', | |
}, | |
{ | |
id: 2, | |
name: 'Table' | |
}, | |
{ |
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
from typing import Annotated | |
from neo4j.exceptions import Neo4jError | |
from exceptions.custom_exceptions import DatabaseError | |
from fastapi import Depends | |
from db import driver | |
from user.work import get_user | |
from user.model import User, UserInDB | |
from .validate_token import validate_token | |
from util.models.types import JWTPayload |
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 { EmailOutlined } from '@mui/icons-material' | |
import { Box, Button, Typography } from '@mui/material' | |
import axios from 'axios' | |
import { Field, FieldProps, Form, Formik } from 'formik' | |
import React from 'react' | |
import * as Yup from 'yup' | |
import useHttpReducer from '../../hooks/useHttpReducer' | |
import useMediaQueries from '../../hooks/useMediaQueries' | |
import RDTextField from '../RDTextField/RDTextField' |
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
{ | |
"parser": "@typescript-eslint/parser", | |
"parserOptions": { | |
"ecmaVersion": "latest", | |
"sourceType": "module", | |
"ecmaFeatures": { | |
"jsx": true | |
} | |
}, | |
"plugins": ["@typescript-eslint"], |
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 { Handler } from "@netlify/functions" | |
import client from "@sendgrid/client" | |
import { ClientRequest } from "@sendgrid/client/src/request" | |
const blogListId = `0350949f-5c47-4bb3-b8fb-83e848f9d8ae` | |
const handler: Handler = async (event, context) => { | |
if (event.httpMethod !== `POST`) { | |
return { | |
statusCode: 405, |
- Include SSH key when created ("Add Key", if using Linode) # I have a couple on my desktop that I use
$ ssh root@[ipaddress]
# Sign in to remote server$ apt-get update && apt-get upgrade
# Get server up-to-date$ yes
# when prompted$ hostnamectl set-hostname [new hostname]
# Set hostname for server$ nano /etc/hosts
---> insert new line[ipaddress] [hostname]
# In hosts file add IP address for remote server (host name from step 4), format the same as the127.0.0.1
etc. line- Save (Ctl+X), Accept (y) and exit (Enter)
$ adduser [new username]
# Make the user that you will sign in with normalling- Enter new password and personal information
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.