Skip to content

Instantly share code, notes, and snippets.

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Create Free AWS Account

Create free AWS Account at https://aws.amazon.com/

2. Create and Lauch an EC2 instance and SSH into machine

I would be creating a t2.medium ubuntu machine for this demo.

@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active May 21, 2024 05:57 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@PARC6502
PARC6502 / OpenSourceBaas.md
Last active May 21, 2024 05:55
List of open source, self hosted BaaS - Backend as a service

Backend as a Service

Supabase - ~52K stars

  • Designed explicitly as an open source firebase alternative
  • Typescript based
  • Docker support

Appwrite - ~32K stars

  • Written in JavaScript and PHP
  • Docker based
  • Realtime support across all services
@maxim
maxim / gh-dl-release
Last active May 21, 2024 05:55
Download assets from private Github releases
#!/usr/bin/env bash
#
# gh-dl-release! It works!
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
# PREREQUISITES
#
@jhorsman
jhorsman / Cisco_Anyconnect.ps1
Created January 6, 2015 10:11
PowerShell to automate VPN connection with Cisco AnyConnect Secure Mobility Client
#Source www.cze.cz
#This script is tested with "Cisco AnyConnect Secure Mobility Client version 3.1.00495"
# Usage: & '.\Cisco_Anyconnect.ps1' [-Server <server name or ip>] [-Group <group>] [-User <user>] [-Password <password>]
#Please change following variables
#IP address or host name of cisco vpn, Username, Group and Password as parameters
param (
[string]$Server = $( Read-Host "Input server, please" ),
@hyoban
hyoban / .gitconfig
Last active May 21, 2024 05:53
Hyoban's dotfiles
[user]
name = Stephen Zhou
email = hi@hyoban.cc
signingkey = /Users/hyoban/.ssh/id_ed25519.pub
[init]
defaultBranch = main
[core]
excludesfile = ~/.gitignore_global
quotepath = false
[gpg]
@WalkingCat
WalkingCat / UnpEax.cs
Last active May 21, 2024 05:48
UnpEax, for extracting (but not decrypting) EAppX/EAppXBundle/EMsiX/EMsiXBundle files
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.IO.MemoryMappedFiles;
using System.Xml;
namespace UnpEax
{
class Program
@monperrus
monperrus / MethodCallCollector.java
Created November 10, 2011 11:22
Static analysis to extract method calls
/**
* This program makes a static analysis in
* order to extract method calls of a directory containing Java bytecode .
*
* It uses the Soot library.
*
* Usage:
* 1. Change the classpath and the directoryToAnalyze variable
* 2. run java -cp bin:soot.jar mm.soot.MethodCallCollector
* 3. look at /tmp/data.dat
@glenkusuma
glenkusuma / install-zsh-windows-git-bash.md
Last active May 21, 2024 05:45 — forked from fworks/install-zsh-windows-git-bash.md
Zsh / Oh-my-zsh on Windows Git Bash
@supachailllpay
supachailllpay / UnityObjectLoader
Last active May 21, 2024 05:42
Load .obj and .mtl in Unity at runtime
Load .obj and .mtl in Unity at runtime