Skip to content

Instantly share code, notes, and snippets.

View Tundra-bit's full-sized avatar

Tundra_Bit Tundra-bit

View GitHub Profile
@Tundra-bit
Tundra-bit / nginx-location.md
Created February 7, 2024 01:34 — forked from ebta/nginx-location.md
Nginx Location block Tutorial

Nginx location:

Nginx location block section have a search order, a modifier, an implicit match type and an implicit switch to whether stop the search on match or not. the following array describe it for regex.


# --------------------------------------------------------------------------------------------------------------------------------------------
# Search-Order       Modifier       Description                                                        Match-Type        Stops-search-on-match
# --------------------------------------------------------------------------------------------------------------------------------------------
#     1st               =           The URI must match the specified pattern exactly                  Simple-string              Yes
@Tundra-bit
Tundra-bit / mail_it.sh
Created January 30, 2023 08:00 — forked from beugley/mail_it.sh
bash script to send email as plain text or HTML, with attachments
#!/bin/sh
###############################################################################
## mail_it.sh
## A bash script that sends email as either plain text or HTML. It allows
## multiple recipients, CC addresses, reply-to addresses, and attachments.
##
## Usage: mail_it.sh -s subject -m message -f from_address
## -t to_address[,...] [-c cc_address[,...]] [-r reply_to_address[,...]]
## [-a attachment[,...]] [-h]
## subject: email subject