Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am christoph-buente on github.
  • I am cbuente (https://keybase.io/cbuente) on keybase.
  • I have a public key ASAL-nZ0JHgNLeqzbMCz85uuPvrg3Bc0gP88rfb3IL3P6Qo

To claim this, I am signing this object:

@christoph-buente
christoph-buente / osm2pgsql
Last active August 29, 2015 14:02
Homebrew formula for osm2pgsql 0.8.4 on Mac OS X Mavericks.
require 'formula'
class Osm2pgsql < Formula
homepage 'http://wiki.openstreetmap.org/wiki/Osm2pgsql'
url 'https://github.com/openstreetmap/osm2pgsql/archive/0.84.0.tar.gz'
sha1 '42145c39596580680f120a07a4f30f97a86a3698'
depends_on :postgresql
depends_on "autoconf" => :build
depends_on "automake" => :build
FFmpeg patch by PiratFM, modified for FFmpeg v0.7.7 by _Flo_
diff -urN ffmpeg-0.7.7.orig/configure ffmpeg-0.7.7.crusher264//configure
--- ffmpeg-0.7.7.orig/configure 2011-11-04 22:30:00.000000000 +0100
+++ ffmpeg-0.7.7.crusher264//configure 2011-11-14 02:00:02.682566449 +0100
@@ -165,6 +165,7 @@
--enable-libaacplus enable AAC+ encoding via libaacplus [no]
--enable-libopencore-amrnb enable AMR-NB de/encoding via libopencore-amrnb [no]
--enable-libopencore-amrwb enable AMR-WB decoding via libopencore-amrwb [no]
+ --enable-libcrusher264 enable H.264 encoding via crusher264 [no]
@christoph-buente
christoph-buente / osmium.rb
Created April 26, 2012 07:49
Osmium Homebrew formula
require 'formula'
class Osmium < Formula
head 'https://github.com/joto/osmium.git'
homepage 'http://wiki.openstreetmap.org/wiki/Osmium'
depends_on 'boost'
depends_on 'lzlib'
depends_on 'shapelib'
depends_on 'expat'
@christoph-buente
christoph-buente / osmium.patch
Created April 19, 2012 06:22
don't use mremap (not supported on Darwin)
diff --git a/include/osmium/storage/byid.hpp b/include/osmium/storage/byid.hpp
index 718d4a2..78119bb 100644
--- a/include/osmium/storage/byid.hpp
+++ b/include/osmium/storage/byid.hpp
@@ -32,6 +32,12 @@ You should have received a copy of the Licenses along with Osmium. If not, see
#include <fcntl.h>
#include <boost/utility.hpp>
+// Darwin uses a different name.
+#ifndef MAP_ANONYMOUS
@christoph-buente
christoph-buente / geocouch.rb
Created April 6, 2011 09:56
Geocouch formula for homebrew
require 'formula'
class Geocouch <Formula
url 'https://github.com/vmx/couchdb/tarball/0.10.x'
homepage 'http://vmx.cx/cgi-bin/blog/index.cgi'
depends_on 'erlang'
depends_on 'icu4c'
depends_on 'spidermonkey'
module Spec
module Mocks
module Methods
def stub_association!(association_name, methods_to_be_stubbed = {})
mock_association = Spec::Mocks::Mock.new(association_name.to_s)
methods_to_be_stubbed.each do |method, return_value|
mock_association.stub!(method).and_return(return_value)
end
self.stub!(association_name).and_return(mock_association)
end