You can use strace on a specific pid to figure out what a specific process is doing, e.g.:
strace -fp <pid>
You might see something like:
select(9, [3 5 8], [], [], {0, 999999}) = 0 (Timeout)
| <?php | |
| .. | |
| .. | |
| $cmd = 'docker build someimage'; | |
| $process = Process::fromShellCommandline($cmd); | |
| $process->setTimeout(0); | |
| $process->run(function ($type, $buffer) { | |
| if (Process::ERR === $type) { | |
| echo 'ERR > '.$buffer; |
| <?php | |
| $userRequest = $_GET['userRequest'] ?? null; | |
| $path = 'file' . $userRequest; | |
| if (file_exists($path)) { | |
| require_once($path); | |
| } else { | |
| echo 'File does not exist'; | |
| } |
| <?php | |
| class A { | |
| /** | |
| * @param $args | |
| */ | |
| public function methodIsCool($args) { | |
| var_dump($args); | |
| } |
| <?php | |
| namespace App; | |
| use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; | |
| use Symfony\Component\HttpFoundation\Response; | |
| use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface; | |
| use Psr\Log\LoggerInterface; | |
| class ExceptionListener { |
| <?php | |
| namespace App\Controller; | |
| use Symfony\Component\HttpFoundation\JsonResponse; | |
| use Symfony\Component\HttpFoundation\Response; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Symfony\Component\Routing\Annotation\Route; | |
| use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
| use Psr\Log\LoggerInterface; | |
| use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface; |
| console.log('SKIPYOUTUBE: before ready'); | |
| var skippedList = [ | |
| 'שלמה ארצי' | |
| ]; | |
| function run() { | |
| var videoName = $('#info-contents h1').text(); | |
| console.log('SKIPYOUTUBE: run started, videoName: ', videoName); | |
| if (!videoName) { | |
| setTimeout(run, 300); |
| <?php | |
| require 'vendor/autoload.php'; | |
| use \FFMpeg\Filters\Video\ExtractMultipleFramesFilter; | |
| /** | |
| * @param $fromUrl | |
| */ | |
| function getIGOriginalVideoUrl($fromUrl) { | |
| $html = file_get_contents($fromUrl); |
| # certbot-auto -n --agree-tos --email='my@email.com' certonly -a webroot --webroot-path=/var/www/html -d domain.com | |
| server { | |
| listen 80; | |
| server_name domain.com; | |
| location ~ /.well-known { | |
| allow all; | |
| root /var/www/html; | |
| } |