Skip to content

Instantly share code, notes, and snippets.

Avatar

John St. John jstjohn

View GitHub Profile
@jstjohn
jstjohn / homebrew_doctor
Created Aug 21, 2011
homebrew doctor file for opencv with ffmpeg install issues.
View homebrew_doctor
Some "config" scripts were found in your path, but not in system or Homebrew folders.
`./configure` scripts often look for *-config scripts to determine if software packages
are installed, and what additional flags to use when compiling and linking.
Having additional scripts in your path can confuse software installed via Homebrew if
the config script overrides a system or Homebrew provided script of the same name.
/Library/Frameworks/EPD64.framework/Versions/Current/bin
@jstjohn
jstjohn / homebrew_gist
Created Aug 21, 2011
opencv on osx lion with ffmpeg installed
View homebrew_gist
==> Downloading http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.2/OpenCV-2.2.0.tar.bz2
File already downloaded in /Users/jstjohn/Library/Caches/Homebrew
/usr/bin/tar xf /Users/jstjohn/Library/Caches/Homebrew/opencv-2.2.tar.bz2
==> cmake -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/Cellar/opencv/2.2 .
cmake -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/Cellar/opencv/2.2 .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
@jstjohn
jstjohn / rmate
Created Sep 4, 2012
rmate that works by default on both remote SSH servers and localhost
View rmate
#!/usr/bin/env ruby
# encoding: UTF-8
$VERBOSE = true # -w
$KCODE = "U" if RUBY_VERSION < "1.9" # -KU
require 'optparse'
require 'socket'
require 'tempfile'
require 'yaml'
You can’t perform that action at this time.