Skip to content

Instantly share code, notes, and snippets.

@ariscop
ariscop / gist:3825731
Created October 3, 2012 08:03
Php fun
class a {
protected $foo = "foo";
function foo() {
print($this->foo);
}
function a() {
$this->foo = "bar";
$this->foo();
}
};
@ariscop
ariscop / raptor-httpd.sh
Created March 20, 2012 03:01
raptor-httpd, you will be eaten by raptors if you ever use this
#!/bin/bash
http-accept() {
read -r REQ <&3
REQ=`echo "$REQ" | tr '\r\n' ' '`
#read -r LINE <&3
#while [ -n "$LINE" ]; do
# read -r LINE <&3