Skip to content

Instantly share code, notes, and snippets.

View andrewgodwin's full-sized avatar

Andrew Godwin andrewgodwin

View GitHub Profile
Benchmark results:
Date: 2016/03/20
Version: asgi_redis 0.8.3 / daphne master / channels master / cpython 2.7.11
Environment: AWS, 3x m3.large (1 daphne, 1 worker, 1 redis)
Source: 1x m3.medium, different AZ, ab for HTTP, channels benchmarker for WS
HTTP GET, Django View (concurrency 10, 10,000 total)
Failures: 0.0%
Rate: 160 req/s
@andrewgodwin
andrewgodwin / QuakeTerminal.ahk
Created February 15, 2020 17:41
AutoHotkey script for making Windows Terminal appear/disappear with a single keypress
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
F12::ToggleTerminal()
ShowAndPositionTerminal()
{
WinShow ahk_class CASCADIA_HOSTING_WINDOW_CLASS
import builtins
class FakeBaseException(BaseException):
pass
builtins.BaseException = FakeBaseException
try:
@andrewgodwin
andrewgodwin / coffeefinger.yaml
Created December 12, 2021 01:53
Coffee Finger ESPHome Config
esphome:
name: coffeefinger
platform: ESP32
board: m5stick-c
# Enable logging
logger:
# Enable Home Assistant API
api: