Skip to content

Instantly share code, notes, and snippets.

View vanvuvuong's full-sized avatar

Trần Đình Đồng vanvuvuong

  • Vietnam
View GitHub Profile
@vanvuvuong
vanvuvuong / multiple-ssh-keys-git.adoc
Created February 16, 2023 15:04 — forked from alejandro-martin/multiple-ssh-keys-git.adoc
Configure multiple SSH Keys for Git

Use Multiple SSH Keys for Git host websites (Github, Gitlab)

This is guide about how to configure multiple SSH keys for some Git host websites such as Github, Gitlab, among others.

Creating SSH keys

  1. Create SSH directory:

@vanvuvuong
vanvuvuong / multiple_ssh_setting.md
Created February 16, 2023 15:05 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@vanvuvuong
vanvuvuong / System Design.md
Created April 24, 2023 10:06 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?

Advanced Git

Git foundations

Data storage

  • Git is like a key-value store
    • key = data
    • value = hash of the data
  • The key (SHA1)
@vanvuvuong
vanvuvuong / examples.sh
Created May 26, 2023 07:20 — forked from LunaCodeGirl/examples.sh
Figlet how to and examples
figlet "I've got something to say"
figlet -f thick "Make Tech ASCIIer"
date | figlet -f basic
@vanvuvuong
vanvuvuong / preparations.md
Created August 4, 2023 02:15 — forked from wholroyd/preparations.md
Getting Minikube on WSL2 Ubuntu working

Windows Preparation

  1. Ensure hypervisor functionality is enabled in BIOS.

    • I know it sounds stupid, but if you already have it enabled, disable it, restart the machine, and enable it again.
    • Otherwise you will hit microsoft/WSL#5363
  2. Launch a PowerShell prompt in Administrator mode [Win+X > Windows PowerShell (Admin)]

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
@vanvuvuong
vanvuvuong / install-oracle-client-ubuntu.md
Created August 9, 2023 03:08 — forked from bmaupin/install-oracle-client-ubuntu.md
Install Oracle client on Ubuntu

Reference: https://help.ubuntu.com/community/Oracle%20Instant%20Client

Tested on: Ubuntu 18.04, 20.04

  1. Decide which version of the Oracle client to install

  2. Download the Oracle client packages

@vanvuvuong
vanvuvuong / jq-cheetsheet.md
Created August 16, 2023 08:58 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@vanvuvuong
vanvuvuong / markdown-text-101.md
Created September 25, 2023 02:24 — forked from matthewzring/markdown-text-101.md
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

@vanvuvuong
vanvuvuong / wsl-cheatsheet.ps1
Created September 28, 2023 07:46 — forked from karthiks/wsl-cheatsheet.ps1
WSL 2 CLI Cheat-sheet To Be Run In Powershell
# To list installed distributions
wsl -l
wsl --list
# To list installed distributions along with its running status and wsl config being 1 or 2
wsl -l --verbose
wsl -l -v
# To run a specific distro
wsl -d distro_name