Skip to content

Instantly share code, notes, and snippets.

@zcoder
zcoder / evhttp-multh-thread-httpd.cpp
Created June 8, 2012 23:37 — forked from kzk/evhttp-multh-thread-httpd.cpp
Multi-Threaded HTTPServer using evhttp
#include <event.h>
#include <evhttp.h>
#include <pthread.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <iostream>
@zcoder
zcoder / ssh-sc
Created November 21, 2011 10:36 — forked from yurial/ssh-sc
ssh - screen
#!/bin/bash
RET=1
PARAMS=
SESSION="auto-$RANDOM$RANDOM"
until [ -z "$1" ]; do
case "$1" in
'-S')
RET=1
shift
@zcoder
zcoder / encrypted-git-repo.md
Created October 12, 2011 04:30
Transparent Git Encryption

Transparent Git Encryption

This document has been modified from its [original format][m1], which was written by Ning Shang (geek@cerias.net). It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].

Description

When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes