Skip to content

Instantly share code, notes, and snippets.

View trangnth's full-sized avatar
🐄
love heals all

Trang Nguyen trangnth

🐄
love heals all
  • University of Engineering and Technology
  • Hanoi, Vietnam
View GitHub Profile
@trangnth
trangnth / prometheus.yml
Created May 7, 2020 04:12 — forked from reachlin/prometheus.yml
sample prometheus configuration explained
// For all the confusing Prometheus configuration and
// regular expressions,
// explained in examples.
// Remember, there are default values for each item if it's missing.
// regex is (.*),
// replacement is $1,
// separator is ;
// ,and action is replace
@trangnth
trangnth / mysql_query_log.md
Created December 20, 2019 02:09 — forked from joseluisq/mysql_query_log.md
How to enable the MySQL/MariaDB general query logs

How to enable the MySQL/MariaDB general query logs

  1. Enter to MySQL/MariaDB server command-line tool (change root with your username and password):
mysql -u root -proot
  1. Set the general log file path:
SET GLOBAL general_log_file='/var/log/mysql/mycustom.log';
@trangnth
trangnth / wazuh-alert-telegram.md
Created December 6, 2019 08:41
Config wazuh alert via telegram
@trangnth
trangnth / wazuh-nmap-autoscan.md
Last active November 12, 2021 09:53
Wazuh auto scan and alert IP and port with Nmap

Cấu hình wazuh - nmap auto scan

Mô tả

  • Cảnh báo mỗi một host mới tham gia hoặc không tham gia vào dải ip được quét
  • Cảnh báo mỗi khi một port bất kỳ của host mở hoặc đóng (thay đổi trạng thái)
  • Thực hiện cấu hình trên wazuh server

Tham khảo

@trangnth
trangnth / keybase.md
Last active September 11, 2019 16:58
keybase.md

Keybase proof

I hereby claim:

  • I am trangnth on github.
  • I am tranguet (https://keybase.io/tranguet) on keybase.
  • I have a public key ASAHOVHzQLmglkEBA2pxXU5BbEnsORfXjsn4m_GaotN9-wo

To claim this, I am signing this object: