Skip to content

Instantly share code, notes, and snippets.

View simeonwillbanks's full-sized avatar
☀️
😎

Simeon Willbanks simeonwillbanks

☀️
😎
View GitHub Profile
@simeonwillbanks
simeonwillbanks / gist:1158625
Last active September 26, 2015 20:58
#CommandLine $ /usr/local/bin/mysql_config
Usage: /usr/local/bin/mysql_config [OPTIONS]
Options:
--cflags [-I/usr/local/Cellar/mysql/5.5.14/include -g -arch i386 -arch x86_64]
--include [-I/usr/local/Cellar/mysql/5.5.14/include]
--libs [-L/usr/local/Cellar/mysql/5.5.14/lib -lmysqlclient -lpthread -lz -lssl -lcrypto]
--libs_r [-L/usr/local/Cellar/mysql/5.5.14/lib -lmysqlclient_r -lpthread -lz -lssl -lcrypto]
--plugindir [/usr/local/Cellar/mysql/5.5.14/lib/plugin]
--socket [/tmp/mysql.sock]
--port [0]
--version [5.5.14]
@simeonwillbanks
simeonwillbanks / gem_make.out
Last active September 26, 2015 20:58
Command Line: $ sudo env ARCHFLAGS="-arch x86_64" gem install mysql2 -- --with-mysql-dir=/usr/local
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/Users/simeon/.rbenv/versions/ree-1.8.7-2011.03/bin/ruby extconf.rb --with-mysql-dir=/usr/local
checking for rb_thread_blocking_region()... no
checking for mysql.h... no
checking for mysql/mysql.h... no
-----
mysql.h is missing. please check your installation of mysql and try again.
@simeonwillbanks
simeonwillbanks / gem_make.out
Last active September 26, 2015 20:58
Command Line: $ sudo env ARCHFLAGS="-arch x86_64" gem install mysql2 -- --with-mysql-config=/usr/local/bin/mysql_config
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/Users/simeon/.rbenv/versions/ree-1.8.7-2011.03/bin/ruby extconf.rb --with-mysql-config=/usr/local/bin/mysql_config
checking for rb_thread_blocking_region()... no
checking for mysql.h... no
checking for mysql/mysql.h... no
-----
mysql.h is missing. please check your installation of mysql and try again.
@simeonwillbanks
simeonwillbanks / gem_make.out
Last active September 26, 2015 20:58
Command Line: $ sudo gem install mysql2
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/Users/simeon/.rbenv/versions/ree-1.8.7-2011.03/bin/ruby extconf.rb
checking for rb_thread_blocking_region()... no
checking for mysql.h... no
checking for mysql/mysql.h... no
-----
mysql.h is missing. please check your installation of mysql and try again.
@simeonwillbanks
simeonwillbanks / Gemfile.lock.diff
Last active September 26, 2015 02:38
bundle install only #bundler #diff #ruby #Gemfile
diff --git a/Gemfile.lock b/Gemfile.lock
index d2b6ae1..4514854 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -56,6 +56,7 @@ GEM
chronic_duration (0.9.4)
numerizer (~> 0.1.1)
closure-compiler (1.1.1)
+ columnize (0.3.3)
crack (0.1.8)
@simeonwillbanks
simeonwillbanks / gist:1008296
Created June 4, 2011 20:04
#Rails High Speed Rails Idioms
We couldn’t find that file to show.
@simeonwillbanks
simeonwillbanks / permutations.rb
Created June 2, 2011 05:27
#Ruby #math Calculate Permutations
# Permutations without Repetition
#
# n!
# --------
# (n-r)!
def permutations(total)
(total-1).downto(1) do |i|
total = total * i unless i == 0
@simeonwillbanks
simeonwillbanks / oa-identity.md
Created June 1, 2011 17:10
#omniauth #oauth OmniAuth oa-identity
@simeonwillbanks
simeonwillbanks / SagConfigurationCheckTest.php
Created February 11, 2011 17:26
#PHP Sag Configuration Check Test #couchdb #sag #opensource
<?php
/*
Copyright 2010 Sam Bisbee
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@simeonwillbanks
simeonwillbanks / php_notice_sanity_check.php
Created February 11, 2011 17:22
#PHP php_notice_sanity_check.php #sag
<?php
error_reporting(E_ALL);
require_once('../src/Sag.php');