Skip to content

Instantly share code, notes, and snippets.

📣 My goal: upgrading business projects, DevOps

Vladimir Pavlychev vovs03

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

GOPATH for Terraform testing

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


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

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

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

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

Jfr0s @Jfr0s



View gitlab-conf.yaml
- .for_all
- .with_node
stage: deploy-hotfix
- подготовка окружения
- основные скрипты
vovs03 / Traffic-lights-6.rb
Created Sep 22, 2019
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 /
Created Sep 4, 2019 — forked from mattlewissf/
Lightning Talk: Git add -p

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