next.js, nginx, reverse-proxy, ssl
$ sudo apt-get update
$ sudo apt-get install nginx letsencrypt| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:provider/provider.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| const appTitle = 'FutureProvider Demo'; |
| # My Django Project | |
| # Version: 1.0 | |
| # FROM - Image to start building on. | |
| FROM python:3 | |
| # PROJECT SETUP | |
| # ---------------- |
| import { | |
| Button, | |
| FormControl, | |
| FormErrorMessage, | |
| FormLabel, | |
| Link, | |
| SimpleGrid, | |
| Stack, | |
| } from '@chakra-ui/react'; |
| # Serve nextJS app from a port through NGINX reverse proxy (HTTP) | |
| # Path: /etc/nginx/sites-available/default | |
| # Default server configuration for HTTP | |
| server { | |
| server_name www.DOMAINNAME.com DOMAINNAME.com; | |
| # Serve any static assets with NGINX | |
| location /_next/static { | |
| alias /home/ubuntu/PROJECT_FOLDER/.next/static; |
| /* full implimentationof Linked List : https://github.com/outlinepix/LinkedList */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <assert.h> | |
| typedef struct Node | |
| { | |
| int data; | |
| struct Node *next; |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| struct node{ | |
| int data; | |
| struct node *next; | |
| }; | |
| struct node* start = NULL; |
_ (underscore) to move the cursor at the beginning of line (doesn't switch to insert mode)
0 (zero) moves the cursor to the zeroth position of the line (doesn't switch to insert mode)$ (dollar) to move the cursor at the end of line (doesn't switch to insert mode)d$ will delete from wherever your cursor is till the end of the linef<character> to move cursor to the first occurrence of <character>
f( to move cursor to first occurence of (t<character> to move cursor to upto but not on the first occurrence of <character>t( to move cursor to first occurence of (