Skip to content

Instantly share code, notes, and snippets.

package com.mydomain.myapp.resources;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.util.List;
import java.util.Set;
@binque
binque / README.md
Created December 7, 2015 03:26 — forked from ahmozkya/README.md
Homebrew with DNSMasq + DNSCrypt-proxy (OpenDNS)

Install & Configure

  1. Install DNSMasq
$ brew install dnsmasq
  1. Install DNSCrypt-proxy
$ brew install dnscrypt-proxy
@binque
binque / gist:5711211
Created June 5, 2013 02:27
Postgres failed to build on 10.8.3
qqqtekiMac-Pro:Formula qqq$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install postgres 2>&1
==> Writing /usr/local/lib/python2.7/site-packages/sitecustomize.py
==> Writing /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/distutils.cfg
==> Downloading http://ftp.postgresql.org/pub/source/v9.2.4/postgresql-9.2.4.tar.bz2
Already downloaded: /Library/Caches/Homebrew/postgresql-9.2.4.tar.bz2
tar xf /Library/Caches/Homebrew/postgresql-9.2.4.tar.bz2
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file src/pl/plpython/Makefile
patching file contrib/uuid-ossp/uuid-ossp.c
@binque
binque / gist:5022458
Last active December 14, 2015 03:39
when install ganglia an error occurred
HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install ganglia
=========================================================
bin-mac:ganglia qqq$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install ganglia
==> Downloading http://downloads.sourceforge.net/project/ganglia/ganglia%20monitoring%20core/3.1.7/ganglia-3.1.7.tar.gz
Already downloaded: /Library/Caches/Homebrew/ganglia-3.1.7.tar.gz
/usr/bin/tar xf /Library/Caches/Homebrew/ganglia-3.1.7.tar.gz
tar: Failed to set default locale
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file libmetrics/config.h.in
#!/usr/bin/tclsh8.5
#
# Usage: git-unmerged branch1 branch2
#
# Shows all the non-common commits in the two branches, where non-common
# commits means simply commits with a unique commit *message*.
proc getlog branch {
lrange [split [exec git log $branch --oneline] "\n"] 0 400
}