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.
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.
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
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 |
Run next command if the previous one is failed
cmd1 && echo "Success" || echo "Failed"
- String
s
matches the regex pattern/p/
whenevers
contains the pattern 'p'.- Example:
abc
matches/a/
,/b/
,/c/
- Example:
- 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 ana
character *directly followed by ab
character. - Example:
abc
matches/ab/
,/bc/
,/abc/
-
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
-
Launch a PowerShell prompt in Administrator mode [Win+X > Windows PowerShell (Admin)]
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# wsl Help | |
wsl --help | |
# Check WSL status | |
wsl --status | |
# Check WSL version | |
wsl --version | |
# Update WSL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
NewerOlder