Skip to content

Instantly share code, notes, and snippets.

View iCyLand's full-sized avatar
🧸
:3

Ice iCyLand

🧸
:3
View GitHub Profile
@iCyLand
iCyLand / w3c.conf
Last active April 18, 2022 15:25
W3C json log format for nginx
## this GeoIP dat file relate on centos environment please change to your OS path
geoip_country /usr/share/GeoIP/GeoIP-initial.dat;
map $request_uri $request_uri_path {
"~^(?P<path>[^?]*)(\?.*)?$" $path;
}
map $upstream_response_time $new_upstream_response_time {
default $upstream_response_time;
'' null;
@iCyLand
iCyLand / shell-script-sendmail.sh
Last active November 9, 2023 10:29
Shell script send mail via mailx for authentication SMTP server and attachment file
#!/bin/sh
### option configuration
MESSAGE_BODY="Test mail"
EMAIL_SUBJECT="Testing Email from Shell Script with SMTP-01"
FROM_EMAIL_ADDRESS="[email protected]"
FRIENDLY_NAME="NO Reply test"
SMTP_SERVER="smtp.sender.com"
SMTP_PORT="587"
SMTP_USER="User"