Skip to content

Instantly share code, notes, and snippets.

View potikanond's full-sized avatar

D. Potikanond potikanond

  • Computer Engineering, CMU
  • Thailand
View GitHub Profile
@potikanond
potikanond / command.md
Last active July 7, 2026 09:42
26x494 - Basic Linux Server Configuration

Basic Linux Server Configuration

Install packages

sudo apt install pkg1 [ pkg2 pkg3 ...]

# for example
sudo apt install wget
sudo apt install net-tools nginx lynx
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Success Dialog</title>
<!-- 0. copy boostrap link from cdn -->
</head>
<body class="p-2">
@potikanond
potikanond / README.md
Last active February 10, 2026 03:46
Terraform Tutorial - Docker Provider

Terraform Tutorial - Docker Provider

To use the Terraform Docker provider, you define the provider configuration and then use its resources (like docker_image and docker_container) to manage Docker components. The process involves writing the configuration file, initializing the project, and applying the changes.

Prerequisites

Before starting, ensure you have the following installed:

  • Terraform CLI
  • Docker CLI and Daemon (e.g., Docker Desktop, configured with a default profile)
@potikanond
potikanond / README.md
Last active October 18, 2025 14:33
Lecture 20 - Full-Stack Web Application (Part 2)

Lecture 20 - Full-Stack Web Application (Part 2)

Content

  • What is Database?
  • SQL vs. NoSQL
  • MongoDB Atlas
  • Prisma ORM
  • File Uploading
@potikanond
potikanond / README.md
Last active October 18, 2025 08:17
Lecture 19 - Full-Stack Web Application (Part 1)

Lecture 19 - Full-Stack Web Application (Part 1)

Content

  • Starter Repositories
  • Cross-Origin Resource Sharing (CORS)
  • Reverse Proxy
  • Password encryption using Bcrypt

@potikanond
potikanond / package.json
Created October 2, 2025 03:12
Quiz #3 - package.json
{
"name": "lecture16",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "npx nodemon --exec tsx src/index.ts",
"build": "npx tsc",
"serve": "node dist/index.js"
},
@potikanond
potikanond / README.md
Last active September 26, 2025 02:11
26x494 : K6 Load Testing Tutorial

Full Stack Dev: K6 Load Testing Tutorial

Setup K6

Install K6 for Windows

  • Winget: winget install k6
  • Download from official website k6.io

@potikanond
potikanond / README.md
Last active September 22, 2025 03:19
Lecture 17 - RESTful API with Express (Part 2)
@potikanond
potikanond / .gitignore
Created September 19, 2025 04:36
Node .gitignore for Node.js App
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
@potikanond
potikanond / tsconfig.json
Last active September 21, 2025 07:05
TSConfig for Node.js Application
{
"compilerOptions": {
/* Base Options: */
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,