Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Alexey flexscss

I may be slow to respond.
View GitHub Profile
View gist:b47d889bc8bc0aa7bc6870b27ee798a1
// set daemon 5 for fast restart
check process mongodb with pidfile /var/lib/mongodb/mongod.lock
group database
start program = "/bin/systemctl start mongodb"
restart program = "/bin/systemctl restart mongodb"
stop program = "/bin/systemctl stop mongodb"
flexscss / mail.php
Last active Jan 10, 2018
Sending json from forms
View mail.php
$json = file_get_contents('php://input');
$data = json_decode($json, true);
$errors = array();
// Form params variables
$param1 = '';
$param2 = '';