Skip to content

Instantly share code, notes, and snippets.

View socheatsok78's full-sized avatar
🖖
༼ つ ◕_◕ ༽つ is having a baby

Socheat Sok socheatsok78

🖖
༼ つ ◕_◕ ༽つ is having a baby
View GitHub Profile
@socheatsok78
socheatsok78 / KUBERNETES_SETUP.md
Created March 29, 2024 03:48 — forked from dPacc/KUBERNETES_SETUP.md
Setup Kubernetes Cluster on premise using kubeadm

Setup Kubernetes Cluster On-Premise using kubeadm

Why would you do this?

  • You own your bare metal infrastructure.
  • You want to take advantage of Kubernetes.
  • You do not wish to migrate your application to the cloud

Why it will not always suit your needs?

@socheatsok78
socheatsok78 / trusted_certificate_stores_on_linux_os_and_applications.md
Created November 13, 2023 08:57 — forked from CMCDragonkai/trusted_certificate_stores_on_linux_os_and_applications.md
SSL/TLS: Trusted Certificate Stores on Linux Operating Systems and Applications

Trusted SSL/TLS Certificate Stores on Linux Operating Systems and Applications

The SSL/TLS store location is not standardised across operating systems or even Linux distros. It could be anywhere in:

  • /etc/ssl/certs
  • /etc/pki/tls/certs/ca-bundle.crt
  • /etc/ssl/certs/ca-bundle.crt
  • /etc/pki/tls/certs/ca-bundle.trust.crt
@socheatsok78
socheatsok78 / docker-swarm-architecture.md
Created September 27, 2023 02:02 — forked from scyto/docker-swarm-architecture.md
My Docker Swarm Architecture
@socheatsok78
socheatsok78 / Generating stronger DH parameters for nginx
Created July 11, 2023 11:03 — forked from ageis/Generating stronger DH parameters for nginx
Generating stronger DH parameters for nginx's SSL
# run in the terminal, then set as ssl_dhparam in nginx.conf
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 4096
@socheatsok78
socheatsok78 / golang_job_queue.md
Created July 7, 2023 09:45 — forked from harlow/golang_job_queue.md
Job queues in Golang
@socheatsok78
socheatsok78 / 0-rancher-vsphere-setup.md
Created May 24, 2023 18:57 — forked from PhilipSchmid/0-rancher-vsphere-setup.md
How to set up a Rancher K8s cluster on VMware (incl. vSphere StorageClass)

Rancher K8s Cluster on VMware vSphere

Prerequisites

vCenter Configuration

@socheatsok78
socheatsok78 / esm-package.md
Created April 19, 2023 17:24 — forked from sindresorhus/esm-package.md
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@socheatsok78
socheatsok78 / SSLPoke.java
Created February 16, 2023 02:53 — forked from bric3/SSLPoke.java
The famous SSLPoke from Atlassian : establish a TLS connection but support http proxy and updated to Java 11
import javax.net.ssl.SSLParameters;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.Socket;
@socheatsok78
socheatsok78 / Makefile
Created February 7, 2023 14:31 — forked from sighingnow/Makefile
Detect operating system in Makefile.
# Detect operating system in Makefile.
# Author: He Tao
# Date: 2015-05-30
OSFLAG :=
ifeq ($(OS),Windows_NT)
OSFLAG += -D WIN32
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64)
OSFLAG += -D AMD64
endif