Skip to content

Instantly share code, notes, and snippets.

View eddorre's full-sized avatar

Carlos Rodriguez eddorre

View GitHub Profile
{WorkspaceView} = require 'atom'
MyPackage = require '../lib/my-package'
# Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs.
#
# To run a specific `it` or `describe` block add an `f` to the front (e.g. `fit`
# or `fdescribe`). Remove the `f` to unfocus the block.
describe "MyPackage", ->
activationPromise = null
@eddorre
eddorre / gist:3222031
Last active October 7, 2015 20:38
Installing Ruby 1.9.2 with Readline and Iconv
CONFIGURE_OPTS="--enable-shared --with-iconv-dir=/usr/local/Cellar/libiconv/1.14 --with-readline-dir=/usr/local/Cellar/readline/6.2.4/" rbenv install 1.9.2-p320
@eddorre
eddorre / gist:2373578
Created April 13, 2012 04:02
Installing REE with rbenv with iconv and readline
CONFIGURE_OPTS="-c --enable-shared -c --with-iconv-dir=/usr/local/Cellar/libiconv/1.14 -c --with-readline-dir=/usr/local/Cellar/readline/6.2.1/" rbenv install ree-1.8.7-2011.03
@eddorre
eddorre / Making OS X Look Readable
Created November 17, 2011 21:31
Making OS X Look Readable
defaults -currentHost write -globalDomain AppleFontSmoothing -int 2
@eddorre
eddorre / gist:1329040
Created October 31, 2011 21:39
Rails 3.1 Dry database.yml with development as a variable
development: &shared
adapter: postgresql
enconding: utf8
host: localhost
pool: 5
username: postgres
password: postgres
database: myapp_development
test: &test
Mac OS X Snow Leopard
node version 0.5.0-pre
npm version 0.3.18
# mdns has been installed - npm install mdns (source: https://github.com/agnat/node_mdns)
var browser = mdns.createBrowser('http');
browser.on('serviceUp', function(info, flags) {
sys.puts("Up: " + sys.inspect(info));
@eddorre
eddorre / Rails Migrations Post Merge Git Commit Hook
Created April 18, 2011 21:58
Rails Migrations Post Merge Git Commit Hook
Get notifications when there are migrations that need to be run in a Rails project:
https://img.skitch.com/20110418-c9y3ttap3tai7frc43f38qtb8e.jpg
In your Rails project edit the .git/config file to add the following:
[rails]
automigrate = false
automigrateforegroundcolor = yellow
automigratebackgroundcolor = black
Bundler Gem Install Error
Does not occur with Ruby 1.9.2
Carlos-Rodriguezs-MacBook-Pro:~ carlos$ rvm install ruby-1.8.7
Installing Ruby from source to: /Users/carlos/.rvm/rubies/ruby-1.8.7-p334, this may take a while depending on your cpu(s)...
ruby-1.8.7-p334 - #fetching
ruby-1.8.7-p334 - #downloading ruby-1.8.7-p334, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
/*
Sample Propane caveatPatchor.js file based on tmm1's avatar hack.
You'll need at least version 1.1.1 to experiment with this:
http://propaneapp.com/appcast/Propane.1.1.1.zip
Once I'm sure exposing this hack-injection point doesn't cause problems
I'll do an official auto-updating version.
As of version 1.1.1, Propane will load and execute the contents of
Confirm gem is in global gemset
rvm gemset use global
Now using gemset 'global'
gem list wirble
*** LOCAL GEMS ***
wirble (0.1.3)