Skip to content

Instantly share code, notes, and snippets.

View pingkunga's full-sized avatar
🎯
Focusing

Chatri Ngambenchawong pingkunga

🎯
Focusing
View GitHub Profile
@pingkunga
pingkunga / POST_WS_HTTPCONNECTOR_TEST.bpmn
Created July 7, 2018 15:58
POST_WS_HTTPCONNECTOR_TEST.bpmn
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.11.3">
<bpmn:process id="Post_WS_HTTPCONNECTOR_TEST" name="Post_WS_HTTPCONNECTOR_TEST" isExecutable="true" camunda:versionTag="1">
<bpmn:startEvent id="StartEvent_1" name="">
<bpmn:extensionElements>
<camunda:formData />
</bpmn:extensionElements>
<bpmn:outgoing>SequenceFlow_1fpz9fj</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="SequenceFlow_1fpz9fj" sourceRef="StartEvent_1" targetRef="ServiceTask_01za9xm" />
@pingkunga
pingkunga / LINE_NOTIFY.ps1
Created January 25, 2020 08:46
LINE_NOTIFY.ps1
#======================================================
# AUTHOR : CHATRI NGAMBENCHAWONG
#======================================================
function SendLine($LINE_TOKEN, $MESSAGE)
{
#line notify
$uri = "https://notify-api.line.me/api/notify"
$token = "Bearer $LINE_TOKEN"
@pingkunga
pingkunga / UPDATE_CODE_QUALITY_NOTIFY.ps1
Created January 25, 2020 08:50
UPDATE_CODE_QUALITY_NOTIFY.ps1
#======================================================
# AUTHOR : CHATRI NGAMBENCHAWONG
#======================================================
. "D:\06Utility\01BuildScript\WMSL-APP\LINE_NOTIFY.ps1"
Set-ExecutionPolicy Unrestricted
#PARAMMERTER PASS FROM JENKINS PIPELINE
$NETNOTIFYAPI = $args[0]
openapi: 3.0.1
info:
title: User
version: 1.0.0
description: This is a sample
servers:
- url: http://localhost/user-service/api/v1
paths:
/users:
post:
Ref: https://www.cloudskillsboost.google/focuses/3565?parent=catalog
// Filename for data results
var QUERY_NAME = "Most common words in all of Shakespeare's works";
// Replace this value with your Google Cloud API project ID
var PROJECT_ID = 'qwiklabs-gcp-02-8693f7657c18';
if (!PROJECT_ID) throw Error('Project ID is required in setup');
/**
* Runs a BigQuery query, adds data and a chart in a Sheet,
@pingkunga
pingkunga / AzureTranslatorPowershellSample.ps1
Last active January 15, 2023 00:32
AzureTranslatorPowershellSample.ps1
#Add your key here
$key="<<YOUR API KEY>>"
#You need to add your resource location if you use a Cognitive Services resource
$location="eastus"
#The endpoint is global for the Translator service, DO NOT change it
$endpoint="https://api.cognitive.microsofttranslator.com/"
#Text to be translated
FROM jenkins/jenkins:2.375.2-lts
USER root
RUN apt-get update -y && apt-get upgrade -y && apt-get install wget tzdata apt-transport-https ca-certificates software-properties-common curl gnupg2 vim zip libasound2 libasound2-data -y
# install docker
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
RUN apt-get update -y && apt-get install docker-ce-cli -y
FROM jenkins/jenkins:2.375.2-lts
USER root
RUN apt-get update -y && apt-get upgrade -y && apt-get install wget tzdata apt-transport-https ca-certificates software-properties-common curl gnupg2 vim zip libasound2 libasound2-data -y
# install docker
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
RUN apt-get update -y && apt-get install docker-ce-cli -y
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS runtime
COPY bin/Release/net6.0/publish/ /app
RUN apt-get update && apt-get install -y libxml2-dev
ENV DB2_CLI_DRIVER_INSTALL_PATH="/app/clidriver"
ENV LD_LIBRARY_PATH="/app/clidriver/lib:/app/clidriver/lib/libdb2.so"
ENV LIBPATH="/app/clidriver/lib"
ENV PATH=$PATH:"/app/clidriver/bin"
@pingkunga
pingkunga / Lab Monitoring
Last active June 25, 2023 08:55
Lab Monitoring
Basic Skill
* Linux Command
* Docker
Monitor จะมั 2 กลุ่ม
* Uptime-kuma
* Prometheus(Time Series DB) + Node Exporter (จัด Mwtric ตามต้องการ) >> Grafana (Visual)
Uptime-kuma (https://github.com/louislam/uptime-kuma)