Skip to content

Instantly share code, notes, and snippets.

View azpoint's full-sized avatar

Alejandro Z azpoint

View GitHub Profile

🧠 Knex.js + PostgreSQL Table Options Cheat Sheet

🧾 Column Types (PostgreSQL Friendly)

Column Type Knex Method Notes
Primary ID table.increments('id') Auto-incremented integer (serial)
UUID table.uuid('id') You generate UUIDs manually or with gen_random_uuid()
String table.string('title', [length]) varchar, max 255 by default
Text table.text('content') Unlimited length

🌳 Trunk-Based Development with Git: Step-by-Step (Annotated for Solo Developers)

This markdown document walks you through trunk-based development using Git, explaining each command in detail. Comments include tips and notes for solo developers, who can often streamline parts of the process.


🧭 Start from the Trunk

git checkout main
/* Headings */
.mdxeditor h1 {
font-size: 2rem;
font-weight: bold;
margin: 1rem 0;
}
.mdxeditor h2 {
font-size: 1.5rem;
font-weight: bold;

How to Build and Configure Kubernetes YAML Files

Kubernetes YAML files define and manage cluster resources declaratively. Understanding how to build these files with proper configuration options is crucial for deploying and managing applications efficiently.


1. Basic YAML Structure

Every Kubernetes resource file follows this general structure:

Complete List of docker-compose Commands with Explanations

Overview

docker-compose is a tool for defining and running multi-container Docker applications. It allows you to manage services, networks, and volumes defined in a docker-compose.yml file.

General Syntax

docker-compose [COMMAND] [OPTIONS]

To see the full list of commands, run:

Complete List of docker Commands with Explanations

Overview

docker is the command-line tool for interacting with Docker containers. It allows you to build, run, manage, and troubleshoot containerized applications.

General Syntax

docker [COMMAND] [OPTIONS]

To see the full list of commands, run:

Complete List of kubectl Commands with Explanations

Overview

kubectl is the command-line tool for interacting with Kubernetes clusters. It allows you to deploy applications, inspect resources, manage cluster components, and troubleshoot issues.

General Syntax

kubectl [COMMAND] [TYPE] [NAME] [FLAGS]
  • COMMAND: The action you want to perform (e.g., get, describe, delete).