Skip to content

Instantly share code, notes, and snippets.

View thxCode's full-sized avatar
🎯
Focusing

Frank Mai thxCode

🎯
Focusing
  • Seal
  • ShenZhen, GuangDong
View GitHub Profile
@thxCode
thxCode / case.yaml
Last active June 5, 2020 01:17
YAML
apiVersion: edge.cattle.io/v1alpha1
kind: DeviceLink
metadata:
name: case1
namespace: default
spec:
...
template:
metadata:
labels:
@thxCode
thxCode / workthrough.md
Created April 10, 2020 08:23
Install Docker armhf on AWS ARM64 host
  1. Allow to install armhf package
    sudo dpkg --add-architecture armhf
  2. Update the apt package index and install packages to allow apt to use a repository over HTTPS:
    sudo apt-get update && sudo apt-get install -y \
        apt-transport-https \
        ca-certificates \
        curl \
@thxCode
thxCode / hpa-sample-servicemonitor.yaml
Last active November 20, 2019 07:33
Prometheus relatived
kind: ServiceMonitor
apiVersion: monitoring.coreos.com/v1
metadata:
name: hpa-app
namespace: kube-public
labels:
app: hpa-app
spec:
namespaceSelector:
matchNames:
@thxCode
thxCode / probe-research.yaml
Last active October 29, 2019 08:51
Research yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: probe-research
name: probe-research
spec:
selector:
matchLabels:
app: probe-research
@thxCode
thxCode / windows-troubleshooting-summary.md
Last active June 2, 2021 13:21
Windows trouble shooting

Windows Troubleshooting Summary

There are two servicing channels of Windows: LTSC (Long-Term Servicing Channel) and SAC (Semi-Annual Channel). 1903 or Windows Server, version 1903 is meaning the SAC server, oppositely, Windows Server 2019 is meaning the LTSC server. The SAC server only has the well known Core mode, which offers great advantages such as smaller hardware requirements, much smaller attack surface, and a reduction in the need for updates. The LTSC server support both GUI mode and Core mode.

The SAC server is not an "update" or "service pack" for LTSC. It's the current twice-yearly server release on the release track that is designed for customers who are moving at a "cloud cadence", such as those on rapid development cycles. This track is ideal for modern applications and innovation scenarios such as containers and micro-services. Each release in this track is supported for 18 months from the initial release. Get more from [Windows Server servicing channels: LTSC and SAC](

@thxCode
thxCode / cloudprovider-azurefiles.md
Last active November 19, 2019 09:35
Windows storage guide

Dynamic - PVC

Following https://docs.microsoft.com/en-us/azure/aks/azure-files-dynamic-pv.

Create a StorageClass for creating PV dynamically

For now, we can only choose the following Azure storage redundancy for skuName:

  • Standard_LRS - standard locally redundant storage (LRS)
  • Standard_GRS - standard geo-redundant storage (GRS)
  • Standard_RAGRS - standard read-access geo-redundant storage (RA-GRS)
@thxCode
thxCode / windows-tools-installation.md
Last active December 7, 2023 08:17
Windows tools installation scripts

Installing Tools

Docker install

# default install
iwr -uri https://gist.githubusercontent.com/thxCode/cd8ec26795a56eb120b57675f0c067cf/raw/10d748f604764aa337864941b99d79154cbc5fc2/zz_docker_install.ps1 -UseBasicParsing | iex

# custom version install
@thxCode
thxCode / windows-yaml-generation.md
Last active October 21, 2019 06:12
Windows testing YAMLs and images