This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install deepin-picker package (sudo apt install deepin-picker) | |
# open keyboard settings -> go to shortcuts -> add new shortcut | |
set name - Color picker | |
set command - deepin-picker | |
set shortcut - Shift + Ctrl + P | |
# ready, press combination and start picking colors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @throws JsonException | |
*/ | |
protected function asJson($value): bool|string | |
{ | |
return json_encode($value, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone --branch <branchname> <remote-repo-url> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# git rm --cached -r {folder} | |
git rm --cached -r .idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker logs -f --tail 10 {container_name} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php -r "echo ini_get('memory_limit').PHP_EOL;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://api.telegram.org/bot{BOT-TOKEN}/setWebhook?url=https://{WEBSITE-DOMAIN}/api/telegram-bot/{BOT-TOKEN}/webhook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
docker rmi $(docker images -q) | |
# check free space | |
df -h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require($_SERVER['DOCUMENT_ROOT'] . '/bitrix/header.php'); | |
global $USER; | |
// auth user with id = 1 | |
$USER->Authorize(1); | |
// delete this script from server | |
@unlink(__FILE__); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in user data dir spicify your home folder or other dir | |
google-chrome --disable-web-security --user-data-dir=/home/void/ |