redis-cli -a PASSWORD --latency
min: 0, max: 630, avg: 0.26 (17576 samples)
.26 ms = 260 microseconds
The typical latency for a 1Gb/s network is about 200 μs.
## This file is managed by ansible. Local edits will be overwritten | |
## /etc/nginx/sites-available/default | |
## Grossness used to accommodate ansible automation --revisit. | |
## modified default server configuration to support cert-bot | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
# to support certbot |
# /etc/ssh/sshd_config | |
AcceptEnv LANG LC_* | |
GSSAPIAuthentication no | |
ChallengeResponseAuthentication no | |
PasswordAuthentication no | |
UsePAM no | |
HostKey /etc/ssh/ssh_host_rsa_key | |
HostKey /etc/ssh/ssh_host_ed25519_key | |
HostKey /etc/ssh/ssh_host_ecdsa_key |
.PHONY: help | |
.DEFAULT_GOAL := help | |
help: ## Displays this help message. | |
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | |
.PHONY: deploy | |
deploy: ## Deploy the app to the 'staging' environment | |
bundle exec cap staging deploy |
from pythonjsonlogger import jsonlogger | |
logger = logging.getLogger() | |
logHandler = logging.StreamHandler() | |
formatter = jsonlogger.JsonFormatter('%(asctime)s %(levelname)s %(module)s %(message)s') | |
logHandler.setFormatter(formatter) | |
logger.handlers.clear() | |
logger.setLevel(logging.INFO) |
# -*- coding:utf-8 -*- | |
from flask import abort | |
from datetime import datetime | |
from project.ext import db | |
class IdMixin(object): | |
""" | |
Provides the :attr:`id` primary key column |
- name: Add app nginx-site config | |
template: src=app.j2 | |
dest=/etc/nginx/sites-available/app | |
owner=www-data group=www-data | |
mode=0644 | |
backup=yes | |
notify: restart nginx | |
tags: config | |
- name: enable app |
redis-cli -a PASSWORD --latency
min: 0, max: 630, avg: 0.26 (17576 samples)
.26 ms = 260 microseconds
The typical latency for a 1Gb/s network is about 200 μs.
} moo-clientcide-1.3.js?jobofferinsidebar:2969 | |
window.shoplocket.cookies.getItem("wcsid") | |
null | |
window.shoplocket.cookies.setItem("shey", "noo way") | |
true | |
window.shoplocket.cookies.getItem("shey") | |
"noo way" | |
window.shoplocket.cookies.removeItem("shey") | |
true | |
window.shoplocket.cookies.getItem("shey") |
c.put.albums(id='c3ea09f0-9758-480c-aa25-0f71a9caa446', Name='Transatlanticism', Band='Death Cab For Cutie') |
from cushion import api | |
c = api.Cushion("http://localhost:5984/albums", | |
username='abc', | |
password='xyz' | |
) | |
c.get(id='1b0c7bb19b1bbacf7f567bf379000d9c') | |
alternatively |