Skip to content

Instantly share code, notes, and snippets.

@ExplorerOL
ExplorerOL / gist:83262b971aa72acebb8bf5ac577bd146
Last active January 19, 2024 12:41
Script for installing deb-package with interactive inputs in automatic mode. Скрипт для установки deb-пакета с интерактивным вводом в автоматическом режиме.
# If you have a deb package, which prompts for inputs, and you need to install it in automatic mode (for example in CI)
# you can do it following way:
echo -e "input_1 \n input_2 \n input_3 \n input_5 \n /opt/lib/some_file" | sudo dpkg -i package_name.deb
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';