Skip to content

Instantly share code, notes, and snippets.

View MuktadirHassan's full-sized avatar
🎯
Focusing

Muktadir Hassan MuktadirHassan

🎯
Focusing
View GitHub Profile
@MuktadirHassan
MuktadirHassan / golang-installer.sh
Created December 8, 2024 16:33
Install go directly from go.dev on Linux and correct add to path
#!/bin/bash
# Remove any existing Go installation
sudo rm -rf /usr/local/go
# Download Go
wget https://go.dev/dl/go1.23.4.linux-amd64.tar.gz
# Extract to /usr/local
sudo tar -C /usr/local -xzf go1.23.4.linux-amd64.tar.gz
@MuktadirHassan
MuktadirHassan / docker-compose.yml
Last active March 13, 2024 10:55
simple redis compose file for local development
version: "3.8"
services:
redis:
restart: always
container_name: redis-local
image: redis:7.2.4-alpine
ports:
- 6379:6379
volumes:
@MuktadirHassan
MuktadirHassan / node_nginx_ssl.md
Created September 18, 2021 19:09 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

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. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user