Skip to content

Instantly share code, notes, and snippets.

Prompt: Generate Project Overview

AI Role & Goal

You are an AI assistant. Your goal is to help me (the user) create a comprehensive Project Overview document. This overview will follow the structure defined below and serve as a foundational document for the project. It should provide essential high-level context for developers, stakeholders, and AI tools that may assist with the project.

The document needs to be technically precise, especially regarding the technology stack (including versions), architecture, standards, quality priorities, and setup steps, as this provides essential context for development work.

Process Overview

@peerapach
peerapach / docker-compose.yaml
Created May 21, 2024 12:37
docker compose with nfs mount
version: "3.2"
services:
db:
image: mariadb
user: root
environment:
MARIADB_ROOT_PASSWORD: mypass
ports:
- 3306:3306
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
|||รางวัลที่ 1|2 ตัวบน|3 ตัวบน|2 ตัวล่าง|3 ตัวหน้า|3 ตัวล่าง
2|มกราคม|2568|730209|09|209|51|065 446|297 376
16|ธันวาคม|2567|097863|63|863|21|742 290|881 339
1|ธันวาคม|2567|669843|43|843|61|559 626|098 654
16|พฤศจิกายน|2567|187221|21|221|38|923 036|980 547
1|พฤศจิกายน|2567|536044|44|044|32|225 174|231 063
16|ตุลาคม|2567|482962|62|962|00|561 648|919 493
1|ตุลาคม|2567|718665|65|665|59|053 812|566 079
16|กันยายน|2567|608662|62|662|37|904 230|008 408
1|กันยายน|2567|199606|06|606|94|220 173|094 388
@peerapach
peerapach / nginx-forward-proxy-debian11
Last active October 15, 2022 13:14
build nginx to support the CONNECT method request (forward proxy)
apt-get update
apt-get install -y wget curl libpcre3 libpcre3-dev libssl-dev build-essential dh-make libpcre2-dev zlib1g-dev lsb-release quilt git
cd /tmp
git clone https://github.com/chobits/ngx_http_proxy_connect_module.git
wget http://nginx.org/packages/debian/pool/nginx/n/nginx/nginx_1.22.0.orig.tar.gz
tar xvzf nginx_1.22.0.orig.tar.gz
@peerapach
peerapach / redsock2-centos
Created October 15, 2022 04:58
redsock2 centos7
yum install libevent-devel git gcc git make openssl-devel
cd /tmp
git clone https://github.com/semigodking/redsocks.git
cd redsocks
make
@peerapach
peerapach / default.conf
Created January 8, 2021 07:25
simple nginx conf
server {
listen 8080;
server_name _;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
@peerapach
peerapach / index.html
Last active January 23, 2021 01:47
simple html
<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
def gitURL="git@github.com/Account.git"
def appName="acc-prod-bluegreen"
def svcName="acc-prod"
def project="cloud-prod"
def tag="blue"
def altTag="green"
def verbose="false"
try {
timeout(time: 500, unit: 'MINUTES') {
oc get hpa -l 'app=activemq-health' --no-headers=true 2>&1 | awk -v q="'" '{ if($0 != "No resources found.") { print "oc patch hpa "$1 " --patch " q"{\"spec\":{\"minReplicas\":1}}"q } }' |xargs -0 bash -c -
@peerapach
peerapach / awk-single-qute.txt
Created April 24, 2020 16:59
print single quote in awk
awk -v q="'" '{print "value is" q $1 q}' inputfile
or
awk '{print "value is \x27" $1 "\x27"}' inputfile