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
// 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
rem author https://github.com/shpaker | |
@echo off | |
:main | |
echo [1] Start Wi-Fi network | |
echo [2] Stop Wi-Fi network | |
echo [3] Restart Wi-Fi network | |
echo [4] Config Wi-Fi network (require administrator privileges) | |
echo [0] Exit |
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
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
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
""" 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. |
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
import random | |
from typing import List | |
from jinja2 import Template | |
SVG_TEMPLATE = Template("""<?xml version="1.0"?> | |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | |
<svg xmlns="http://www.w3.org/2000/svg" width="467" height="462"> | |
{% for y_i, dots in enumerate(dots_data) %}{% for x_i, dot in enumerate(dots) %} | |
<rect x="{{ x_i * w_size }}" |
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
cache: | |
type: 'files' | |
schedulers: | |
- listener: | |
type: 'rss' | |
params: | |
url: 'https://habr.com/ru/rss/all/all/?fl=ru' | |
transport: | |
type: 'telegram_bot' | |
params: |
OlderNewer