Skip to content

Instantly share code, notes, and snippets.

View unnamedfeeling's full-sized avatar

Oleksandr Yarosh unnamedfeeling

View GitHub Profile
@rohankhudedev
rohankhudedev / opcache.ini
Last active July 20, 2024 05:21
Best Zend OpCache Settings / Tuning / Configurations
[opcache]
; Determines if Zend OPCache is enabled
opcache.enable=1
; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=1
; The OPcache shared memory storage size.
opcache.memory_consumption=512
@g3rhard
g3rhard / deploy_zoneminder.sh
Last active April 2, 2018 16:24
Install ZoneMinder with h264 archive storage
#!/bin/bash
# http://zoneminder.readthedocs.io/en/latest/installationguide/ubuntu.html#easy-way-ubuntu-16-04
#Задаем пароль для пользователя root для MySQL
COOKIES_PASSWORD="PASSWORD"
#Задаем часовой пояс для PHP
TIMEZONE="Asia/Irkutsk"
# Настраививаем автоматический ввод пароля для админа mysql.
@vodolaz095
vodolaz095 / watchdog.sh
Last active November 20, 2022 12:59
watchdog.sh script for checking server running not mine, i stole it)
#!/bin/bash
# Service watchdog script
# Put in crontab to automatially restart services (and optionally email you) if they die for some reason.
# Note: You need to run this as root otherwise you won't be able to restart services.
#
# Example crontab usage:
#
# Strict check for apache2 service every 5 minutes, pipe results to /dev/null
# */5 * * * * sh /root/watchdog.sh apache2 "" > /dev/null
#