Skip to content

Instantly share code, notes, and snippets.

View bangsite's full-sized avatar

Bang bangsite

View GitHub Profile
@bangsite
bangsite / nuxt3-pm2-build-deploy-on-arm.yaml
Created February 20, 2024 10:16 — forked from L422Y/nuxt3-pm2-build-deploy-on-arm.yaml
Github Actions Workflow to build and deploy Nuxt 3 SSR with PM2, as well as node-canvas, on ARM64, utilizing cache for `pnpm` and `apt` including the build for `node-canvas`
name: "Build and deploy Nuxt SSR with PM2"
on: [push]
jobs:
build:
name: "Build Nuxt Application"
runs-on: [self-hosted, ARM64] # you can also use buildjet.com
environment:
name: "Production"
steps:
- uses: actions/checkout@v3
@bangsite
bangsite / node_nginx_ssl.md
Created March 13, 2024 10:30 — 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

@bangsite
bangsite / 01nginx-tls-sni.md
Created March 14, 2024 10:30 — forked from kekru/01nginx-tls-sni.md
nginx TLS SNI routing, based on subdomain pattern

Nginx TLS SNI routing, based on subdomain pattern

Nginx can be configured to route to a backend, based on the server's domain name, which is included in the SSL/TLS handshake (Server Name Indication, SNI).
This works for http upstream servers, but also for other protocols, that can be secured with TLS.

prerequisites

  • at least nginx 1.15.9 to use variables in ssl_certificate and ssl_certificate_key.
  • check nginx -V for the following:
    ...
    TLS SNI support enabled
@bangsite
bangsite / git-commit-styleguide.md
Created July 5, 2024 10:11 — forked from rishavpandey43/git-commit-styleguide.md
This gist consist of the rules and best practice of good conventional git commit message

Git Commit Messages Style-Guides

  • Use the present tense ("Add feature" not "Added feature")
  • Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
  • Limit the first line to 72 characters or less
  • Reference issues and pull requests liberally after the first line
  • When only changing documentation, include [ci skip] in the commit title
  • Consider starting the commit message with an applicable emoji

Types

Quill 2.0.0 component for vue 3

Using - "quill": "^2.0.0-rc.2"

Adjust app.js depending on your use case - I am using it in a Laravel/Inertia project so I've got the Editor component registered in the CreateInertiaApp.

The other files I've got in a quill folder (quill_options.js is quill/options.js, etc.)

@bangsite
bangsite / install-poetry-windows.md
Created June 29, 2025 09:16 — forked from Isfhan/install-poetry-windows.md
step-by-step guide to installing Poetry on Windows:

Step-By-Step guide to installing Poetry on Windows:

  1. Open Windows Powershell: Navigate to your Start menu, type "Powershell", and select "Windows Powershell" from the search results.

  2. Run Installation Command: In the Powershell window, paste the following command and press Enter:

Note: If you've installed Python through the Microsoft Store, replace py with python in the command below.

(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -