Skip to content

Instantly share code, notes, and snippets.

View boh1996's full-sized avatar

Bo Thomsen boh1996

View GitHub Profile
2017-06-30T12:38:02.6NZ mysqld_safe Logging to '/usr/local/var/mysql/Zaphod-3.local.err'.
2017-06-30T12:38:02.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
2017-06-30T12:38:02.867814Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-06-30T12:38:02.868179Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2017-06-30T12:38:02.868250Z 0 [Note] /usr/local/Cellar/mysql/5.7.18_1/bin/mysqld (mysqld 5.7.18) starting as process 24745 ...
2017-06-30T12:38:02.872870Z 0 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
2017-06-30T12:38:02.874636Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2017-06-30T12:38:02.874659Z 0 [Note] InnoDB: Uses event mutexes
2017-06-30T12:38:02.874667Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used
@boh1996
boh1996 / keybase.md
Created November 18, 2015 20:06
keybase.md

Keybase proof

I hereby claim:

  • I am boh1996 on github.
  • I am boh1996 (https://keybase.io/boh1996) on keybase.
  • I have a public key whose fingerprint is 2AE7 7832 ABB3 4968 0B3F BCE4 7926 FBAD 9900 EB3C

To claim this, I am signing this object:

@boh1996
boh1996 / gist:3853777
Created October 8, 2012 17:32
Bootstrap Async Example
modal.find('[data-handler="'+ key +'"]').each(function (i, currentElement) {
currentElement = $(currentElement).find(".typeahead");
currentElement.typeahead({
source: function (typeahead,query) {
var url = tableCreator.buildHandlerUrl(handler);
if (typeof handler.query_key != "undefined" && query != null && query != "") {
if (url.indexOf("?") != -1) {
if (url.indexOf("&") != -1) {
url += handler.query_key + "=" + query + "&";
} else {
@boh1996
boh1996 / bootstrap-recaptcha.css
Created October 1, 2012 14:31
Twitter Bootstrap reCAPTCHA
.input-recaptcha {
width:172px;
}
@boh1996
boh1996 / gist:3091206
Created July 11, 2012 15:36
Set object by path value
/**
* @author devman
*/
function setObjectPathValue(source, path, value) {
var parts = path.split('.'), len = parts.length, target = source;
for (var i = 0, part; i < len - 1; i++) {
part = parts[i];
target = target[part] == undefined ? (target[part] = {}) : target[part];
}
@boh1996
boh1996 / gist:3076857
Created July 9, 2012 14:24
Array mix php
<?php
/**
* This function mixes two arrays together,
* taking the keys from one and the values from the other.
* This can be usefull when doing preq match,
* so the result can be accessed like this array["key"] => value in a situation like this,
* Message: My message could be accessed like this $matches["Message"]
* @param array $keys The array containing the keys to use
* @param type $values The array containing the values to use
* @return array