Skip to content

Instantly share code, notes, and snippets.

View dahoba's full-sized avatar

Siritas S dahoba

View GitHub Profile
@dahoba
dahoba / README.md
Created February 11, 2022 08:48 — forked from danielepolencic/README.md
Create 3 nodes Kubernetes cluster locally with Vagrant

3 Virtual Machines Kubernetes cluster

Dependencies

You should install VirtualBox and Vagrant before you start.

Creating the cluster

You should create a Vagrantfile in an empty directory with the following content:

@dahoba
dahoba / edit-metrics-server-deployment.md
Last active February 4, 2022 12:21 — forked from NileshGule/edit-metrics-server-deployment.md
gist to update kuberentes metrics server deployment

deploy metrics server


kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml

edit metrics server deployment by adding command

@dahoba
dahoba / rk68-manual-text.md
Last active March 14, 2025 14:10
RK68 manual in text

RK68 user manual ⌨️

conections

  • BT 5.1
  • USB-A 2.4GHz
  • Wired

BT connection wind

@dahoba
dahoba / simple-git-workflow.md
Created August 27, 2021 05:10 — forked from leesmith/simple-git-workflow.md
Simple Git Workflow For Continuous Delivery

Simple Git Workflow For Continuous Delivery

Workflow guidelines:

  • master branch is always production-ready, deployable, 100% green test suite
  • New development is done on feature branches, with frequent rebasing onto master
  • Clean commit history by preferring to rebase instead of merge (git pull is configured to automatically rebase)

rebase workflow

Workflow

@dahoba
dahoba / postgres-notes.md
Last active August 17, 2021 02:12
postgres command

report size information for all tables

-- report size information for all tables
-- Finding the size of your biggest relations
SELECT nspname || '.' || relname AS "relation",
    pg_size_pretty(pg_relation_size(C.oid)) AS "size"
  FROM pg_class C
  LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)
  WHERE nspname NOT IN ('pg_catalog', 'information_schema')
@dahoba
dahoba / peacock-favorites-thaitone.json
Last active September 9, 2022 12:28
Thaitone color for Peacock vscode ext
"peacock.favoriteColors": [
{
"name": "แดงชาด",
"value": "#c9242b"
},
{
"name": "หงชาด",
"value": "#cb6669"
},
{
@dahoba
dahoba / tls-request-acme.sh-sample.sh
Created April 30, 2021 12:27
TLS request with acme.sh docker example
#! /usr/bin/env bash
set -e
# used cf information of api enabled domain name
# export CF_Key="<number>"
# export CF_Email="<email>"
export CF_Account_ID=<acccount-id>
export CF_Token="<api-token>"
# add cname record at target
@dahoba
dahoba / thai-nid-generator.js
Created February 6, 2021 14:01
thai national id generator
<script type="text/javascript">
var d1 = Math.floor(Math.random() * 10);
var d2 = Math.floor(Math.random() * 10);
var d3 = Math.floor(Math.random() * 10);
var d4 = Math.floor(Math.random() * 10);
var d5 = Math.floor(Math.random() * 10);
var d6 = Math.floor(Math.random() * 10);
var d7 = Math.floor(Math.random() * 10);
var d8 = Math.floor(Math.random() * 10);
var d9 = Math.floor(Math.random() * 10);
@dahoba
dahoba / encrypted-git-repo.md
Created December 15, 2020 16:25 — forked from polonskiy/encrypted-git-repo.md
Transparent Git Encryption

Transparent Git Encryption

This document has been modified from its [original format][m1], which was written by Ning Shang ([email protected]). It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].

Description

When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes

แดงชาด #c9242b
หงชาด #cb6669
ดินแดง #984c36
ดินแดงเทศ #98262a
ดินแดงตัด #76202a
แดงตัด #951519
หงดินตัด #894c3e
หงดิน #d59088
หงสบาท #df92a3