Skip to content

Instantly share code, notes, and snippets.

bro@bro-laptop:~/devilry/devilry/core$ mvn -e test
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Devilry :: core
[INFO] task-segment: [test]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] ------------------------------------------------------------------------
bro@bro-laptop:~/devilry/devilry/source$ git push
To [email protected]:espenak/devilry.git
! [rejected] master -> master (non-fast forward)
error: failed to push some refs to '[email protected]:espenak/devilry.git'
bro@bro-laptop:~/devilry/devilry/source$ git status
# On branch master
# Your branch and 'origin/master' have diverged,
# and have 4 and 5 different commit(s) each, respectively.
#
# Changes to be committed:
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error while executing forked tests.; nested exception is org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineException: Error setting up environmental variables
java.io.IOException: error=12, Cannot allocate memory
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error while executing forked tests.; nested exception is org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineException: Error setting up environmental variables
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
Traceback (most recent call last):
File "/devilry/lib/devilry-django/adminscripts/bin/devilry-user.py", line 75, in <module>
u = User.objects.get(username=username)
File "/devilry/lib/django/django/db/models/manager.py", line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/devilry/lib/django/django/db/models/query.py", line 333, in get
clone = self.filter(*args, **kwargs)
File "/devilry/lib/django/django/db/models/query.py", line 550, in filter
return self._filter_or_exclude(False, *args, **kwargs)
File "/devilry/lib/django/django/db/models/query.py", line 568, in _filter_or_exclude
#!/usr/bin/env python
import time
import os, sys
import argparse
import subprocess
import uuid
if __name__ == "__main__":
def cell_data_time(column, cell, model, row, data):
"""Display value as time, eg 1m10s"""
time = model.get_value(row, data)
if func_last_value.get(column.title, None) == time:
return
func_last_value[column.title] = time
if time <= 0:
time_str = ""
else:
@bendikro
bendikro / update_deluge_github.sh
Created December 1, 2014 14:06
Update remote git repos
#!/usr/local/bin/bash
GIT=/usr/local/bin/git
REPO_DIR=/home/bro/programmer/deluge/deluge_cron_update
BRANCHES=(develop 1.3-stable)
UPDATE_REPOS=(github deluge-github)
cd $REPO_DIR
$GIT remote update
@bendikro
bendikro / gist:90b1bc478f5e8313ca1a
Last active August 29, 2015 14:15
Deluge develop SSL error
Unhandled Error
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/twisted/python/log.py", line 88, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/local/lib/python2.7/site-packages/twisted/python/log.py", line 73, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
#!/usr/bin/env python
import sys
import argparse
import sh
def check_result(ret):
if ret.exit_code != 0:
print "Command returned with value:", ret.exit_code
return False
@bendikro
bendikro / gist:3991f80304326a77d41a
Created November 22, 2015 15:30
web server timeout
; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/45.0.2454.101 Chrome/45.0.2454.101 Safari/537.36"
16:28:40.018 [ERROR ][deluge.ui.web.json_api :1193] [Failure instance: Traceback: <type 'exceptions.RuntimeError'>: Request.finish called on a request after its connection was lost; use Request.notifyFinish to keep track of this.
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:577:_runCallbacks
/home/bro/programmer/deluge/deluge_workdirs/client_side/deluge/ui/web/json_api.py:548:on_complete
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:382:callback
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:490:_startRunCallbacks
--- <exception caught here> ---
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:577:_runCallbacks
/home/bro/programmer/deluge/deluge_workdirs/client_side/deluge/ui/web/json_api.py:219:_on_rpc_request_finished
/home/bro/programmer/deluge/deluge_workdirs/client_side/deluge/ui/web/json_api.py:262:_send_response