Skip to content

Instantly share code, notes, and snippets.

View mlippert's full-sized avatar

Mike Lippert mlippert

View GitHub Profile
@tamakiii
tamakiii / README.md
Last active June 23, 2021 23:36
MySQL Docker: The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
$ docker-compose exec service mysql -u root -p -e "SELECT @@global.secure_file_priv;"
Enter password:
+---------------------------+
| @@global.secure_file_priv |
+---------------------------+
| /var/lib/mysql-files/ |
@StevenLangbroek
StevenLangbroek / class.js
Last active May 3, 2019 20:05
Private variables in ES6 Classes.
/**
* So, obviously this is by no means a "new trick",
* but encapsulation in classes works the same as
* it does in "Modules" (IIFE pattern): You hide them
* in a scope, and define the methods that need access
* to them within that same scope. The constructor is
* as good a place as any for that.
*/
import _ from 'underscore';