Skip to content

Instantly share code, notes, and snippets.

@sorindorobantu
sorindorobantu / switch_to_mysql_native_password.md
Created October 26, 2021 12:01 — forked from rohsyl/switch_to_mysql_native_password.md
MariaDB switch to mysql_native_password

Switch to mysql_native_password plugin

By default MariaDB use the unix_socket plugin to authenticate users.

But it's easier to use mysql_native_password for dev (and only for dev because it's way less secure).

Get root access

sudo su
/**
* Converts a string to camel case.
* Example: fucking_string => fuckingString
*
* @param {String} str the string to convert
* @return {String}
*/
Vue.filter('camelCase', function (str) {
return str.toLowerCase()
.replace( /[-_]+/g, ' ')
@sorindorobantu
sorindorobantu / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console