Skip to content

Instantly share code, notes, and snippets.

View vanvuvuong's full-sized avatar

Trần Đình Đồng vanvuvuong

  • Vietnam
View GitHub Profile
@1999AZZAR
1999AZZAR / DoH Setup with cloudflared.md
Last active March 8, 2025 21:33
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 / 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.


@ayoubzulfiqar
ayoubzulfiqar / folder_structure.md
Created September 5, 2023 06:12
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 / 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
@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"

Basic definitions

  • String s matches the regex pattern /p/ whenever s contains the pattern 'p'.
    • Example: abc matches /a/, /b/, /c/
  • For simplicity, we will use the matches verb loosely in a sense that
    • a string can match a regex (e.g. 'a' matches /a/)
    • a regex can match a string (e.g. /a/ matches 'a')
  • A regex pattern consists of literal characters that match itself, and metasyntax characters
  • Literal characters can be concatenated in a regular expression. String s matches /ab/ if there is an a character *directly followed by a b character.
  • Example: abc matches /ab/, /bc/, /abc/
@wholroyd
wholroyd / preparations.md
Last active March 6, 2025 09:19
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
@karthiks
karthiks / wsl-cheatsheet.ps1
Last active March 7, 2025 01:48
WSL 2 CLI Cheat-sheet To Be Run In Powershell
# wsl Help
wsl --help
# Check WSL status
wsl --status
# Check WSL version
wsl --version
# Update WSL
@rams3sh
rams3sh / aws_regex_cheat_sheet
Last active March 7, 2025 11:26
Common AWS Related Regex (AWS)
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
iii. <aws_region> - No fixed pattern
Most of the regions occur in combination of 2 letter followed by "-" followed by a combination of direction based word , followed by a "-" and then a digit.