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 / 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: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: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: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 / 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 / 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 / Tutorial2B.java
Created September 7, 2013 17:33
VLCJ Tutorial2B
//package vlcj.tutorial2;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import uk.co.caprica.vlcj.binding.LibVlc;
import uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent;
import uk.co.caprica.vlcj.runtime.RuntimeUtil;
import com.sun.jna.Native;
@davidfstr
davidfstr / index.html
Last active December 26, 2015 09:09
JavaScript Code Conventions
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<style>
h1,
h2,
h3,
h4,
@davidfstr
davidfstr / Code.gs
Created January 18, 2015 20:50
MediaQueue 1.0
/*
* MediaQueue
*
* A system for quickly searching for media items (movies, TV series, anime, books)
* in various different media sources.
*
* If you're reading this file then you might be interesting in either understanding
* how it works or extending it (especially to add new kinds of media sources).
* Useful starting points:
*
#!/usr/bin/ruby
# -*- coding: utf-8 -*-
require 'rdiscount'
rd = RDiscount.new("# 中\n\n## 学\n\n####私", :generate_toc)
print rd.to_html