Skip to content

Instantly share code, notes, and snippets.

View davidfstr's full-sized avatar
⚙️
Happy coding!

David Foster davidfstr

⚙️
Happy coding!
View GitHub Profile
@davidfstr
davidfstr / anaconda-bin.txt
Created September 2, 2013 23:11
Tools installed with Anaconda
2to3
activate
asadmin
binstar
bugpoint
bundle_image
cfadmin
conda
cq
curl
@davidfstr
davidfstr / Clojure.diff.tmLanguage
Created September 2, 2013 01:50
Fix to Clojure syntax highlighting in Sublime Text to treat commas as whitespace
--- /Users/davidf/Desktop/Clojure.old.tmLanguage 2012-07-03 18:36:29.000000000 -0700
+++ /Users/davidf/Desktop/Clojure.new.tmLanguage 2013-09-01 18:41:36.000000000 -0700
@@ -329,7 +329,7 @@
</dict>
<dict>
<key>begin</key>
- <string>[^\s]</string>
+ <string>[^\s,]</string>
<key>end</key>
<string>[^\]]</string>
@davidfstr
davidfstr / gist:5641224
Created May 24, 2013 04:02
RDiscount 2.1.6 conformance test failure
[davidf ...s/RDiscount/Official/rdiscount]$ rake test:conformance
/Users/davidf/Projects/RDiscount/Official/rdiscount/Rakefile:11: Use RbConfig instead of obsolete and deprecated Config.
cd test/MarkdownTest_1.0.3
RUBYLIB=/Users/davidf/Projects/RDiscount/Official/rdiscount/lib ./MarkdownTest.pl --script='/Users/davidf/Projects/RDiscount/Official/rdiscount/bin/rdiscount' --tidy
Amps and angle encoding ... OK
Auto links ... OK
Backslash escapes ... OK
Blockquotes with code blocks ... OK
Code Blocks ... OK
Code Spans ... OK
@davidfstr
davidfstr / gist:5331787
Created April 7, 2013 18:28
RVM: 10.8: Console output after Xcode CLI Tools installed
mes-MacBook-Pro:~ me$ \curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 184 100 184 0 0 454 0 --:--:-- --:--:-- --:--:-- 505
100 13171 100 13171 0 0 12575 0 0:00:01 0:00:01 --:--:-- 12575
Please read and follow further instructions.
Press ENTER to continue.
Downloading RVM from wayneeseguin branch stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
@davidfstr
davidfstr / gist:5331778
Created April 7, 2013 18:27
RVM: 10.8: Ruby 2.0.0-p0: rubygems.install.log
[2013-04-07 11:20:05] /Users/me/.rvm/rubies/ruby-2.0.0-p0/bin/ruby
current path: /Users/me/.rvm/src/rubygems-2.0.3
command(7): env GEM_PATH=/Users/me/.rvm/gems/ruby-2.0.0-p0:/Users/me/.rvm/gems/ruby-2.0.0-p0@global:/Users/me/.rvm/gems/ruby-2.0.0-p0:/Users/me/.rvm/gems/ruby-2.0.0-p0@global GEM_HOME=/Users/me/.rvm/gems/ruby-2.0.0-p0 /Users/me/.rvm/rubies/ruby-2.0.0-p0/bin/ruby -d /Users/me/.rvm/src/rubygems-2.0.3/setup.rb --verbose
Exception `LoadError' at /Users/me/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/rubygems.rb:1073 - cannot load such file -- rubygems/defaults/operating_system
Exception `LoadError' at /Users/me/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/rubygems.rb:1082 - cannot load such file -- rubygems/defaults/ruby
mkdir -p /Users/me/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0
mkdir -p /Users/me/.rvm/rubies/ruby-2.0.0-p0/bin
install -c -m 0644 gauntlet_rubygems.rb /Users/me/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/gauntlet_rubygems.rb
mkdir -p /Users/me/.rvm/rubies/ruby-2.0.0-p0/lib/ru
@davidfstr
davidfstr / gist:5328938
Created April 7, 2013 04:01
RVM: 10.8: package_install_autoconf_automake_libtool_pkg-config_libyaml_readline_libxml2_libxslt_libksba_openssl_sqlite.log
[2013-04-06 20:59:43] requirements_brew_libs_install
requirements_brew_libs_install ()
{
brew install "$@" || return $?
}
current path: /Users/me/.rvm/src/rvm
command(12): requirements_brew_libs_install autoconf automake libtool pkg-config libyaml readline libxml2 libxslt libksba openssl sqlite
Warning: No developer tools installed
You should install the Command Line Tools: http://connect.apple.com
==> Downloading http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz
@davidfstr
davidfstr / gist:5328582
Created April 7, 2013 02:15
RVM: OS X 10.8 Install Failure
mes-MacBook-Pro:~ me$ \curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 184 100 184 0 0 831 0 --:--:-- --:--:-- --:--:-- 1323
100 13171 100 13171 0 0 14267 0 --:--:-- --:--:-- --:--:-- 41159
Please read and follow further instructions.
Press ENTER to continue.
Downloading RVM from wayneeseguin branch stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
@davidfstr
davidfstr / gist:5219304
Created March 22, 2013 06:00
RDiscount 2.0.7.1 - Windows 7 - make#2
compiling rdiscount.c
rdiscount.c: In function 'rb_rdiscount_to_html':
rdiscount.c:19:5: warning: implicit declaration of function 'rb_rdiscount__get_flags'
rdiscount.c:19:5: warning: ISO C90 forbids mixed declarations and code
rdiscount.c:32:5: warning: ISO C90 forbids mixed declarations and code
rdiscount.c: In function 'rb_rdiscount_toc_content':
rdiscount.c:68:5: warning: ISO C90 forbids mixed declarations and code
compiling resource.c
In file included from resource.c:17:0:
markdown.h:85:5: error: expected specifier-qualifier-list before 'DWORD'
@davidfstr
davidfstr / gist:5219172
Created March 22, 2013 05:32
RDiscount 2.0.7.1 - Windows 7 - make in ext/
compiling rdiscount.c
In file included from c:\ruby193\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windows.h:48:0,
from c:\ruby193\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winsock2.h:22,
from c:/Ruby193/include/ruby-1.9.1/ruby/win32.h:40,
from c:/Ruby193/include/ruby-1.9.1/ruby/defines.h:223,
from c:/Ruby193/include/ruby-1.9.1/ruby/ruby.h:67,
from c:/Ruby193/include/ruby-1.9.1/ruby.h:32,
from rdiscount.c:3:
c:\ruby193\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windef.h:229:23: error: duplicate 'unsigned'
c:\ruby193\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windef.h:238:23: error: duplicate 'unsigned'
ERROR: Error installing rdiscount:
ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb
checking for random()... no
checking for srandom()... no
checking for rand()... yes
checking for srand()... yes
checking size of unsigned long... 4
checking size of unsigned int... 4