$HOME/.vnc/
можно обнаружить файл xstartup
A shell script specifying X applications to be run when a VNC desktop is started.
If it doesn’t exist, vncserver will create a new one which runs a
couple of basic applications.
<?php
function getTags($strTag) {
return array_combine(
array_map(
fn($attribute) => array_shift(explode("=", $attribute)),
explode(" ", trim($strTag))
),
explode(" ", trim($strTag))
);
}
function getAttributes($strTag) {
return array_map(
fn($attribute) => array_pop(explode("=", $attribute)),
getTags($strTag)
);
}
preg_match_all('/(?<=\<img).*?(?=>)/', $this->html, $match, PREG_PATTERN_ORDER);
$this->tags = array_map(
fn($strTag) => [
"original" => "<img " . $strTag . ">",
"attributes" => getAttributes($strTag)
],
$match[0]
);
setTimeout(myFunction, 1000) // вызовет функцию myFunction через 1000 миллисекунд (1 сек)
setTimeout(myFunction, 60000) // вызовет через 10 минут
// Получить случайное число от 85 до 90 включительно
function getRandomNumber() {
return Math.floor(Math.random() * (90 - 85 + 1)) + 85;
}
// Отобразить случайное число на странице
function displayRandomNumber() {
const number = getRandomNumber();
document.getElementById("number").innerHTML = number;
}
// Перезагрузить страницу через 60 секунд
function reloadPage() {
setTimeout(function() {
location.reload();
}, 60 * 1000);
}
// Запустить код при загрузке страницы
window.onload = function() {
displayRandomNumber();
reloadPage();
};
<div id="number"></div>