Skip to content

Instantly share code, notes, and snippets.

@isanosyan
isanosyan / gist:a69947d434f3bfa4c3ea
Created February 3, 2016 16:59
list of features for InQuest VM
* files sharing
* ability to import DB from dev
* needs to be accessible with a hostname specified in `/etc/hosts`
@isanosyan
isanosyan / vkcom_audio_download.py
Last active May 16, 2017 17:57 — forked from st4lk/vkcom_audio_download.py
Python: vkontakte.ru (vk.com) audio music downloader
# -*- coding: utf-8 -*-
"""
Скрипт для скачивания музыки с сайта vkontakte.ru (vk.com)
Запуск:
python vkcom_audio_download.py
Принцип работы:
Скрипт проверяет сохраненный access_token. Если его нет или срок истек,
то открывается страница в браузере с запросом на доступ к аккаунту.
@isanosyan
isanosyan / Docker-debug
Created September 27, 2018 13:00 — forked from dainis-boumber/Docker-debug
Setup PyCharm IDE to remote debug code inside a Docker container using ssh
## IMPORTANT:
# Should work for any IDE that supports ssh but only tested on PyCharm
# These instructions are for systemd OS (Ubuntu 16.04 and up, Debian).
# For systems running upstart like 14.04, modify /etc/default/docker by adding DOCKER_OPTS
#
#
#
## First, we need to get Docker to accept ssh connections:
#
## Open /lib/systemd/system/docker.service
@isanosyan
isanosyan / gitlab-registry.gc.sh
Created September 27, 2018 16:08 — forked from eedugon/gitlab-registry.gc.sh
Manual garbage collector for gitlab registry, it removes old revisions that are not referenced by any tag
#!/bin/bash
# This is a modification of gitlab-gc.sh script created by Peter Bábics (pbabics/gitlab-gc.sh)
# Improvements
# - Searching in all BASE_PATH, not fixing the search to a depth of 2
# - Directories without valid tags or revisions directories won't be processed (to avoid unexpected issues)
# - Logging in case there's nothing to delete
# - running registry-garbage-collect only when something has been deleted
@isanosyan
isanosyan / _Instructions
Created October 13, 2018 19:18 — forked from benmccallum/_Instructions.md
nuxtjs, vue-bootstrap with custom bootstrap build
1. Install bootstrap as a dev dependency, and its dependencies (node-sass and sass-loader)
`npm install --save-dev bootstrap@4.0.0-beta.2 node-sass sass-loader`
2. Install nuxt plugin of bootstrap vue (includes bootstrap-vue as a dependency)
`npm install @nuxtjs/bootstrap-vue`
3. Register plugin as module in nuxt.config.js (see below)
4. Create app.scss entry point (see below)
@isanosyan
isanosyan / shell
Created July 27, 2019 10:24
shut up Microsoft Auto Update
/usr/bin/defaults write com.microsoft.autoupdate2 AcknowledgedDataCollectionPolicy RequiredDataOnly