Skip to content

Instantly share code, notes, and snippets.

View graybill's full-sized avatar

Linus Graybill graybill

  • Philadelphia, PA
View GitHub Profile
> brew doctor
We couldn't detect gcc 4.0.x. Some formulae require this compiler.
You changed your cc to symlink to llvm.
This bypasses LLVM checks, and some formulae may mysteriously fail to work.
You may want to change /usr/bin/cc to point back at gcc.
To force Homebrew to use LLVM, you can set the "HOMEBREW_USE_LLVM" environmental
variable, or pass "--use-llvm" to "brew install".
@graybill
graybill / gist:880112
Created March 21, 2011 20:09
redcar install error
> brew install redcar
/usr/bin/git
==> Cloning git://github.com/danlucraft/redcar.git
Updating /Users/admin/Library/Caches/Homebrew/redcar--git
You need the RSpec gem installed under JRuby or this will not work.
==> jruby bin/redcar install
==> jruby -S rake build
(in /private/tmp/homebrew-redcar-HEAD-nLMT)
rake aborted!
RubyGem version error: rspec(2.5.0 not < 2.0)
# My lazy aliases
alias desktop="cd ~/Desktop && ll"
alias bashrc="mate ~/.bash_profile"
alias restart="sudo shutdown -r now"
alias hosts="mate /etc/hosts"
alias code="cd ~/code"
#Rails aliases
alias ss="script/server"
alias sc="script/console"
❼ > rake db:migrate --trace
(in /Users/lgraybill/code/pifa-on-rails)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
Requiring REXML
** Execute db:migrate
== CreateGalleries: migrating ================================================
-- create_table(:galleries)
NOTICE: CREATE TABLE will create implicit sequence "galleries_id_seq1" for serial column "galleries.id"
include Newflow
define_workflow do
state :draft, :start => true do
transitions_to :published, :if => lambda { true }
end
state :published do
transitions_to :unpublished , :if => lambda { true }
end
{% set DataSource %}node-filter-tags{% end %}
{% begin contents %}
<img src="%#primary-media.#thumbnails=100x100.#url%" alt="%Title%" />
{% end %}
{% set DataSource %}node-single{% end %}
{% set Elements.in %}@artist{% end %}
{% set Slugs.in %}%INPUT_SLUG%{% end %}
{% set Meta.select %}all{% end %}
{% set OutTags.select %}#media-library.#original.#url,#primary-media.#thumbnails.#url,#collaborator-category{% end %}
{% set Category %}%INPUT_CATEGORY%{% end %}
{% begin contents %}
<div id="icons">
function makeSomeRows () {
var columns, i, tmpCols;
tmpCols = new Array();
columns = $(".column"); // jQuery collection of all the columns
i = 0; // counter
columns.each(function(){
tmpCols.push(this); // wrap four columns in a row
i++;
if (i > 3) { // reset loop
$(tmpCols).wrapAll("<div class=\"row\" />");
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteCond %{ENV:REDIRECT_STATUS} 200
RewriteRule . - [L]
# pass thru files from the domain-specific design/public/ directory
RewriteCond %{HTTP_COOKIE} DESIGN=([^;]+) [NC]
{% begin contents %}
{% template _header.cft %}
poooooo
<div id="content">
<!-- <p>CONTENT GOES HERE</p> -->
<img src="{% asset version?src=images/cube.jpg %}" alt="Cube" id="samplecube" />