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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>title</title> | |
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet"> | |
<link href="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-editable/css/bootstrap-editable.css" rel="stylesheet"/> | |
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script> |
/* | |
* This sketch programs Ardunio to communicate with Artisan using MODBUS protocol and | |
* an inexpensive thermocouple amplifier. | |
* | |
* Hardware: | |
* Arduino UNO | |
* Thermocouple amplifier (MAX6675 or MAX31855) | |
* K-type thermocouple | |
* | |
* Libraries needed: |
/* | |
* This sketch programs Ardunio to communicate with Artisan using MODBUS protocol and | |
* an inexpensive thermocouple amplifier. | |
* | |
* Hardware: | |
* Arduino UNO | |
* Thermocouple amplifier (MAX6675) | |
* K-type thermocouple | |
* | |
* Libraries needed: |
my_list = ['peach', 'grape', 'apple'] | |
query_parameters = {} | |
counter = 1 | |
for list_item in my_list: | |
query_parameters["list_item" + str(counter)] = list_item | |
counter += 1 | |
where_clause = 'fruits IN(:' + ",:".join(query_parameters.keys()) + ')' # create clause to be inserted into query | |
query_text = db.text(""" | |
SELECT |
server { | |
listen 80; | |
listen [::]:80; | |
root /var/dav/webdav_root; | |
# dav allowed method | |
dav_methods PUT DELETE MKCOL COPY MOVE; | |
# Allow current scope perform specified DAV method | |
dav_ext_methods PROPFIND OPTIONS; |
version: "3" | |
services: | |
shinobi: | |
image: registry.gitlab.com/shinobi-systems/shinobi:dev | |
container_name: Shinobi | |
environment: | |
- PLUGIN_KEYS={} | |
- SSL_ENABLED=false | |
volumes: | |
- ~/Shinobi/config:/config |
from sqlalchemy import create_engine, Table, Column, Integer, Unicode, MetaData, String, Text, update, and_, select, func, types | |
# create engine, reflect existing columns, and create table object for oldTable | |
srcEngine = create_engine('mysql+mysqldb://username:password@111.111.111.111/database') # change this for your source database | |
srcEngine._metadata = MetaData(bind=srcEngine) | |
srcEngine._metadata.reflect(srcEngine) # get columns from existing table | |
srcTable = Table('oldTable', srcEngine._metadata) | |
# create engine and table object for newTable | |
destEngine = create_engine('mysql+mysqldb://username:password@localhost/database') # change this for your destination database |
$ go run dnstrace.go -c 10 -s 192.168.1.94 -n 100 www.googletagservices.com | |
Benchmarking 192.168.1.94:53 via udp with 10 conncurrent requests | |
Total requests: 1000 of 1000 (100.0%) | |
DNS success codes: 1000 | |
DNS response codes | |
NOERROR: 1000 |