Skip to content

Instantly share code, notes, and snippets.

@wallrat
wallrat / hitch.rb
Created October 29, 2016 17:58
Homebrew brew formula for Varnish'es Hitch TLS Proxy Server
class Hitch < Formula
desc "A scalable TLS proxy by Varnish Software"
homepage "https://github.com/varnish/hitch"
url "https://github.com/varnish/hitch/archive/hitch-1.3.0-beta2.tar.gz"
sha256 "fbec6197a77c54f23e941cf0fcecbb8f6c24086ebe2c45467d30b330a370fe90"
head "https://github.com/varnish/hitch.git"
depends_on "automake" => :build
depends_on "autoconf" => :build
depends_on "pkg-config" => :build
@wallrat
wallrat / jsbin.ENILAqEY.coffee
Last active January 2, 2016 14:39 — forked from anonymous/jsbin.ENILAqEY.coffee
Experimental glue code for using React components in AngularJS apps.
reactModule = angular.module 'react',[]
#
# Usage <div react-attach={{React class}} react-prop-{{React prop}}={{angular scope expression}}* />
#
reactModule.directive 'reactAttach', ->
return {
restrict: 'A'
link: (scope,element,attrs) ->
# get React component construnctor fn
@wallrat
wallrat / proxy.go
Created July 6, 2012 11:24 — forked from vmihailenco/proxy.go
Redis proxy
package main
import (
"flag"
"io"
"log"
"net"
"os"
"os/signal"
"runtime/pprof"
#! /bin/sh
### BEGIN INIT INFO
# Provides: redis-server
# Required-Start: $syslog
# Required-Stop: $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: redis-server - Persistent key-value db