Skip to content

Instantly share code, notes, and snippets.

View kenjikato's full-sized avatar
💭
Thinking really hard 🤔

Kenji Kato kenjikato

💭
Thinking really hard 🤔
View GitHub Profile
@kenjikato
kenjikato / 2-Way-TLS-Auth-for-Node-and-Nginx.md
Last active April 15, 2022 10:48 — forked from pcan/README.md
2-Way TLS Symmetric Client Server Cert Auth for Node.js and Nginx

Two-Way TLS or mTLS Symmetric Client Server Cert Auth for Node.js using plain TLS sockets and/or Nginx

This file describes how to set up a bidirectional client/server TLS authentication or mTLS (mutual-auth TLS) for plain TLS sockets using Node.js.

If you don't know why you would use a two-way TLS or mTLS auth mechaniusm it's worth checking out these videos to get a better understanding.

# .bash_profile
#
# The new Mac OS is now zsh based. The .bash_profile file is still left in place as some older sofware might need it.
# Nothing found in this file is currently secret
#
# Check to see if a .bashrc exsit, and if it does source it.
# This shouldn't be needed anymore, but leaving it here commented out for histrical purposes.
# if [ -f ~/.bashrc ]; then
# source ~/.bashrc
# Source the .profile file and its settings if it exists
if [ -f ~/.profile ]; then
source ~/.profile
fi
# Source the bash_profile and its settings if it exists
if [ -f ~/.bash_profile ]; then
source ~/.bash_profile
fi
@kenjikato
kenjikato / .zshrc
Last active November 1, 2021 07:50
.zshrc-for-macos
# An enhanced .zshrc for macOS
#
# =====================================
# MAKE THE TERMINAL LOOK MORE COLORFUL
# =====================================
# Load the colors functionality into zsh. Go here to learn more about colors: https://unix.stackexchange.com/questions/19498/understanding-colors-in-zsh
autoload -Uz colors && colors #Want to know about autoload go here: https://stackoverflow.com/questions/30840651/what-does-autoload-do-in-zsh
# set a fancy prompt (non-color, unless we know we "want" color)
@kenjikato
kenjikato / keybase.md
Created March 16, 2018 07:53
Keybase Pub Key kenjikato

Keybase proof

I hereby claim:

  • I am kenjikato on github.
  • I am kenjikato (https://keybase.io/kenjikato) on keybase.
  • I have a public key ASBYV3N_Xy1K3hnetqBTpTAcBNzdbAoj57QLpKIJQa96DAo

To claim this, I am signing this object: