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 / 0.pre_install_oracle.md
Last active September 7, 2023 07:13
Allow public connection to Oracle Database

Environment:

  • CentOS 7

Prerequistes:

  • Packages:
zip unzip wget bc binutils compat-libcap1 compat-libstdc++-33 dtrace-modules dtrace-modules-headers \
dtrace-modules-provider-headers dtrace-utils elfutils-libelf elfutils-libelf-devel \
@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 / 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 / 1.condition.md
Last active April 1, 2024 08:01
Linux Advanced Commands Notes

Run next command if the previous one is failed

cmd1 && echo "Success" || echo "Failed"

Terraform

Condition

resource "null_resource" "test" {
  count = true ? 1: 0
}

Get index from map & concat string

@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

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 / 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?
@vanvuvuong
vanvuvuong / agnoster.zsh-theme
Created March 7, 2023 14:07
Custom Random Emoji Agnoster Theme
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline
@vanvuvuong
vanvuvuong / agnoster.zsh-theme
Last active March 1, 2023 02:28
Agnoster theme with random emoji
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline