These results are generated by a gatling simulation that ramps 100 user over 10 second and then keeps the users constant at that rate for 60 seconds before ramping again by 100 users. The entire scenario runs from 0 to 1000 users.
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 emoji | |
import schedule | |
import asyncio | |
import inspect | |
from datetime import datetime | |
class Job(schedule.Job): |
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/sh | |
# $Id: xvfb-run 2027 2004-11-16 14:54:16Z branden $ | |
# This script starts an instance of Xvfb, the "fake" X server, runs a command | |
# with that server available, and kills the X server when done. The return | |
# value of the command becomes the return value of this script, except in cases | |
# where this script encounters an error. | |
# | |
# If anyone is using this to build a Debian package, make sure the package |
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
""" | |
The following mixins and views are borrowed and adapted from the following | |
gist: | |
https://gist.github.com/michelts/1029336 | |
""" | |
from functools import partial | |
from django.views.generic.base import TemplateResponseMixin | |
from django.views.generic.edit import ProcessFormView, FormMixin |
- Official Python Job Board https://www.python.org/jobs/
-
pycoders newsletter job board: http://www.pythonjobshq.com
-
Python Jobs http://www.pythonjobs.com
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
from xhtml2pdf import pisa | |
from xhtml2pdf.pdf import pisaPDF | |
class OrderListView(ListView, BulkEditMixin): | |
... | |
actions = ( | |
'generate_packing_slips', | |
... |
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 bash | |
set -e | |
. /opt/elasticbeanstalk/hooks/common.sh | |
# switch to current app directory | |
cd $EB_CONFIG_APP_CURRENT | |
# Dockerrun.aws.json can override settings in Dockerfile | |
echo "Reading settings from Dockerrun.aws.json" |
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
{% load staticfiles %} | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
@page { | |
size: a4 portrait; | |
margin: 1cm; | |
margin-left:2cm; | |
margin-right:2cm; |
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
# Delete all stopped containers | |
docker rm $(docker ps -a -q) | |
# Remove unused, dangling images | |
docker rmi $(docker images -q -f dangling=true) | |
# Remove all but X images with a specific name (old image cleanup), | |
# in this case, we leave the 2 newest images. | |
$(docker images | grep my-docker-image | tail -n+3 | awk '{ print $1":"$2; }') |
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 | |
set -ex | |
pip_args=${@:-"--help"} | |
apk add --no-cache \ | |
--virtual .build-deps \ | |
gcc \ | |
g++ \ | |
make \ |
NewerOlder