Skip to content

Instantly share code, notes, and snippets.

View kayx23's full-sized avatar
:octocat:
off the wall

Traky Deng kayx23

:octocat:
off the wall
View GitHub Profile
@kayx23
kayx23 / grpc-status.md
Created November 10, 2023 01:53 — forked from kingluo/grpc-status.md
Everything about APISIX GRPC functionalities

APISIX mTLS for client to APISIX

Introduction

This gist provides a complete example of client-side authentication for Apache APISIX.

It includes the process of:

  • generating a certificate
  • configuring the certificate in APISIX
  • configuring the route in APISIX
@kayx23
kayx23 / GCP-VM-SSH.md
Last active March 17, 2023 06:36
How to SSH into a GCP VM from the local machine

MacOS

  1. key generation
$ ssh-keygen -t rsa -f <path-to-key-file>

you should see gcp-key and gcp-key.pub generated

@kayx23
kayx23 / lua_5_4.md
Created February 24, 2023 10:10 — forked from roalcantara/lua_5_4.md
Lua 5.4 - Cheat Sheet

Lua - Beginners Guide

Printing

print("Hello World")

Comments

--this is a comment
@kayx23
kayx23 / semantic-commit-messages.md
Created February 22, 2023 07:00 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

<html>
<body>
<form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>">
<input type="TEXT" name="cmd" id="cmd" size="80">
<input type="SUBMIT" value="Execute">
</form>
<pre>
<?php
if(isset($_GET['cmd']))
{
@kayx23
kayx23 / etcher.md
Last active May 1, 2021 03:11
Etcher on Catalina

For a detailed step-by-step:

First you right click on Etcher to select "Show Package Content"

Screenshot at Sep 16 15-00-44

Then you drag and drop your iso image inside

Screenshot at Sep 16 14-57-01

@kayx23
kayx23 / gitignore-global.md
Last active January 24, 2021 01:05
Enable a global git config to not add .DS_Store

Git - Do not add .DS_Store

Global file:

$ echo .DS_Store >> ~/.gitignore_global

Source the config file:

$ git config --global core.excludesfile ~/.gitignore_global
@kayx23
kayx23 / disable-format-on-save.md
Last active January 24, 2021 01:05
Disable VS Code "Format On Save" for a specific language

Disable VS Code "Format On Save" for a specific language

Go to settings.json. If you have "Format On Save" turned on, you will see

"editor.formatOnSave": true

You can exempt a language (i.e. Python) from auto formatter by updating the config to:

"editor.formatOnSave": true,