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
// Wordpress Enqueue AlpineJS form CDN with IE11 support | |
// <script type="module" src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js"></script> | |
// <script nomodule src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine-ie11.min.js" defer></script> | |
function advertis_enqueue_scripts() | |
{ | |
wp_register_script( 'AlpineJS-module', 'https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.3.5/dist/alpine.min.js', null, null, false ); | |
wp_enqueue_script('AlpineJS-module'); | |
wp_register_script( 'AlpineJS-nomodule', 'https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.3.5/dist/alpine.min.js', null, null, false ); | |
wp_enqueue_script('AlpineJS-nomodule'); | |
} |
////////// Custom Functions ////////////////////////////////////////////////////////// | |
/** | |
* Disable the emoji's | |
*/ | |
function advertis_disable_bloat() { | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); | |
remove_action( 'wp_print_styles', 'print_emoji_styles' ); | |
remove_action( 'admin_print_styles', 'print_emoji_styles' ); |
/** | |
* 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, ' ') |
add_filter('show_admin_bar', '__return_false'); |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |