Skip to content

Instantly share code, notes, and snippets.

View vector-man's full-sized avatar

Michael Corbett vector-man

View GitHub Profile
{
"description": "\"contains\" hack for v4 JSON Schema. The array must contain at least one \"A\", specified by saying that if all the entries are *not* \"A\", then it fails.",
"type": "array",
"not": {
"items": {
"not": {
"enum": ["A"]
}
}
}
@vector-man
vector-man / disable-exim-cpanel-whm
Created December 31, 2016 07:41 — forked from k0nsl/disable-exim-cpanel-whm
A way to disable Exim (applies to WHM/cPanel too).
service exim stop
chkconfig exim off
touch /etc/eximdisable (or create an empty file in /etc with the filename 'eximdisable')
@vector-man
vector-man / my.cnf
Created February 9, 2017 23:59 — forked from enricodeleo/my.cnf
MySQL optimized my.cnf for Magento store on 1GB ram VPS
[mysqld]
# GENERAL #
user = mysql
default-storage-engine = InnoDB
socket = /var/lib/mysql/mysql.sock
pid-file = /var/lib/mysql/mysql.pid
# MyISAM #
key-buffer-size = 32M