This is a test to see if psycogreen is necessary to run sqlalchemy + gevent + psycopg2 concurrently.
ab -n 10 -c 10 127.0.0.1:8080/wait
gunicorn -b 127.0.0.1:8080 -w 2 test:app
| #!/usr/bin/env bash | |
| # Given a commit sha (defaults to current commit), creates PRs for every | |
| # branch on the stack of the given commit. Each PR is created with its base | |
| # as the nearest ancestor of the given branch that is also a branch. | |
| set -euo pipefail | |
| commit="${1:-.}" | |
| base="$(git config branchless.core.mainBranch)" | |
| remote="origin" |
| #!/bin/bash | |
| if [ $UID != 0 ]; then echo "Please run as root"; exit 1; fi | |
| SUBNET_ADDRESS='10.0.0.1' | |
| SUBNET_RANGE='10.0.0.2,10.0.0.100,12h' | |
| INTERNET="eno1" #upstream | |
| SUBNET="enp7s0f0" #downstream | |
| ifconfig "$SUBNET" "$SUBNET_ADDRESS" #set your ip for downstream | |
| #ip addr add "$SUBNET_ADDRESS" dev "$SUBNET" |
| #include <OSCBundle.h> | |
| #include <SLIPEncodedSerial.h> | |
| #include <OSCMessage.h> | |
| SLIPEncodedSerial SLIPSerial(Serial); | |
| // encoder stuff below vvvvv | |
| #define MAXENCODERS 1 | |
| volatile uint32_t encstate[MAXENCODERS]; | |
| volatile uint32_t encflag[MAXENCODERS]; |
| #!/usr/bin/python | |
| import curses | |
| from time import sleep | |
| curses.initscr() | |
| string = "this is a really fun scrolling string " | |
| def scroll(stdscr): | |
| try: | |
| curses.curs_set(0) |
| #!/usr/bin/env python3 | |
| """Easily put time restrictions on things | |
| Note: Requires Python 3.x | |
| Usage as a context manager: | |
| ``` | |
| with timeout(10): | |
| something_that_should_not_exceed_ten_seconds() | |
| ``` |