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.
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
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.
# 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 |
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:
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 |
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 |
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 |