What went down
Linux /var/mail/mail
Created Sep 21, 2021, 10:58:30 AM

Standartne sa posiela vystup cronov do suboru


Vypnutie je mozne cez doplnenie:

>/dev/null 2>&1

na koniec skriptu / cronu

Linux x11vnc
Created Sep 9, 2021, 6:56:20 PM

v command line spustit:


nasledne vybrat okno, zistit jeho ID a spustit prikaz:

x11vnc -id 0x3000005

Created Jul 13, 2021, 3:33:44 PM
Disable / enable swap
Created Jul 9, 2021, 6:55:59 PM

sudo swapoff -a

sudo swapon -a

Lets encrypt
Created Jul 6, 2021, 8:13:57 AM
Created Jul 6, 2021, 8:01:16 AM
[practical] AMP
Created Apr 25, 2021, 10:27:27 PM

What I want Want AMP version for articles. Maybe discussion or other text, not changing entries.

Quick ideas Because AMP has different tag set, i should have different layout for AMP version. AMP links should be different too. I dont want to send query parameter in URL (like ?amp=1), I

[practical] PSALM
Created Apr 25, 2021, 10:25:37 PM

What i want

Want to find possible bugs in new controllers i included into psalm static analysis.


I included several new files to analysis and result is

142 errors found
Psalm can automatically fix 8 is
Public localhost
Created Oct 26, 2020, 11:37:42 AM


Simple way to show your localhost content to your clients. ...

simple as:

./ngrok http ... ...

Limited free usage, but still good for normal usage.

Then just copy ngrok url and send to clie

Goutte - proxy
Created Oct 26, 2020, 11:35:59 AM

Is case you need to download web page data...

$data = file_get_contents(' ...

$rows = explode("\n", $data); // save it to DB or file...

$client = new Client(HttpClient::create(['timeout' => 60, 'proxy' => $rows[