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
| const prefix = '<prefix>'; | |
| db.getMongo().getDBNames().forEach((dbName) => { | |
| if (dbName.indexOf(prefix) === 0) { | |
| db.getMongo().getDB(dbName).dropDatabase(); | |
| } | |
| }); |
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
| sudo kill -9 `sudo ps -ef | grep php-fpm | grep -v grep | awk '{print $2}'` |
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 | |
| $isDefunct = function ($result) { | |
| return preg_match('/<defunct>$/', $result); | |
| }; | |
| $getProcessInfo = function ($pid) { | |
| return exec("ps --pid $pid | tail -n +2"); | |
| }; |
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
| { | |
| "color": "black", | |
| "testVal": 25, | |
| "testQuantity": 5 | |
| } |
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
| { | |
| "testVal": 25, | |
| "testQuantity": 5 | |
| } |
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
| docker run -it \ | |
| -v /home/redmine/docker-mariadb-tools/exchange:/root/exchange \ | |
| --link redmine-mariadb:redmine-mariadb bmichalski/mariadb-tools \ | |
| bash -c "mysql -u root --host redmine-mariadb < /root/exchange/test" |