Skip to content

Instantly share code, notes, and snippets.

@ivanhub
ivanhub / remove_idea
Created October 4, 2017 08:48 — forked from wpupru/remove_idea
Как удалить папку .idea и лишние файлы из Git
Как удалить папку .idea и лишние файлы из Git
Все делаем в MINGW64
Удаляем ненужные папки и файлы при синхронизации в Git репозиторий
Прежде всего добавим файл .gitignore в корень проекта:
touch .gitignore
@ivanhub
ivanhub / Gists for SublimeText3
Created October 4, 2017 08:50 — forked from wpupru/Gists for SublimeText3
Настройка GitHub Gist в sublime text 3
Настройка GitHub Gist в sublime text 3
Первым делом нам нужно сгенерировать token.
Переходим на свой гитхаб, идем в settings и там в пункте Applications жмем Generate new token
Далее называем его как угодно и выбираем только один пункт gist и жмем генерировать.
Теперь устанавливаем полученный token в preferences => Package Settings => Gits => Settings-Default
Вторым пунктом, настраиваем комбинацию клавиш
Переходим preferences => Package Settings => Gits => Key Bindings-user
И изменяем как нам удобно, вот мой пример
@ivanhub
ivanhub / git_ignore
Last active April 10, 2019 13:57 — forked from wpupru/git_ignore
Git создание глобального игнора
git config --global core.excludesfile ~/.gitignore_global
--
Для начала создаем в любом месте вашей системы файл .gitignore_global (имя файла, как и его расположение также может быть абсолютно любым) и добавляем в него ресурсы, которые будут игнорироваться по-умолчанию, например вышеназванная папка .idea. Чтобы Git узнал о вашем намерении игнорировать эти ресурсы глобально, необходимо в командной строке запустить следующую команду:
git config --global core.excludesfile "/path/to/your/.gitignore_global"
Чтобы посмотреть список файлов, для которых включено глобальное игнорирование, достаточно запустить следующую команду:
git config --global core.excludesfile
// Bootstrap Mid-Small - col-ms-* - the missing grid set for Bootstrap3.
//
// This is a hack to fill the gap between 480 and 760 pixels - a missing range
// in the bootstrap responsive grid structure. Use these classes to style pages
// on cellphones when they transition from portrait to landscape.
//
// NOTE: Here I use SASS instead of LESS for styling. To convert to LESS
// replace '$screen' with '@screen' and '$grid' with '@grid'.
//
// See https://github.com/twbs/bootstrap/issues/10203 for more info.
.col-ms-1,
.col-ms-2,
.col-ms-3,
.col-ms-4,
.col-ms-5,
.col-ms-6,
.col-ms-7,
.col-ms-8,
.col-ms-9,
.col-ms-10,
@ivanhub
ivanhub / encrypted-git-repo.md
Created November 7, 2017 09:31
Transparent Git Encryption

Transparent Git Encryption

This document has been modified from its [original format][m1], which was written by Ning Shang (geek@cerias.net). It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].

Description

When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes

@ivanhub
ivanhub / frontendDevlopmentBookmarks.md
Created November 7, 2017 09:45 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@ivanhub
ivanhub / git_newrepo
Created December 7, 2017 07:37 — forked from c0ldlimit/git_newrepo
Git: Push a new or existing repo to Github
# Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/c0ldlimit/vimcolors.git
git push -u origin master
# Push an existing repository from the command line
@ivanhub
ivanhub / git-clearHistory
Created April 1, 2019 07:00 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
@ivanhub
ivanhub / html-languages.txt
Created April 11, 2019 14:30 — forked from JamieMason/html-languages.txt
HTML lang attribute / ISO language code reference / Culture names
CULTURE SPEC.CULTURE ENGLISH NAME
--------------------------------------------------------------
Invariant Language (Invariant Country)
af af-ZA Afrikaans
af-ZA af-ZA Afrikaans (South Africa)
ar ar-SA Arabic
ar-AE ar-AE Arabic (U.A.E.)
ar-BH ar-BH Arabic (Bahrain)
ar-DZ ar-DZ Arabic (Algeria)
ar-EG ar-EG Arabic (Egypt)