- Find config file:
mysqld --help --verbose | grep my.cnf
In my case, it's locate at: /usr/local/etc/my.cnf, show content and find config directory path.
- Create new file at this path:
/usr/local/etc/my.cnf.d/disable_strict_mode.cnf
mysqld --help --verbose | grep my.cnf
In my case, it's locate at: /usr/local/etc/my.cnf, show content and find config directory path.
/usr/local/etc/my.cnf.d/disable_strict_mode.cnf
| 'use strict'; | |
| /** | |
| * Makes an element draggable. | |
| * | |
| * @param {HTMLElement} element - The element. | |
| */ | |
| function draggable(element) { | |
| var isMouseDown = false; |
React.createClass, extending React.Component and also stateless functional components.renderOnError() in a comp| let rows = {} | |
| export default function(props = [], state = []) { | |
| return function(target) { | |
| const proto = Object.create(target.prototype) | |
| proto.shouldComponentUpdate = function(newProps, newState) { | |
| let id = (this._update_id = this._update_id || Math.random()) |
| 'use strict'; | |
| /** | |
| * Javascript version of https://gist.github.com/jbroadway/2836900 | |
| * | |
| * Slimdown - A very basic regex-based Markdown parser. Supports the | |
| * following elements (and can be extended via Slimdown::add_rule()): | |
| * | |
| * - Headers | |
| * - Links |
To connect to MSSQL using PHP 5.6 we'll need to use PDO's DBLIB (PDO_DBLIB) http://php.net/manual/en/ref.pdo-dblib.php and FreeTDS http://www.freetds.org/
This quick tutorial is using Ubuntu Server 14.04
First, make sure you're up to date on all of your packages.
sudo apt-get updatesudo apt-get upgradesudo apt-get dist-upgradeI'm using PHP 5.6.9 (https://launchpad.net/~ondrej/+archive/ubuntu/php5-5.6)
| { | |
| "query": { | |
| "bool": { | |
| "should": [ | |
| { | |
| "match": { | |
| "_all": search_term | |
| } | |
| }, | |
| { |
| [alias] | |
| co = checkout | |
| st = status | |
| ci = commit | |
| rb = rebase | |
| rank = shortlog -sn --no-merges | |
| amend = commit --amend -C HEAD | |
| vr = !sh -c \"git svn fetch && git svn rebase\" | |
| vc = !sh -c \"git vr && git svn dcommit\" | |
| ex = !sh -c \"git checkout-index -a -f --prefix=$1\" |
| #!/bin/bash | |
| while read oldish newish ref; do | |
| branch=$(echo "$ref" | cut -d"/" -f3-) | |
| done | |
| case "$branch" in | |
| "live") | |
| git --work-tree=/var/www/dylanstestserver.com/ checkout -f $branch | |
| echo 'Changes pushed live.' | |
| ;; | |
| esac |