Skip to content

Instantly share code, notes, and snippets.

View yeromin's full-sized avatar

Dima yeromin

View GitHub Profile
bundle exec jekyll serve (or "jekyll serve") - start the server
bundle exec jekyll serve -w (jekyll serve -w) - start the server with watching
jekyll serve --detach - new detached server
jekyll --version - список версий
gem update jekyll
--------------------
gem outdated - устаревшие
@yeromin
yeromin / z-shell
Created September 30, 2017 07:47
Z-shell, zsh, bash, command line
zsh --version
echo $SHELL
chsh -s $(which zsh)
$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" установка “Oh My ZSH!”
which gulp - откуда (из какой директории) запустился gulp
@yeromin
yeromin / multiple_ssh_setting.md
Created December 5, 2017 14:26 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@yeromin
yeromin / full width inside container.md
Last active March 1, 2018 09:36
full width inside container.md
width: 100vw;
margin-left: calc(50% - 50vw);
input
  &:active, &:focus
    transition: 0.35s ease
    color: #1d1d1d
    &::-webkit-input-placeholder
      transition: opacity 0.3s ease
      opacity: 0
    &::-moz-placeholder
 transition: opacity 0.3s ease
@yeromin
yeromin / all but not hovered.md
Created April 3, 2018 09:53
All elements, except hovered

Допустим, у нас эффект ховера на img. Тогда пишем для контейнера img-ов такое:

.wrap:hover img:not(:hover)
  -webkit-filter: grayscale(1)
  filter: grayscale(1)
  opacity: 0.75

и прописываем здесь все элементы, которые нам нужно изменить, когда в ховере только один.

Или еще пример:

        overflow: hidden
        text-overflow: ellipsis
        display: -webkit-box
        -webkit-line-clamp: 2
        -webkit-box-orient: vertical
@yeromin
yeromin / Docker.md
Last active October 31, 2018 21:21

Docker commands

docker-compose up
docker-compose up -d
docker-compose down && docker-compose up --build

docker system prune
/* make img wrapp square */
.kuGridView .klevuImgWrap{
  height: auto !important;
}

.kuGridView .klevuImgWrap::before {
  content: "";
  display: block;
 padding-bottom: 100%;
window.addEventListener('DOMContentLoaded', function() {
console.log('window - DOMContentLoaded - capture'); // 1st
}, true);
document.addEventListener('DOMContentLoaded', function() {
console.log('document - DOMContentLoaded - capture'); // 2nd
}, true);
document.addEventListener('DOMContentLoaded', function() {
console.log('document - DOMContentLoaded - bubble'); // 2nd
});
window.addEventListener('DOMContentLoaded', function() {