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. Создадим сервисный аккаунт: | |
yc iam service-account create --name service | |
2. Добавим роль нашему сервисному аккаунту: | |
yc resource-manager folder add-access-binding default \ | |
--role editor \ | |
--subject serviceAccount:<ID_SERVICE_ACCOUNT> | |
3. Создадим ключи доступа для аккаунта service: | |
yc iam access-key create --service-account-name service \ |
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
def GLOBALVAR="GLOBAL" | |
pipeline { | |
parameters { | |
choice(name:'CHOICE1', choices:["ALL", "NOTHING"], description: 'choices test') | |
string(name:"STRING1", defaultValue:"string default") | |
} | |
agent { node { label 'mac' } } | |
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 navio.aws import AWSCloudFormation, AWSLogs, AWSACM | |
from navio.builder import task, nsh, sh | |
aws_stack = dict() | |
aws_stack_ro = dict() | |
aws_stack_ro['vpc.dev'] = AWSCloudFormation( | |
profile_name='company.dev', | |
stack_name='Vpc' | |
) |
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
AWSTemplateFormatVersion: '2010-09-09' | |
Description: VPC Network Stack | |
Metadata: {} | |
Mappings: {} | |
Conditions: {} | |
Outputs: {} | |
Parameters: | |
CidrBlock: | |
AllowedPattern: '((\d{1,3})\.){3}\d{1,3}/\d{1,2}' | |
Default: 10.0.0.0/16 |
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
// Forked from https://gist.github.com/zaz600/b377834ef863de563bb1 | |
package main | |
import ( | |
"github.com/Syfaro/telegram-bot-api" | |
"log" | |
) | |
func main() { | |
// подключаемся к боту с помощью токена | |
bot, err := tgbotapi.NewBotAPI("ТОКЕН") |
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
#!/bin/bash | |
# | |
# /etc/rc.d/init.d/alertmanager | |
# | |
# Alertmanager for Prometheus. | |
# | |
# chkconfig: 2345 20 80 Read | |
# description: Alertmanager for Prometheus. | |
# processname: alertmanager |
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
#!/bin/bash | |
# | |
# /etc/rc.d/init.d/prometheus | |
# | |
# Prometheus monitoring server | |
# | |
# chkconfig: 2345 20 80 Read | |
# description: Prometheus monitoring server | |
# processname: prometheus |