Skip to content

Instantly share code, notes, and snippets.

"""
This module provides very simple Django middleware that sleeps on every request.
This is useful when you want to simulate slow response times (as might be
encountered, say, on a cell network).
To use, add this middleware, and add a value for SLEEP_TIME to your settings.
New feature: Look for an X-Django-Sleep header on each request,
to let the client specify per-request sleep time. The header override your settings.

Keybase proof

I hereby claim:

  • I am senden9 on github.
  • I am senden9 (https://keybase.io/senden9) on keybase.
  • I have a public key whose fingerprint is 3025 055A 9FB5 B0C0 2B08 8BDD D452 416B 6584 CF6C

To claim this, I am signing this object:

@senden9
senden9 / PKGBUILD
Last active October 25, 2017 08:57
Workaround for the tensorboard PKGBUILD (See https://bugs.archlinux.org/task/56041)
# $Id: PKGBUILD 244979 2017-07-13 15:39:06Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
pkgname=tensorboard
pkgver=0.4.0rc1
_pkgver=0.4.0-rc1
pkgrel=2
pkgdesc="TensorFlow's Visualization Toolkit"
url='https://github.com/tensorflow/tensorboard'
arch=('x86_64')