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 / 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 / 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 / 1.if-statements-operator.md
Last active January 12, 2026 04:57
Bash script notable cheat-sheet
Operator Description
! EXPRESSION The EXPRESSION is false.
condition 1 -a condition 2 CONDITION 1 and CONDITION 2.
condition 1 -o condition 2 CONDITION 1 or CONDITION 2.
-n STRING The length of STRING is greater than zero.
-z STRING lengh of STRING is zero (ie it is empty).
STRING1 =/!= STRING2 STRING1 is equal/not-equal to STRING2
INTEGER1 -eq/ne INTEGER2 INTEGER1 is numerically equal/not-equal to INTEGER2
@vanvuvuong
vanvuvuong / 1.awk-variables.md
Last active August 15, 2024 10:08
AWK fundamental to advanced
Variables Description
ENVIRON An associative array of environment variables.
FIELDWIDTHS Specify the field width
FS The field seperator
RS The record seperator, default is new line
NF The number of fields in the current record
NR The number of the current record
FNR Similar to NR, but relative to the current file. It is useful when AWK is operating on multiple files. Value of FNR resets with new file.
OFS The output field seperator, space by default
@vanvuvuong
vanvuvuong / 1.stdout-detail.md
Last active March 8, 2024 07:54
Linux std in/out control
visible in terminal visible in file existing
Syntax StdOut StdErr StdOut StdErr file
> no yes yes no overwrite
>> no yes yes no append
2> yes no no yes overwrite
2>> yes no no yes append
&> no no yes yes overwrite
@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
@vanvuvuong
vanvuvuong / README.md
Created November 20, 2023 07:46 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@vanvuvuong
vanvuvuong / aws_regex_cheat_sheet.md
Last active February 12, 2025 18:34 — forked from rams3sh/aws_regex_cheat_sheet
AWS ARN resources regex cheat sheet

ARN Base Pattern

arn:<aws_parition>:<aws_service>:[<aws_region>]:<account_id>:<root | resource_type>:/<resource_name>[/<sub_resource_names>...]

i.<aws_partition>

Regex: (aws|aws-us-gov|aws-cn)

ii. <aws_service> - No fixed pattern: