Skip to content

Instantly share code, notes, and snippets.

View jeschkies's full-sized avatar

Karsten Jeschkies jeschkies

View GitHub Profile
@jeschkies
jeschkies / main
Created December 9, 2013 08:57
Is used to demonstrate a malformed database schema bug in Slick and SQLite3.
import java.io.File
import scala.slick.driver.SQLiteDriver.simple._
import Database.threadLocalSession
//Define database schema
case class Article(id: Long, title: String, text: String)
object Articles extends Table[Article]("ARTICLES") {
def id = column[Long]("ID", O.PrimaryKey)
@jeschkies
jeschkies / SMOTE.py
Last active March 29, 2016 20:05
SMOTE implementation extracted from NYAN (https://github.com/blacklab/nyan/blob/master/shared_modules/smote.py), my Master's thesis project.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
The MIT License (MIT)
Copyright (c) 2012-2013 Karsten Jeschkies <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
@jeschkies
jeschkies / Makefile
Created May 8, 2016 20:36
Example dependency management with Make
#…
bootstrap: vendor/.last-build
# run bootstrap before building anything
*.o **/*.o: | bootstrap
clean:
rm -rf *.o lib/*.o test_assimp *.dSYM *.gcov *.gcno *.gcda genfiles $(BINS)
distclean: clean
@jeschkies
jeschkies / failing_test.log
Created January 26, 2017 15:51
Logs for failing AppDeployIntegrationTest
This file has been truncated, but you can view the full file.
WARN [16:18:12 AppDeployIntegrationTest-MesosLocal-55604] I0126 16:18:12.302304 191266816 gc.cpp:55] Scheduling '/var/folders/2_/2my5s2y51r5g9k985f6y4zf40000gn/T/mesos-local5753428597259115207/0/meta/slaves/7cefaf75-2a86-4721-aef1-0cb0e2f79ae9-S0/frameworks/7cefaf75-2a86-4721-aef1-0cb0e2f79ae9-0000/executors/app-e108db44-f2a3-4de2-9777-60cc6b17d7be.a60156c3-e3da-11e6-ada8-62733a4816b1/runs/642a2703-2506-42ea-973d-06c3345c120f' for gc 6.99999650254519days in the future
WARN [16:18:12 AppDeployIntegrationTest-MesosLocal-55604] I0126 16:18:12.302335 191266816 gc.cpp:55] Scheduling '/var/folders/2_/2my5s2y51r5g9k985f6y4zf40000gn/T/mesos-local5753428597259115207/0/meta/slaves/7cefaf75-2a86-4721-aef1-0cb0e2f79ae9-S0/frameworks/7cefaf75-2a86-4721-aef1-0cb0e2f79ae9-0000/executors/app-e108db44-f2a3-4de2-9777-60cc6b17d7be.a60156c3-e3da-11e6-ada8-62733a4816b1' for gc 6.99999650187556days in the future
INFO [16:18:12 AppDeployIntegrationTest] CLEAN UP finished !!!!!!!!!
DEBUG[16:18:12 AppDeployIntegrationTest-LocalMarath

Keybase proof

I hereby claim:

  • I am jeschkies on github.
  • I am jeschkies (https://keybase.io/jeschkies) on keybase.
  • I have a public key ASDf98_hkRhVefRs40ehz8yww6men2bX5yMy6Ag3sGLN7Qo

To claim this, I am signing this object:

@jeschkies
jeschkies / logs.txt
Last active October 20, 2017 09:30
A showcase of pipenv installing the wrong dependencies.
system in pipenv-test/
› ls
system in pipenv-test/
› python --version
Python 3.5.2
system in pipenv-test/
› pipenv --three install -e git+https://github.com/jeschkies/shakedown.git#egg=dcos-shakedown
Virtualenv already exists!
@jeschkies
jeschkies / Pipfile.lock
Created October 23, 2017 10:22
Pipenv lock outputs.
{
"_meta": {
"hash": {
"sha256": "81b0f809f8f6b732910ed86c2df41c3732ba3eaed1d5c3fa82ddffbde20d5d00"
},
"host-environment-markers": {
"implementation_name": "cpython",
"implementation_version": "3.5.2",
"os_name": "posix",
"platform_machine": "x86_64",
asn1crypto==0.23.0
bcrypt==3.1.4
certifi==2017.7.27.1
cffi==1.11.2
chardet==3.0.4
click==6.7
cryptography==2.0.2
dcos==0.5.5
-e git+https://github.com/jeschkies/shakedown.git@012841a38a59d00043c15a66400501811715ab86#egg=dcos_shakedown
dcoscli==0.5.5
@jeschkies
jeschkies / heroku_deploy.log
Created November 12, 2017 19:22
Log output for Heroku dpeloyment.
git push heroku master
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: -----> Installing python-3.6.2
remote: -----> Installing pip
remote: -----> Installing requirements with pip
remote: Collecting Babel>=2.5 (from -r /tmp/build_ec04ea75b01ab792c37bfba5e22f78c6/requirements.txt (line 1))
remote: Downloading Babel-2.5.1-py2.py3-none-any.whl (6.8MB)
struct RecordIoConnection {
buf: BytesMut,
body: hyper::Body,
}
impl RecordIoConnection {
pub fn connect(url: &str, buf_sz: usize) -> FutureResponse<Item=RecordIoConnection, Error=hyper::error::Error> {
let response = create_hyper_get();