Skip to content

Instantly share code, notes, and snippets.

View VMashanov's full-sized avatar

Vitaly Mashanov VMashanov

View GitHub Profile
@VMashanov
VMashanov / gist:cfec0523d441ceee4bf9
Last active February 4, 2016 11:36
Методы и модуль для работы с Яндекс.Метрика
def get_oauth_token
code = params['code']
data = {
grant_type: 'authorization_code',
client_id: YA_CONFIG[:yandex_app_id],
client_secret: YA_CONFIG[:yandex_app_password],
code: code
}
response = RestClient.post "https://oauth.yandex.ru/token", data, content_type: 'application/x-www-form-urlencoded'
render json: response
Общие настройки
--------------------------------------------------------------------------------------------
{
"bold_folder_labels": true,
"caret_style": "wide",
"color_scheme": "Packages/User/SublimeLinter/Monokai Bright (SL).tmTheme",
"default_encoding": "UTF-8",
"default_line_ending": "unix",
"ensure_newline_at_eof_on_save": true,
"font_size": 8,
@VMashanov
VMashanov / gist:f92697b3f7e2b17f09930e2066836214
Created January 26, 2018 10:50 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@VMashanov
VMashanov / when need make hidden block in markdown
Created December 5, 2018 11:53
when need make hidden block in markdown
Результат запроса
<details>
<summary>Посмотреть</summary>
<p>
```
```
@VMashanov
VMashanov / ubuntu_agnoster_install.md
Created April 2, 2019 06:49 — forked from renshuki/ubuntu_agnoster_install.md
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH