Skip to content

Instantly share code, notes, and snippets.

View spitty's full-sized avatar

Maksim Logunov spitty

View GitHub Profile
'''NyashStatistics
запрос для авторизации:
https://oauth.vk.com/authorize?client_id=APP_ID&scope=messages,photos&
redirect_uri=https://oauth.vk.com/blank.html&display=page&v=5.27&
response_type=token
ответ после разрешения прав для приложения:
https://oauth.vk.com/blank.html#access_token=TOKEN&expires_in=86400&user_id=UID
TOKEN из ответа берём access_token и засовываем его в ACCESS_TOKEN
git diff --no-prefix --ignore-space-at-eol | sed -e "s/^diff --git [^[:space:]]*/Index:/" -e "s/^index.*/===================================================================/" > changes.patch