Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
📣 My goal: upgrading business projects, DevOps

Vladimir Pavlychev vovs03

💭
📣 My goal: upgrading business projects, DevOps
View GitHub Profile
@vovs03
vovs03 / gopath_terraform.md
Last active Nov 6, 2020
Как настроить окружение GOLAND для тестирования Terraform?
View gopath_terraform.md

GOPATH for Terraform testing

А будет ли пример по написанию тестов(или есть ли такой) для терраформ-кода? ("т.к. тесты пишутся на GOLANG, то предлагается хранить проекты по указанному пути $GOPATH/src/<your_project>" иначе тесты не запустить.)

🅰️

(Второй возникающий вопрос:

@vovs03
vovs03 / README.md
Last active Oct 15, 2020
Blender 3D
View README.md
@vovs03
vovs03 / docker-compose-version.md
Created Aug 11, 2020
Какую API версию docker compose использовать?
@vovs03
vovs03 / COVID19_INFO_bot.md
Last active Apr 7, 2020
В телеграм боте выполняются две функции одновременно. Что делать? (Python)
View COVID19_INFO_bot.md

В телеграм боте выполняются две функции одновременно. Что делать?

Вопрос - ссылка

Jfr0s @Jfr0s

python

PYTHON TELEGRAM БОТЫ

View gitlab-conf.yaml
front:deploy:
extends:
- .for_all
- .with_node
stage: deploy-hotfix
before_script:
- подготовка окружения
script:
- основные скрипты
artifacts:
@vovs03
vovs03 / Traffic-lights-6.rb
Created Sep 22, 2019
Traffic-light-plus-arrow
View Traffic-lights-6.rb
a = ['Green', 'Yellow', 'Red']
b = ['Red', 'Green']
c = ['Green', 'Yellow', 'Red', 'Rigth-arrow']
variant =[a, b, c]
txt = "Use variant "
def switch_color(variant)
10.times do
puts variant.sample
# sleep 5
View elevator-emulator.rb
# task get 2019-09-22 11:36
View traffic-lights.rb
# Эмулятор работы светофора:
# Переключение рандомного цвета
# с интервалом через 5 секунд.
puts "Traffic-light is works!"
puts ""
sleep 2
def switch_color
light = ['Green', 'Yellow', 'Red']
10.times do
@vovs03
vovs03 / add-p.md
Created Sep 4, 2019 — forked from mattlewissf/add-p.md
Lightning Talk: Git add -p
View add-p.md

git add -p is your friend

git add -p is basically "git add partial (or patch)"

Patch mode allows you to stage parts of a changed file, instead of the entire file. This allows you to make concise, well-crafted commits that make for an easier to read history. This feature can improve the quality of the commits. It also makes it easy to remove parts of the changes in a file that were only there for debugging purposes - prior to the commit without having to go back to the editor.

It allows you to see the changes (delta) to the code that you are trying to add, and lets you add them (or not) separately from each other using an interactive prompt. Here's how to use it:

from the command line, either use

  • git add -p