Override the entrypoint in docker-compose.yml for the MariaDB Docker container by adding:
entrypoint: mysqld_safe --skip-grant-tables --user=mysql
The start up the Docker Compose stack:
$> docker-compose up -d
| 1. Download latest apktool version. | |
| 2. Download the batch file and aapt.exe. | |
| 3. Create a folder anywhere in the PC and put all the apktool.jar, aapt.exe and the batch script in that folder. | |
| 4. Open command prompt. | |
| 5. Navigate to the folder where you placed apktool.jar, batch script and the aapt.exe. | |
| 6. Now, you need to install the file using the " IF " command. | |
| 7. Type the following command. | |
| apktool if name-of-the-app.apk |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
PhpStorm 7.0x
Create a file ~/.local/share/applications/jetbrains-phpstorm.desktop
With the following value:
| // Taken from https://stackoverflow.com/questions/22367711/construct-hierarchy-tree-from-flat-list-with-parent-field | |
| function treeify(list, idAttr, parentAttr, childrenAttr) { | |
| if (!idAttr) idAttr = 'id'; | |
| if (!parentAttr) parentAttr = 'parent'; | |
| if (!childrenAttr) childrenAttr = 'children'; | |
| var treeList = []; | |
| var lookup = {}; | |
| list.forEach(function(obj) { | |
| lookup[obj[idAttr]] = obj; |
| This can be used in Mac by using following trick: | |
| Open trial.key at path: /Applications/Beyond\ Compare.app/Contents/Resources/trial.key | |
| Replace content of trial.key with: | |
| --- BEGIN LICENSE KEY --- | |
| H1bJTd2SauPv5Garuaq0Ig43uqq5NJOEw94wxdZTpU-pFB9GmyPk677gJ | |
| vC1Ro6sbAvKR4pVwtxdCfuoZDb6hJ5bVQKqlfihJfSYZt-xVrVU27+0Ja | |
| hFbqTmYskatMTgPyjvv99CF2Te8ec+Ys2SPxyZAF0YwOCNOWmsyqN5y9t | |
| q2Kw2pjoiDs5gIH-uw5U49JzOB6otS7kThBJE-H9A76u4uUvR8DKb+VcB | |
| rWu5qSJGEnbsXNfJdq5L2D8QgRdV-sXHp2A-7j1X2n4WIISvU1V9koIyS |
| import os | |
| import re | |
| import shutil | |
| import sys | |
| import requests | |
| try: | |
| import argparse | |
| except ImportError: | |
| sys.stderr.write("The Python module argparse is required") |
| There is no way to store an empty object/array/null value. | |
| There are also no actual arrays. Array values get stored as objects with integer keys. | |
| (If all keys are integers, it will be returned as an array.) | |
| Basically, it's one giant tree of hashes with string keys. | |
| Simply write a value to any location, and the intermediary locations will automatically come into existance. | |
| ── Classes ── | |
| DataSnapshot : Container for a subtree of data at a particular location. |
| <?php | |
| /** | |
| * Fetch YouTube ID from URLs | |
| * | |
| * @param string $url | |
| * @return string | |
| */ | |
| function ja_youtube_id( $url ){ | |
| $regex = '~(?:http|https|)(?::\/\/|)(?:www.|)(?:youtu\.be\/|youtube\.com(?:\/embed\/|\/v\/|\/watch\?v=|\/ytscreeningroom\?v=|\/feeds\/api\/videos\/|\/user\S*[^\w\-\s]|\S*[^\w\-\s]))([\w\-]{11})[a-z0-9;:@#?&%=+\/\$_.-]*~i'; | |
| $id = preg_replace( $regex, '$1', $url ); |