Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Miks Kalnins MaikuMori

🎯
Focusing
Block or report user

Report or block MaikuMori

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:ea18dd8a6fdd93c5fceaaeaa3f8b76d4
{"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
View keybase.md

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:

View SketchUp.sh
#!/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"
View celery_task_proxy.py
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 Apr 15, 2014
Fix upstart stop hang when you've wrongly used `expect fork` or `expect daemon`
View fix_upstart.sh
#!/bin/bash
sleep 0.0000001 &
firstPID=$!
#first lets exhaust the space
while (( $! >= $firstPID ))
do
sleep 0.000001 &
done
@MaikuMori
MaikuMori / serving.py
Last active Dec 23, 2015 — forked from jaytaylor/serving.py
TimedRequestHandler
View serving.py
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()
You can’t perform that action at this time.