Skip to content

Instantly share code, notes, and snippets.

View nbertram's full-sized avatar

Neil Bertram nbertram

View GitHub Profile
@nbertram
nbertram / zend-http-header-sanitation.patch
Created April 15, 2016 04:14
zend-http-header-sanitation.patch
:100644 100644 80b0bb9... d5f27d4... M src/Header/GenericHeader.php
diff --git b/src/Header/GenericHeader.php a/src/Header/GenericHeader.php
index 80b0bb9..d5f27d4 100644
--- b/src/Header/GenericHeader.php
+++ a/src/Header/GenericHeader.php
@@ -88,9 +88,6 @@ class GenericHeader implements HeaderInterface
throw new Exception\InvalidArgumentException('Header name must be a string');
}
{
"packages": [
{
"name": "atmega",
"maintainer": "Carlos Rodrigues",
"websiteURL": "https://github.com/nbertram/atmega",
"email": "",
"help": {
"online": ""
},
@nbertram
nbertram / pipe_to_keyboard.py
Created May 17, 2013 02:03
Python pipe to keyboard keystroke converter (with webcam QR scanning frontend example)
import virtkey
import sys
import time
v = virtkey.virtkey()
while True:
char = sys.stdin.read(1)
if (char and char != "\n"):
if (char.isupper()):