Ch | Hex | Dec | Description |
---|---|---|---|
⌫ | ⎋ |
⎋ |
Esc |
⏎ | ⏎ |
⏎ |
Enter |
⌘ | ⌘ |
⌘ |
Command |
⌥ | ⌥ |
⌥ |
Option |
⌃ | ⌃ |
⌃ |
Control |
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
--- | |
kind: command | |
args: | |
tokens: | |
- joke | |
- fun | |
action: | |
kind: rhai | |
args: | |
script: | |
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
# This script retrieves and saves information about MongoDB databases, | |
# collections, indexes, and explicitly defined schemas (if available) to an output file. | |
# | |
# Author: Aleksandr Shpak | |
# GitHub: https://github.com/shpaker | |
# Telegram: https://t.me/g33ks (Russian-language tech channel by the author) | |
# | |
# Installation: | |
# Ensure you have Python 3 and install the required packages: | |
# pip3 install click pymongo -U |
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
// var dp = new dpLib(); | |
// alert( | |
// "7 in = " + dp.i(7) + " px \n" + | |
// "16 cm = " + dp.cm(16) + " px \n" + | |
// "6 in = " + dp.i2cm(6) + " cm \n" + | |
// "15 cm = " + dp.cm2i(15) + " in \n" | |
// ); | |
function dpLib(debug) { | |
"use strict"; |
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
from os import path | |
from typing import Any, Callable, Optional | |
from _pytest.fixtures import SubRequest | |
from pytest import fixture | |
ALLURE_ENVIRONMENT_PROPERTIES_FILE = 'environment.properties' | |
ALLUREDIR_OPTION = '--alluredir' | |
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
cache: | |
type: 'files' | |
schedulers: | |
- listener: | |
type: 'rss' | |
params: | |
url: 'https://habr.com/ru/rss/all/all/?fl=ru' | |
transport: | |
type: 'telegram_bot' | |
params: |
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
ENCRYPTED_PASSWORD=$(openssl passwd -crypt secure_password) && \ | |
useradd --create-home \ | |
--groups sudo \ | |
--password ${ENCRYPTED_PASSWORD} \ | |
user1 |
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
# 1 | |
export USERNAME=${USER} | |
# 2 | |
su root | |
# 3 | |
apt update && apt install --yes sudo \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ |
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
// Calc DPI with JS | |
function dpLib(debug) { | |
"use strict"; | |
var div = document.createElement("div"); | |
div.style.width = "1in"; | |
div.style.position = "abolute"; | |
div.style.top = "-100%"; | |
div.style.bottom = "-100%"; | |
document.body.appendChild(div); | |
// |
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
""" Robot's listener v3 implementation | |
For more information see: | |
http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#listener-version-3 | |
""" | |
ROBOT_LISTENER_API_VERSION = 3 | |
def start_suite(suite, result): | |
""" Called when a test suite starts. |
NewerOlder