Skip to content

Instantly share code, notes, and snippets.

@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
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:
#!/usr/bin/env python
import time
import os, sys
import argparse
import subprocess
import uuid
if __name__ == "__main__":
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
[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)
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:
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] ------------------------------------------------------------------------