Skip to content

Instantly share code, notes, and snippets.

📣 My goal: upgrading business projects, DevOps

Vovs Rubychief vovs03

📣 My goal: upgrading business projects, DevOps
Block or report user

Report or block vovs03

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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
vovs03 /
Last active Feb 13, 2019
Борьба со входом в ОС Linux Mint 19 (после зависания компа)

ИКСЫ не принимают логин и пароль

2019-02-13 Уже 6 дней как в подвешенном состоянии (система не пашет) После зависания Экран приветствия стал в мелкую сеточку точками разлинован сами обои рабочего стола пользователя. И логин.пароль не принимается

Менял пароль, та же история. Пробовал через tty5 заходить - проблемы с работоспособностью команд(скриптов)

исправил, благодаря подсказке в irc-чате русском линукс-минте.

vovs03 / .bashrc
Created Jan 30, 2019
Settings ~/.bashrc
View .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
vovs03 / gpu-61c(sensors).md
Last active Dec 7, 2018
Насторожило gpu =61C
View gpu-61c(sensors).md

gpu = 61C problem...

~ inxi -F
System:    Host: osart-011 Kernel: 4.15.0-42-generic x86_64 bits: 64 Desktop: Cinnamon 3.8.9
           Distro: Linux Mint 19 Tara
Machine:   Device: desktop Mobo: Gigabyte model: P35-S3 v: x.x serial: N/A BIOS: Award v: F4 date: 06/29/2007
CPU:       Dual core Intel Core2 Duo E6850 (-MCP-) cache: 4096 KB
           clock speeds: max: 3000 MHz 1: 1999 MHz 2: 1999 MHz
Graphics:  Card: NVIDIA GT218 [GeForce 210]
vovs03 /
Created Dec 3, 2018
Full install CHORDPRO log

Full install CHORDPRO log

2018-12-03 osart-011 Vladimir Pavlychev

➜  ~ sudo cpan install wxchordpro
[sudo] password for keyjoo: 
Loading internal null logger. Install Log::Log4perl for logging messages
vovs03 /
Last active Nov 16, 2018
Check Palindrome [Ruby]


For inputString = "aabaa", the output should be
checkPalindrome(inputString) = true;
For inputString = "abac", the output should be
checkPalindrome(inputString) = false;
For inputString = "a", the output should be
checkPalindrome(inputString) = true.


You can’t perform that action at this time.