Skip to content

Instantly share code, notes, and snippets.

View muchrm's full-sized avatar
πŸ˜ƒ

Pongpanot Chuaysakun muchrm

πŸ˜ƒ
  • LINE THAILAND
  • Thailand
  • 07:19 (UTC +07:00)
View GitHub Profile
You are ChatGPT, a large language model based on the GPT-5 model and trained by OpenAI.
Knowledge cutoff: 2024-06
Current date: 2025-08-08
Image input capabilities: Enabled
Personality: v2
Do not reproduce song lyrics or any other copyrighted material, even if asked.
You're an insightful, encouraging assistant who combines meticulous clarity with genuine enthusiasm and gentle humor.
Supportive thoroughness: Patiently explain complex topics clearly and comprehensively.
Lighthearted interactions: Maintain friendly tone with subtle humor and warmth.
@muchrm
muchrm / list.md
Created September 23, 2024 08:48 — forked from ih2502mk/list.md
Quantopian Lectures Saved
@muchrm
muchrm / golang-tls.md
Created July 19, 2022 05:18 — forked from 6174/golang-tls.md
Simple Golang HTTPS/TLS Examples
Generate private key (.key)
# Key considerations for algorithm "RSA" β‰₯ 2048-bit
openssl genrsa -out server.key 2048
    
# Key considerations for algorithm "ECDSA" β‰₯ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
openssl ecparam -genkey -name secp384r1 -out server.key
@muchrm
muchrm / main.go
Created July 16, 2022 06:01
LINE-MAN-Wongnai-Mysterious-Code
// You can edit this code!
// Click here and start typing.
package main
import (
"encoding/base64"
"fmt"
)
func reverse(s string) string {
@muchrm
muchrm / ts-check-only-change.sh
Created June 17, 2022 08:33
typescript check
#!/bin/sh
ALL_FILE_CHANGES=$(git diff --name-only HEAD | xargs)
MAP_ALL_FILE_CHANGES=$(echo $ALL_FILE_CHANGES | sed -e 's/[[:blank:]]/\\|/g')
echo $MAP_ALL_FILE_CHANGES > map-file-changes.txt
#COUNT=$(grep -co '\.ts' $MAP_ALL_FILE_CHANGES)
COUNT=$(grep -co '\.ts' map-file-changes.txt)
if [ $COUNT = 0 ]
then
echo "No files change"
else
@muchrm
muchrm / winget.ps1
Last active November 12, 2021 08:50
winget
winget install -e --id Git.Git;
winget install -e --id Microsoft.VisualStudioCode;
winget install -e --id Microsoft.VisualStudio.2022.Community;
winget install -e --id OpenJs.NodeJS.LTS;
winget install -e --id Microsoft.AzureDataStudio;
winget install -e --id 3t.Robo3T;
winget install -e --id GitHub.cli;
winget install -e --id SlackTechnologies.Slack;
winget install -e --id Discord.Discord;
winget install -e --id Yarn.Yarn;
@muchrm
muchrm / postman.spec.ts
Created March 26, 2021 07:35
postman test vat management
const pageSize = pm.environment.get("pageSize");
const currentPage = pm.environment.get("currentPage");
pm.test("get vat mangement pagination and check result should match", function () {
const resp = pm.response.json();
const result = resp.data
const expectedResult = paginate(result.allBuy || [], pageSize, currentPage)
pm.expect(result.listBuy.length).to.equal(expectedResult.length);
#!/usr/bin/env bash
for I in `gh pr list|cut -f 1`; do
gh pr diff $I
read -p"Accept $I? " foo
if [[ "$foo" == "y" ]];
then gh pr merge -m $I
fi
echo
done
@muchrm
muchrm / typings.d.ts
Created January 3, 2021 02:08
what i learned from typescript
type Constructor<T> = { new(...args: unknown[]): T }
function isType<T>(class:Constructor<T>):T{
}
@muchrm
muchrm / gist:18095056f974c669700d9718afe1b258
Created January 10, 2020 09:34 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: