Skip to content

Instantly share code, notes, and snippets.

View nav-mike's full-sized avatar

Mikhail Navrotskii nav-mike

View GitHub Profile
@nav-mike
nav-mike / .vimrc
Last active August 1, 2021 12:56
my .vimrc
syntax on
set exrc
set guicursor=
set tabstop=2 softtabstop=2
set shiftwidth=2
set expandtab
set smartindent
set nu
set nowrap
@nav-mike
nav-mike / config.fish
Last active September 8, 2016 10:19
My ~/.config/fish/config.fish file
# git config
alias gp='git pull'
alias gst='git stash'
alias gstp = 'git stash pop'
alias gbranch='git rev-parse --abbrev-ref HEAD' #get current branch name
alias gps='git push'
#commit
function gc
git commit -m "$argv"
#!/bin/bash
echo 'Restart ibus-daemon has been started...'
ibus-daemon -rd
echo 'Restart ibus-daemon has been finished...'
* [Процессор - INTEL Core i5 6600](https://www.citilink.ru/catalog/computers_and_notebooks/parts/cpu/357602/)
* [Материнская плата - MSI Z170-A PRO](https://www.citilink.ru/catalog/computers_and_notebooks/parts/motherboards/380320/)
* [Блок питания - AEROCOOL VP-750](https://www.citilink.ru/catalog/computers_and_notebooks/parts/powersupply/637795/)
* [Видеокарта - ASUS GeForce GTX 960](https://www.citilink.ru/catalog/computers_and_notebooks/parts/videocards/305389/)
* [Жесткий диск - TOSHIBA DT01ACA100](https://www.citilink.ru/catalog/computers_and_notebooks/hdd/hdd_in/697256/)
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@nav-mike
nav-mike / docker.md
Last active May 3, 2021 07:12
Использование docker compose с rails

Использование docker compose с rails + postgresql

Настройка проекта

Прежде чем начать, убедитесь, что у вас установлен docker и docker-compose, если же нет, то используйте ссылки в конце документа.

Для использования docker в своем проекте, первое, что нужно сделать, это добавить Dockerfile. Этот файл описывает процесс сборки контейнера для вашего проекта. В нем указываются настройки сборки и инструкции для установки зависимостей.

Пример такого файла для простого rails-проекта:

@nav-mike
nav-mike / rails http status codes
Created October 27, 2020 14:07 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing