@ 2014-03-05T11:14:30Z <?php
$payload = json_decode('{"repository": {"website": "http://clients.namanyayg.com/davidado/asianfanfics", "fork": false, "name": "AsianFanfics", "scm": "git", "owner": "namanyayg", "absolute_url": "/namanyayg/asianfanfics/", "slug": "asianfanfics", "is_private": true}, "truncated": false, "commits": [{"node": "5741782e36cb", "files": [{"type": "removed", "file": "README.md"}], "raw_author": "Namanyay Goel <mail@namanyayg.com>", "utctimestamp": "2014-03-05 09:58:52+00:00", "author": "namanyayg", "timestamp": "2014-03-05 10:58:52", "raw_node": "5741782e36cbac80dc01bc3605eda95640a3f480", "parents": ["1d0a82c82718"], "branch": "master", "message": "Removed README\n", "revision": null, "size": -1}], "canon_url": "https://bitbucket.org", "user": "namanyayg"}');
$repo = $payload->repository;
echo "Hi!";
$payload = $_POST['payload'];
$repo = $payload->repo;
echo 'Deploying on ' . date('l jS \of F Y h:i:s A');
echo $payload == true;
echo $repo->owner === 'namanyayg';
echo strrpos($repo->absolute_url, 'namanyayg') == true;
if ( $payload == true && $repo->owner === 'namanyayg' && strrpos($repo->absolute_url, 'namanyayg') == true )
{
$url = str_replace('http://clients.namanyayg.com/', '', $repo->website);
$bitbucketurl = substr($repo->absolute_url, 1, -1);
echo 'True! ' . $url . $bitbucketurl;
$makeandcdcommand = 'mkdir ' . $url . ' && cd ' . $url;
$gitclonecommand = 'rm -rf * && ' . 'git clone git@bitbucket.org:' . $bitbucketurl . '.git'
echo 'True! ' . $makeandcdcommand . $gitclonecommand;
$makeandcd = shell_exec($makeandcdcommand);
$gitclone = shell_exec($gitclonecommand);
echo $makeandcd . $gitclone);
};
?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Version System time (s) User time (s) Memory (MiB) 5.4.25 0.013 0.077 18.73 5.4.24 0.010 0.050 18.89 5.4.23 0.017 0.070 18.93 5.4.22 0.007 0.057 18.72 5.4.21 0.003 0.073 18.88 5.4.20 0.010 0.050 18.80 5.4.19 0.010 0.050 18.79 5.4.18 0.010 0.053 18.89 5.4.17 0.003 0.057 19.06 5.4.16 0.013 0.060 18.71 5.4.15 0.007 0.057 18.91 5.4.14 0.013 0.047 16.37 5.4.13 0.003 0.057 16.55 5.4.12 0.017 0.057 16.56 5.4.11 0.010 0.050 16.45 5.4.10 0.010 0.050 16.48 5.4.9 0.000 0.077 16.34 5.4.8 0.010 0.047 16.56 5.4.7 0.010 0.050 16.61 5.4.6 0.013 0.047 16.56 5.4.5 0.007 0.047 16.40 5.4.4 0.003 0.057 16.45 5.4.3 0.010 0.047 16.31 5.4.2 0.007 0.050 16.39 5.4.1 0.020 0.060 16.43 5.4.0 0.010 0.047 16.09 5.3.28 0.007 0.053 14.70 5.3.27 0.007 0.053 14.63 5.3.26 0.010 0.060 14.66 5.3.25 0.020 0.053 14.77 5.3.24 0.013 0.053 14.63 5.3.23 0.010 0.050 14.62 5.3.22 0.007 0.050 14.28 5.3.21 0.007 0.080 14.59 5.3.20 0.007 0.067 14.27 5.3.19 0.010 0.047 14.43 5.3.18 0.017 0.043 14.61 5.3.17 0.000 0.053 14.58 5.3.16 0.020 0.037 14.57 5.3.15 0.020 0.040 14.46 5.3.14 0.007 0.053 14.60 5.3.13 0.007 0.057 14.56 5.3.12 0.007 0.080 14.49 5.3.11 0.010 0.050 14.39 5.3.10 0.017 0.070 13.96 5.3.9 0.007 0.053 14.04 5.3.8 0.007 0.077 14.04 5.3.7 0.003 0.077 13.96 5.3.6 0.020 0.053 14.02 5.3.5 0.010 0.047 13.84 5.3.4 0.003 0.057 13.87 5.3.3 0.010 0.043 13.69 5.3.2 0.010 0.043 13.57 5.3.1 0.003 0.053 13.50 5.3.0 0.003 0.053 13.64
preferences:dark mode live preview
141.79 ms | 1394 KiB | 7 Q