MySQL for Mac OS X

Get MySQL from dev.mysql.com Make alias for Terminal alias mysql=/usr/local/mysql/bin/mysql alias mysqladmin=/usr/local/mysql/bin/mysqladmin if you want to make the alias permanent, you need to create /

Read More »

Synology + Composer

Turn on PHAR directive from DSM Control Panel shh into BusyBox cd to the project directory get composer from getcomposer.org curl -sS https://getcomposer.org/installer | php

Read More »

Block Spam comments using PHP code

The following code is from official WordPress.org < ?php $block = array("xxx.xxx.xxx.xxx", "yy.yy.y.yyy"); if (in_array ($_SERVER[‘REMOTE_ADDR’], $block)) { header(“Location: http://google.com/”); exit(); } ?> I’ve added

Read More »

Block Spam comments using PHP code

The following code is from official WordPress.org < ?php $block = array(“xxx.xxx.xxx.xxx”, “yy.yy.y.yyy”); if (in_array ($_SERVER[‘REMOTE_ADDR’], $block)) { header(“Location: http://google.com/”); exit(); } ?> I’ve added

Read More »