# Stop MySQL
sudo service mysql stop
# Make MySQL service directory.
sudo mkdir /var/run/mysqld
# Give MySQL user permission to write to the service directory.
sudo chown mysql: /var/run/mysqld
# Start MySQL manually, without permission checks or networking.
sudo mysqld_safe --skip-grant-tables --skip-networking &
# Log in without a password.
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG v1 | |
mQINBFr3St8BEADTSsMMG/XSWU3RQYrTp76jKcNlqadhJpOWpe65dFD/WMkoC84u | |
2AserM8QfPxQSSOgBNVOVGVfRBO8Q4TwVaYUsknDoqkZOOM8jEcyWrxthKc/K8bK | |
ljAVTNwx4FHS2FAtbrSH02kMGxivHk5s1Bji+1oW0kMclhqI1rGCN+e6oziEyhfS | |
vuRAI/mrq2oyNt6O+rIQvWo1rAoRmRnbzLmyfxQP+wWpnl7w+nSt/xzvGdWE5c+t | |
gjv5xFQLsdc+hAsS6y8K4QbfoNOmXTxdT2mYWhVqqt2GJ7PQayN0I0lSs0vOY29Z | |
ubOh3/g8bp3nTqJqQoYEB3IgcYJWqTdaLjCvVrGYx3eyXzjsb5ZT2FZRjd8Q/OvX | |
LI43NtkWi24GCx8sNIpkWrmz7auSNs31r0F/F6qauIeKpy1ZGuVaoPBmHe9zvd/p |
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
<?php | |
$ldapconn = ldap_connect('domain.com') | |
or die("Could not connect to LDAP server."); | |
$un = 'domain\\username'; | |
$pw = 'password'; | |
$ldapbind = ldap_bind($ldapconn, $un, $pw); |
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
"use strict"; | |
const Promise = require('bluebird') | |
class MyAction { | |
constructor (name, nextAction, preFail, postFail) { | |
this.name = name | |
this.nextAction = nextAction | |
this.preFail = preFail |
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
<?php | |
$fileTemplate = __DIR__.'/../../app/Resources/translations/messages.%s.xliff'; | |
$fromLocale = 'en'; | |
$toLocale = 'ar'; | |
$sourceFile = sprintf($fileTemplate, $fromLocale); | |
$targetFile = sprintf($fileTemplate, $toLocale); | |
$stringLetters = <<<EOT | |
ض |
Hierarchical data metrics that allows fast read operations on tree like structures.
Based on Left and Right fields that are set during tree traversal. When entered into node value is set to it's Left, when exiting node value is set to it's Right.
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
### Keybase proof | |
I hereby claim: | |
* I am tmilos on github. | |
* I am tmilos (https://keybase.io/tmilos) on keybase. | |
* I have a public key whose fingerprint is 2906 0696 3E16 7038 78FE B234 DF2A A652 71C9 1CE4 | |
To claim this, I am signing this object: |
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
{ | |
"foo": "bar" | |
} |