Skip to content

Instantly share code, notes, and snippets.

Vadim Kotov vkotovv

Block or report user

Report or block vkotovv

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
vkotovv /
Created Aug 20, 2013
Clear data for all tables via flask-sqlalchemy
def clear_data(session):
meta = db.metadata
for table in reversed(meta.sorted_tables):
print 'Clear table %s' % table
View gist:ffb31539923be69aa960fb596bb5faf1
[vagrant@localhost git-sh]$ sudo make install
install -d "/usr/local/bin"
install -m 0755 git-sh "/usr/local/bin/git-sh"
install -d "/usr/local/share/man/man1"
install -m 0644 git-sh.1.roff "/usr/local/share/man/man1/git-sh.1"
vkotovv / gist:d82ca74f2dc001a531cedd8ce0bece50
Last active Aug 1, 2017 make prepare issue
View gist:d82ca74f2dc001a531cedd8ce0bece50
$ make prepare
./scripts/ruby bundle install --path=vendor/gems
Unable to find image 'source/' locally
docker: Error response from daemon: repository source/ not found: does not exist or no pull access.
See 'docker run --help'.
Makefile:45: recipe for target 'depends-ruby' failed
make: *** [depends-ruby] Error 125
vkotovv / base.h
Created May 26, 2017
Undefine DMLC_LOG_STACK_TRACE for dmlc-core
View base.h
* \brief Wheter to print stack trace for fatal error,
* enabled on linux when using gcc.
#if (!defined(DMLC_LOG_STACK_TRACE) && defined(__GNUC__) && !defined(__MINGW32__))
vkotovv / tmp_VqZVL.html
Created Sep 13, 2016
Sublime Text markdown plugin preview issue
View tmp_VqZVL.html
<head><base href='file:///home/vadim/Desktop/'/></head><h1>Содержание</h1
View .hgignore
# files for the dex VM
# Java class files
You can’t perform that action at this time.