I hereby claim:
- I am dinamic on github.
- I am nikola_petkanski (https://keybase.io/nikola_petkanski) on keybase.
- I have a public key whose fingerprint is 7F19 D197 4B10 568F 986E CD32 65C5 2A9A 9B85 66F3
To claim this, I am signing this object:
# strace all processes with a similar process name | |
ps auxw | grep sbin/apache | awk '{print"-p " $2}' | xargs strace | |
FROM php:8.3-bookworm | |
RUN apt update -q && apt upgrade -y \ | |
&& apt-get install -y build-essential git libnode-dev | |
RUN cp -s /usr/lib/`uname -m`-linux-gnu/libv8* /usr/local/lib/ \ | |
&& cp -rs /usr/include/node/* /usr/local/include/ | |
# TODO: Use PECL |
#!/bin/bash | |
### | |
# Cloudflare API DDNS update script | |
# Heavily inspired by https://gist.github.com/lifehome/eb3f7d798f9bc6720cdc7d2be1238d4f | |
# | |
# Requirements: jq, curl | |
### | |
auth_token="XXXXXXXXXXXXXXX" # Token generated from "My profile > API Tokens" |
<?php | |
declare(strict_types=1); | |
namespace Petkanski\Component\ProcessManager\Service; | |
use LogicException; | |
use Swoole\Process; | |
use Swoole\Table; | |
/** |
<?php | |
$folder = __DIR__ .'/FOUND.000'; | |
$dir = new DirectoryIterator($folder); | |
$map = array( | |
'application/vnd.ms-excel' => 'xls', | |
'application/msword' => 'doc', | |
'application/zip' => 'zip', |
<?php | |
$folder = __DIR__ .'/FOUND.000'; | |
$dir = new DirectoryIterator($folder); | |
$map = array( | |
'application/vnd.ms-excel' => 'xls', | |
'application/msword' => 'doc', | |
'application/zip' => 'zip', |
I hereby claim:
To claim this, I am signing this object:
<?php | |
ini_set('display_errors', 'On'); | |
error_reporting(E_ALL); | |
$item = array ('amount' => 1.2); | |
$data = array ('items' => array(&$item)); | |
// ... | |
$item['amount'] = 1123.23; |
<?php | |
class MySoapServer | |
{ | |
public function createItem(array $items, $calculate) | |
{ | |
return 'Output is: '. json_encode(func_get_args()); | |
} | |
} |
/** | |
* @When I scroll :elementId into view | |
*/ | |
public function scrollIntoView($elementId) { | |
$function = <<<JS | |
(function(){ | |
var elem = document.getElementById("$elementId"); | |
elem.scrollIntoView(false); | |
})() | |
JS; |