Skip to content

Instantly share code, notes, and snippets.

#apks
glob:*.apk
glob:*.ap_
# files for the dex VM
glob:*.dex
# Java class files
glob:*.class
@vkotovv
vkotovv / tmp_VqZVL.html
Created September 13, 2016 11:58
Sublime Text markdown plugin preview issue
<head><base href='file:///home/vadim/Desktop/'/></head><h1>Содержание</h1
@vkotovv
vkotovv / base.h
Created May 26, 2017 08:32
Undefine DMLC_LOG_STACK_TRACE for dmlc-core
/*!
* \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__))
#define DMLC_LOG_STACK_TRACE 1
#undef DMLC_LOG_STACK_TRACE
#endif
@vkotovv
vkotovv / gist:d82ca74f2dc001a531cedd8ce0bece50
Last active August 1, 2017 11:31
Jenkins.io make prepare issue
$ make prepare
./scripts/ruby bundle install --path=vendor/gems
Unable to find image 'source/jenkins.io:latest' locally
docker: Error response from daemon: repository source/jenkins.io 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
vkotovv / gist:ffb31539923be69aa960fb596bb5faf1
Created April 24, 2018 08:44
Vagrant git-sh make install
[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
vkotovv / app.py
Created August 20, 2013 14:08
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
session.execute(table.delete())
session.commit()