Skip to content

Instantly share code, notes, and snippets.

View Dinesh-3's full-sized avatar
🎯
Focusing

Dinesh I Dinesh-3

🎯
Focusing
View GitHub Profile
@Dinesh-3
Dinesh-3 / heap.py
Created September 26, 2020 03:37 — forked from mvoitko/heap.py
Min heap Python implementation
from typing import List, Optional, Set, Tuple
class Heap:
def __init__(self, arr: Optional[List[int]] = None):
self._to_delete: Set[int] = set()
if arr:
self.__heapify(arr)
else:
self.__arr: List[int] = []
@Dinesh-3
Dinesh-3 / 01 - Setup Nextjs site on Ubuntu Server - Terminal commands
Created May 15, 2024 10:44 — forked from oelbaga/01 - Setup Nextjs site on Ubuntu Server - Terminal commands
Setup NextJS app on Digital Ocean Ubuntu server Full Terminal Commands Step by Step
#Setup NextJS on Ubuntu server (Digital Ocean, EC2,...) Terminal Commands
#based on my YouTube video
#Recommended: An ubuntu server with at least 2 GB memory to handle npm run build
#login to server
ssh root@ip_address
#Upgrade Server - may take a few minutes
sudo apt update
sudo apt upgrade