Skip to content

Instantly share code, notes, and snippets.

Deploying NestJS / Node.js Apps on a VPS — The Industry-Level Guide

Two real deployment paths are covered here, side by side:

  • Path A — Docker (recommended for production, what most teams actually run)
  • Path B — Bare-metal clone + PM2 (fine for solo VPS, small projects, or when you can't run Docker)

Pick one. Don't mix them on the same server unless you know why.


name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

@likudo
likudo / ocean-toolkit-urp-port-guide.md
Last active August 15, 2026 10:24
Upgrading Ocean Toolkit for Unity URP
zzz

🌊 Ocean Toolkit URP Port (Diff Guide)

📌 Introduction

Ocean Toolkit, which was distributed for free during the 3rd week of May 2026, is an ocean rendering asset with excellent visual quality.
However, because the asset was originally released quite a long time ago, it only supports the Built-in Render Pipeline.

@aaqsr
aaqsr / Ebooks.md
Last active August 15, 2026 10:19
Some helpful links on where to find ebooks, articles, pdfs, and academic papers and how to cite them. (Might not be updated)

Karpathy Guidelines 12 Rules

Behavioral guidelines to reduce common LLM coding mistakes, derived from Andrej Karpathy's observations on LLM coding pitfalls.

These rules apply to every task in this project unless explicitly overridden. Tradeoff: These guidelines bias toward caution over speed. For trivial tasks, use judgment.

1. Think Before Coding

Don't assume. Don't hide confusion. Surface tradeoffs.

@ChewingGlass
ChewingGlass / SKILL.md
Created August 14, 2026 19:45
review-with-me — a Claude Code skill for reviewing a PR together: runs /code-review held back, quizzes you on the diff, then reconciles and posts the surviving findings as inline comments
name review-with-me
description Review a PR together — runs /code-review in the background with findings held back, quizzes you on the mechanism, callsites, and edge cases while you read the diff yourself, then reveals the findings, reconciles them against your answers, and posts the ones that survive as inline PR comments you approve one at a time. Use for "review this PR with me", "quiz me on PR N", "/review-with-me 371".

Review with me

A PR review is finished when the human understands the change, not when a tool prints findings. This skill runs the automated review and the human's own read in parallel, tests the human's understanding before showing any findings, and only then writes comments.

@teklynk
teklynk / gist:a1b356a58f26049abeff2af067c6010d
Created June 29, 2026 19:49
Proton Drive CLI Sync Script with Exclude List and Sync State
#!/bin/bash
# Proton Drive Incremental Sync
# Syncs ~/ProtonSync → /my-files/Sync
set -uo pipefail
DRIVE_BIN="/usr/local/bin/proton-drive"
LOCAL_DIR="$HOME/ProtonSync"
DRIVE_BASE="/my-files/Sync"

A metatable in Lua defines various extraneous behaviors for a table when indexed, modified, interacted with, etc. They are Lua's core metaprogramming feature; most well known for being useful to emulate classes much like an OOP language.

Any table (and userdata) may be assigned a metatable. You can define a metatable for a table as such:

-- Our sample table
local tab = {}
-- Our metatable
local metatable = {
 -- This table is then what holds the metamethods or metafields
@RealDotNetDave
RealDotNetDave / .editorConfig
Last active August 15, 2026 10:14
.editorConfig by David (dotNetDave) McCarter - dotNetTips.com
####################################################################################################
# dotNetDave's (David McCarter) Editor Config - dotNetTips.com
# Updates to this file are posted quarterly at: https://bit.ly/EditorConfig5
# Updated August 1, 2026
# Code performance book is available at: https://bit.ly/CodePerf5
# Coding standards book is available at: https://bit.ly/CodingStandards20th
####################################################################################################
root = true
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PDF Dark Mode Converter</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
body {
background-color: #0f1115;