This file contains 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
#!/bin/bash | |
# add docker repository | |
sudo apt install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ |
This file contains 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
{ | |
"success":true, | |
"data": | |
[ | |
{ | |
"name":"xhprof", | |
"description":"Description of xhprof addon", | |
"config": "https://gist.githubusercontent.com/Pegasuz/bd67f481e7071702e824fc8d70716038/raw/25f418169691ac64f1dd95b2bbf1603e8571c4f5/config.yml", | |
"postInstallMessage":"You should manually update your .env file: change 'DEVELOPMENT' to '1'." | |
}, |
This file contains 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
services: | |
xhguimongo: | |
image: mongo | |
xhguiapp: | |
image: dockerwest/php-xhgui:7.1 | |
links: | |
- xhguimongo:mongo | |
xhguinginx: |
This file contains 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 | |
/** | |
* @name Mutlidimensional Array Sorter. | |
* @author Tufan Barış YILDIRIM | |
* @link http://www.tufanbarisyildirim.com | |
* @github http://github.com/tufanbarisyildirim | |
* | |
* This function can be used for sorting a multidimensional array by sql like order by clause | |
* | |
* @param mixed $array |
This file contains 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 debug($msg, $exit = true) | |
{ | |
if ($_SERVER['REMOTE_ADDR'] == '127.0.0.1') { // Only from my IP | |
echo "<pre>"; | |
print_r($msg); | |
echo "</pre>"; | |
$calledFrom = reset(debug_backtrace()); | |
echo "<br>Called from " . $calledFrom['file'] . ' | line ' . $calledFrom['line'] . "<br>"; | |
echo "<hr>"; |