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 / (simple) DoH Setup with cloudflared.md
Created February 17, 2025 03:02 — forked from 1999AZZAR/DoH Setup with cloudflared.md
This guide explains how to set up DNS over HTTPS (DoH) on a Linux system using `cloudflared`. DoH ensures that your DNS queries are encrypted and secure, protecting your online privacy and preventing third-party monitoring of your internet activity.
@vanvuvuong
vanvuvuong / folder_structure.md
Created March 13, 2024 01:44 — forked from ayoubzulfiqar/folder_structure.md
The Folder Structure for Every Golang Project

Go - The Ultimate Folder Structure

Organizing your Go (Golang) project's folder structure can help improve code readability, maintainability, and scalability. While there is no one-size-fits-all structure, here's a common folder structure for a Go project:

project-root/
    ├── cmd/
    │   ├── your-app-name/
    │   │   ├── main.go         # Application entry point
    │   │   └── ...             # Other application-specific files
@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:

@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 / 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 / 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 / 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 / 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 / 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.if-statements-operator.md
Last active April 15, 2024 08:45
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