Skip to content

Instantly share code, notes, and snippets.

View MaikuMori's full-sized avatar
Existing

Miks Kalniņš MaikuMori

Existing
View GitHub Profile
{"timestamp":"1477447275.254393339","source":"baggageclaim","message":"baggageclaim.repository.volume-parent.failed-to-get-parent-volume","log_level":2,"data":{"error":"readlink /opt/concourse/worker/volumes/live/31815f87-13b0-4a44-4b4b-80a38eb2a1ce/parent: cannot allocate memory","session":"2.673"}}
{"timestamp":"1477447275.254534006","source":"baggageclaim","message":"baggageclaim.tick.failed-to-reap","log_level":2,"data":{"error":"failed to determine parent ofvolume '31815f87-13b0-4a44-4b4b-80a38eb2a1ce': readlink /opt/concourse/worker/volumes/live/31815f87-13b0-4a44-4b4b-80a38eb2a1ce/parent: cannot allocate memory","session":"33"}}
{"timestamp":"1477447276.096395969","source":"guardian","message":"guardian.api.garden-server.run.wait-failed","log_level":2,"data":{"error":"could not find the exitcode file for the process: stat /opt/concourse/worker/depot/aa808a52-9be4-436e-7511-ab6de99b4a34/processes/5dbb8e7c-5dc2-41ca-6eb4-a2eb43f8c6e0/exitcode: no such fileor directory","handle":"aa808a52-9be4-436e-7511-a

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

#!/usr/bin/env playonlinux-bash
# Date : (2015-12-16 19:57)
# Last revision : (2015-12-16 19:57)
# Wine version used : 1.8-rc4
# Distribution used to test : ArchLinux
# Author : Maiku Mori
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
@MaikuMori
MaikuMori / go-resource-collection.md
Last active August 29, 2015 14:11
Collection of Go resources
@MaikuMori
MaikuMori / celery_task_proxy.py
Created June 11, 2014 07:45
CeleryTaskProxy
class CeleryTaskProxy(object):
"""
Method proxy to execute namespaced Celery tasks via send_task.
"""
def __init__(self, celery, namespace):
self._celery = celery
self._namespace = namespace
def __getattr__(self, attr):
def runner(*args, **kwargs):
@MaikuMori
MaikuMori / fix_upstart.sh
Created April 15, 2014 15:23
Fix upstart stop hang when you've wrongly used `expect fork` or `expect daemon`
#!/bin/bash
sleep 0.0000001 &
firstPID=$!
#first lets exhaust the space
while (( $! >= $firstPID ))
do
sleep 0.000001 &
done
@MaikuMori
MaikuMori / serving.py
Last active December 23, 2015 05:09 — forked from jaytaylor/serving.py
TimedRequestHandler
import time
from werkzeug.serving import WSGIRequestHandler
class TimedRequestHandler(WSGIRequestHandler):
"""
Add request time info to logs.
"""
def handle(self):
self.start = time.clock()
rv = super(TimedRequestHandler, self).handle()