Skip to content

Instantly share code, notes, and snippets.

View bak1an's full-sized avatar
🇺🇦

Anton Baklanov bak1an

🇺🇦
View GitHub Profile
diff --git a/tests/test_sqlite.py b/tests/test_sqlite.py
index c04ef97..14c5da6 100644
--- a/tests/test_sqlite.py
+++ b/tests/test_sqlite.py
@@ -22,9 +22,26 @@ DATABASES = {
}
SECRET_KEY = "django_tests_secret_key"
-# To speed up tests under SQLite we use the MD5 hasher as the default one.
+# To speed up tests under SQLite we use the MD5 hasher as the default one.
localhost.localdomain - - [05/May/2013 22:53:53] "GET /ext/pypi/simple/ HTTP/1.0" 200 726
Traceback (most recent call last):
File "/home/pypi/devpi/bin/bottle.py", line 764, in _handle
return route.call(**args)
File "/home/pypi/devpi/bin/bottle.py", line 1575, in wrapper
rv = callback(*a, **ka)
File "/home/pypi/devpi/lib/python2.6/site-packages/devpi_server/views.py", line 33, in extpypi_simple
result = self.extdb.getreleaselinks(projectname)
File "/home/pypi/devpi/lib/python2.6/site-packages/devpi_server/extpypi.py", line 221, in getreleaselinks
releaselinks = list(result.releaselinks)
@bak1an
bak1an / .hgrc
Last active December 17, 2015 01:09
[ui]
username = Anton Baklanov <[email protected]>
[extensions]
color =
convert =
graphlog =
hgext.rebase =
pager =
progress =
@bak1an
bak1an / .guile
Created May 27, 2013 23:17
~/.guile
(use-modules (ice-9 readline))
(activate-readline)
(debug-set! stack 1000000)
@bak1an
bak1an / buid.gradle
Created September 23, 2013 16:16
parent project build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.6'
classpath files('gradle/gradle-testflight-plugin-0.1.jar')
classpath 'org.codehaus.groovy.modules.http-builder:http-builder:0.6'
classpath 'org.apache.httpcomponents:httpmime:4.2.5'
@bak1an
bak1an / buid.gradle
Created September 23, 2013 16:18
application build.gradle
apply plugin: 'android'
apply plugin: 'testflight'
android {
compileSdkVersion 17
buildToolsVersion '17'
}
dependencies {
compile project(':lib:library')
@bak1an
bak1an / gist:6673036
Created September 23, 2013 16:20
stacktrace
* Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating project ':app:application'.
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:54)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:131)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:38)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:25)
at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34)
at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:55)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:469)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:77)
@bak1an
bak1an / runjenkins.sh
Created October 2, 2013 11:35
silly jenkins start-stop scripts
#!/bin/sh
cd %JENKINS_DIR%
nohup java -jar jenkins.war --httpListenAddress=127.0.0.1 --httpPort=12121 > jenkins.log 2>&1 & echo $! > jenkins.pid
import time
import threading
def stacktraces():
code = []
for threadId, stack in sys._current_frames().items():
code.append("\n# ThreadID: %s" % threadId)
for filename, lineno, name, line in traceback.extract_stack(stack):
code.append('File: "%s", line %d, in %s' % (filename, lineno, name))
if line:
@bak1an
bak1an / sphinx-err-1A4szw.log
Created February 10, 2014 14:06
docs build error
# Sphinx version: 1.2b1
# Python version: 2.7.5
# Docutils version: 0.10 release
# Jinja2 version: 2.7
Traceback (most recent call last):
File "/home/bak1an/.virtualenvs/django27/lib/python2.7/site-packages/sphinx/cmdline.py", line 247, in main
app.build(force_all, filenames)
File "/home/bak1an/.virtualenvs/django27/lib/python2.7/site-packages/sphinx/application.py", line 211, in build
self.builder.build_update()
File "/home/bak1an/.virtualenvs/django27/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 211, in build_update