This file contains hidden or 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
{ | |
"folderId": "b1g4pjfti5fqa7vh4967", | |
"texts": ["Hello", "World"], | |
"targetLanguageCode": "ru" | |
} |
This file contains hidden or 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
export API_TOKEN=AQVNzZ5HyuZo1_dljl1sV6RDDcqF1J4XeVf6VKB3 | |
curl -X POST \ | |
-H "Content-Type: application/json" \ | |
-H "Authorization: Bearer ${API_TOKEN}" \ | |
-d '@body.json' \ | |
"https://translate.api.cloud.yandex.net/translate/v2/translate" |
This file contains hidden or 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
--- | |
created: 2021-08-22T09:59:39 (UTC +03:00) | |
source: https://man7.org/linux/man-pages/man5/ssh_config.5.html | |
author: Ivan Yastrebov | |
--- | |
# ssh_config(5) - Страница руководства по Linux | |
--- | |
___ |
This file contains hidden or 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 file contains hidden or 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
cat > ${filename}.html <<ZZZ | |
pass | |
ZZZ |
This file contains hidden or 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
#!/usr/bin/sudo bash | |
apt update -y && apt upgrade -y | |
git config --global user.email "easy-quest@mail.ru" | |
git config --global user.name "Ivan Yastrebov" | |
curl -L https://packagecloud.io/gbt/release/gpgkey | sudo apt-key add - | |
echo 'deb https://packagecloud.io/gbt/release/ubuntu/ xenial main' | sudo tee /etc/apt/sources.list.d/gbt.list >/dev/null | |
sudo apt-get update |
This file contains hidden or 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
#!/bin/bash | |
USER=$(whoami) | |
echo "Killing VNC Server" | |
echo -n "Enter port number which you want to kill (Example: 3): " | |
read pt | |
echo " " | |
echo "Killing port $pt" | |
vncserver -kill :$pt | |
rm -rf /tmp/.X$pt-lock |
This file contains hidden or 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
#!/bin/bash | |
export USER=$(whoami) | |
HEIGHT=0 | |
WIDTH=0 | |
CHOICE_HEIGHT=5 | |
BACKTITLE="EasyQuest Выбор разрешения" | |
TITLE="vncserver-start" | |
MENU="Выберите один из следующих вариантов:" | |
export PORT=1 |
This file contains hidden or 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
#! python3 | |
# backupToZip.py | |
# Copies an entire folder and its contents into | |
# a zip file whose filename increments. | |
import zipfile, os | |
def backupToZip(folder): | |
# Резервное копирование всего содержимого в ZIP-файл. |