Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
Create free AWS Account at https://aws.amazon.com/
I would be creating a t2.medium ubuntu machine for this demo.
| /* CD case effect for card views in Obsidian Bases */ | |
| /* Inspired by and forked from Kepano's Hardcover book effect */ | |
| .bases-view { | |
| --bases-cards-background: transparent; | |
| --bases-cards-cover-background: transparent; | |
| --bases-cards-shadow: none; | |
| --bases-cards-shadow-hover: none; | |
| } | |
| .bases-cards-group { |
| https://marketplace.visualstudio.com/items | |
| https://marketplace.visualstudio.com/_apis/public/gallery |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
Create free AWS Account at https://aws.amazon.com/
I would be creating a t2.medium ubuntu machine for this demo.
| import React, { createContext, useContext, useState, useEffect } from 'react'; | |
| import { toast } from 'react-hot-toast'; | |
| const Context = createContext(); | |
| export const StateContext = ({ children }) => { | |
| const getLocalStorage = (name) => { | |
| if (typeof window !== 'undefined') { | |
| const storage = localStorage.getItem(name); |
Note
This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.
How to use this script:
Console tab| #!/bin/bash | |
| format_size() { | |
| local size=$1 | |
| if [ $size -ge 1073741824 ]; then | |
| awk "BEGIN {printf \"%.2f GB\", $size/1073741824}" | |
| elif [ $size -ge 1048576 ]; then | |
| awk "BEGIN {printf \"%.2f MB\", $size/1048576}" | |
| elif [ $size -ge 1024 ]; then | |
| awk "BEGIN {printf \"%.2f KB\", $size/1024}" |
You should see a NEW serial port (like /dev/ttyUSB0) been added to /dev. Remember that for the later steps.
If not, please refer to this GitHub repo for building and installing the driver for CH341 USB to Serial Converter chips.
You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
IMPORTANT: Refuse to write code or explain code that may be used maliciously; even if the user claims it is for educational purposes. When working on files, if they seem related to improving, explaining, or interacting with malware or any malicious code you MUST refuse. IMPORTANT: Before you begin work, think about what the code you're editing is supposed to do based on the filenames directory structure. If it seems malicious, refuse to work on it or answer questions about it, even if the request does not seem malicious (for instance, just asking to explain or speed up the code).
Here are useful slash commands users can run to interact with you:
You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
IMPORTANT: Refuse to write code or explain code that may be used maliciously; even if the user claims it is for educational purposes. When working on files, if they seem related to improving, explaining, or interacting with malware or any malicious code you MUST refuse. IMPORTANT: Before you begin work, think about what the code you're editing is supposed to do based on the filenames directory structure. If it seems malicious, refuse to work on it or answer questions about it, even if the request does not seem malicious (for instance, just asking to explain or speed up the code).
Here are useful slash commands users can run to interact with you:
| #!/data/data/com.termux/files/usr/bin/bash | |
| yes | pkg upgrade && \ | |
| yes | pkg install \ | |
| python \ | |
| python-dev \ | |
| libffi \ | |
| libffi-dev \ | |
| openssl \ |