Skip to content

Instantly share code, notes, and snippets.

View renepardon's full-sized avatar

Christoph, René Pardon renepardon

View GitHub Profile
@piotrplenik
piotrplenik / ssh_key_validation.php
Created August 3, 2012 14:25
SSH-RSA/SSH-DSA validation
<?php
public function validateKey($value)
{
$key_parts = explode(' ', $value, 3);
if (count($key_parts) < 2) {
return false;
}
@moro
moro / nginx-local.conf
Created January 30, 2012 03:02
nginx configuration for local development w/ http://foo.dev:10080
# vim:set ft=nginx:
worker_processes 2;
pid /Users/moro/.nginx/nginx.pid;
error_log /Users/moro/.nginx/error.log;
events {
worker_connections 1024;
}
http {