NiftyCent.com
NiftyCent.com
NiftyCent
US
   
Ideas
 
What went down
Linux /var/mail/mail
Created Sep 21, 2021, 10:58:30 AM

Standartne sa posiela vystup cronov do suboru

/var/mail/mail

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:

xwininfo

nasledne vybrat okno, zistit jeho ID a spustit prikaz:

x11vnc -id 0x3000005

OpenAPI
Created Jul 13, 2021, 3:33:44 PM
__nc_you_dont_have_access_to_this_article
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
__nc_you_dont_have_access_to_this_article
Commands
Created Jul 6, 2021, 8:01:16 AM
__nc_you_dont_have_access_to_this_article
[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.

Progress

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

Ngrok

Simple way to show your localhost content to your clients.

ngrok.com/ ...

simple as:

./ngrok http -host-header=www.localhost-domain.com ... www.localhost-domain.com/ ...

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('raw.githubusercontent.com/clarketm/ ...

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

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