Skip to content

Instantly share code, notes, and snippets.

View Azmandius21's full-sized avatar
🔆
i am ready for growing

Aziz Azmandius21

🔆
i am ready for growing
View GitHub Profile
@Azmandius21
Azmandius21 / Monit_config
Last active February 9, 2024 19:32
Config file for Monit service
### Nginx ###
check process nginx with pidfile /run/nginx.pid
start program = "/usr/bin/systemctl start nginx.service"
stop program = "/usr/bin/systemctl stop nginx.service"
if cpu > 60% for 2 cycles then alert
if cpu > 80% for 5 cycles then restart
if memory usage > 80% for 5 cycles then restart
if failed host 79.174.95.43 port 80 protocol http
then restart
if 3 restarts within 5 cycles then timeout
@Azmandius21
Azmandius21 / spec_gist
Created June 13, 2023 04:12
Gist for test
Gist content
# Test gist for my application
class Link
GIST_URL = Regexp.new 'https://gist.github.com'
def gist?
self.url.match?(GIST_URL)
end
end