This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
| 1. Generate 2 or more gpg keys https://docs.github.com/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key | |
| 2. Those keys will be under ~/.ssh | |
| 3. Add them to the right accounts | |
| 4. Edit config file under ~/.ssh | |
| cat ~/.ssh/config | |
| Host personal | |
| HostName github.com | |
| User git |
| // Helper to extract paths ( root.with.deeply.nested.structure ) and their value using the specified leaf | |
| // --- Found a version on the internet and modified it for this purpose. | |
| // Using typescript | |
| const flattenNestedObjectsByProperty = (object, property: string): { [prop: string]: any } => { | |
| const pathsWithValue = {}; | |
| const separator: string = '.'; | |
| Object.assign({}, ...function _flatten(child, path = ([] as string[])) { | |
| return ([] as string[]).concat(...Object.keys(child).map(key => typeof child[key] === 'object' | |
| ? _flatten(child[key], path.concat([key])) |