This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setting up my new Apple M1 macbook pro I was having issues setting up [email protected] using homebrew, with the following message being thrown: | |
``` | |
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) | |
``` | |
We need to modify the MySQL config file: | |
``` | |
nano /usr/local/etc/my.cnf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getTextNodes(cssSelector, findString) { | |
var items = $(cssSelector) | |
.contents() | |
.filter(function() { | |
var isText = this.nodeType == Node.TEXT_NODE; | |
if (isText) { | |
var text = $.trim(this.textContent); | |
if (text.length && text.indexOf(findString) > -1) { |
NewerOlder