Skip to content

Instantly share code, notes, and snippets.

View kritsanapr's full-sized avatar
🤒
Out sick

Bank kritsanapr

🤒
Out sick
View GitHub Profile
@kritsanapr
kritsanapr / Firebase.md
Created November 27, 2023 04:39 — forked from victorbruce/Firebase.md
My journey with Firebase so far. Cheatsheet to serve as a quick reference when developing firebase applications

Firebase

Set up firebase and Deploy

  • Head over to firebase. Sign in and create a project.

  • Copy your project settings under Firebase SDK snippet into your local project (ie your project's api key, auth domain, databaseURL, etc)

  • Create a file (firebase.js or config.js Any name that suits you is fine)

@kritsanapr
kritsanapr / dotnet_cli_cheat_sheet.md
Created August 15, 2023 07:26
.NET CLI Cheat Sheet

.NET CLI Cheat Sheet

dotnet -h // ดูคู่มือการใช้งาน .NE
dotnet --info // ตรวจสอบ Information ของ .NET ที่ติดตั้ง
dotnet --version // ตรวจสอบเฉพาะ Version ของ .NET ที่ติดตั้ง
dotnet new -l // List of new projects
@kritsanapr
kritsanapr / mongodb_cheat_sheet.md
Created August 15, 2023 07:21 — forked from generalia/mongodb_cheat_sheet.md
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@kritsanapr
kritsanapr / .dockerignore
Created February 13, 2023 14:27 — forked from ksmithut/.dockerignore
Node Docker Compose nodemon
node_modules
@kritsanapr
kritsanapr / docker-compose.yml
Created December 20, 2022 16:29
Manage Docker with portainer
version: '3'
services:
portainer:
container_name: ${CONTAINER_NAME}
restart: unless-stopped
image: portainer/portainer
volumes:
- portainer_data:/data
- /var/run/docker.sock:/var/run/docker.sock
@kritsanapr
kritsanapr / Dockerfile
Last active November 25, 2022 14:49
Setup dev container using docker-compose.yml file for project NestJs, Prisma, Minio Storage for Mac M1 chip.
FROM --platform=linux/amd64 node:16.17.0-alpine As development
RUN apk add --no-cache python3 make g++
RUN apk add --no-cache git openssh bash \
&& yarn global add -g @nestjs/cli @compodoc/compodoc ts-node typescript jest rxjs nx
EXPOSE 3000 3333 9000 9001
@kritsanapr
kritsanapr / Dockerfile
Created September 15, 2022 09:59
Dockerfile : Nuxt (Nginx Web Server)
# Stage 1 - build
FROM node:lts-alpine as builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run generate
# Stage 2 - production
FROM nginx:stable-alpine as final
@kritsanapr
kritsanapr / Dockerfile
Created September 15, 2022 09:55
Dockerfile : Nuxt Start (Universal SSR)
# Stage 1 - build
FROM node:8.15-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Stage 2 - production
FROM node:8.15-alpine AS final