- Programming in Go by Mark Summerfield
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sleep 0.0000001 & | |
firstPID=$! | |
#first lets exhaust the space | |
while (( $! >= $firstPID )) | |
do | |
sleep 0.000001 & | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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 |