Skip to content

Instantly share code, notes, and snippets.

View lunks's full-sized avatar

Pedro Nascimento lunks

View GitHub Profile
@lunks
lunks / sshfs-fuse-2.3-macosx.patch
Created September 11, 2011 00:06
Patch for sshfs 2.3
diff --git a/Makefile.in b/Makefile.in
index 40fb8cc..fa7015d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -757,7 +757,12 @@ uninstall-man: uninstall-man1
@SSH_NODELAY_SO_TRUE@ rm -f "$(DESTDIR)$(libdir)/sshnodelay.so"
@SSH_NODELAY_SO_TRUE@sshnodelay.so:
+ifeq "$(shell_uname)" "Darwin"
+@SSH_NODELAY_SO_TRUE@ $(CC) -Wall -dynamiclib $(CFLAGS) $(sshnodelay_libs) -install_name "$(DESTDIR)$(libdir)/sshnodelay.so" sshnodelay.c -o sshnodelay.so
@lunks
lunks / sshfs-fuse-2.3-macosx.patch
Created September 11, 2011 00:07
Patch for sshfs 2.3
diff --git a/Makefile.in b/Makefile.in
index 40fb8cc..fa7015d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -757,7 +757,12 @@ uninstall-man: uninstall-man1
@SSH_NODELAY_SO_TRUE@ rm -f "$(DESTDIR)$(libdir)/sshnodelay.so"
@SSH_NODELAY_SO_TRUE@sshnodelay.so:
+ifeq "$(shell_uname)" "Darwin"
+@SSH_NODELAY_SO_TRUE@ $(CC) -Wall -dynamiclib $(CFLAGS) $(sshnodelay_libs) -install_name "$(DESTDIR)$(libdir)/sshnodelay.so" sshnodelay.c -o sshnodelay.so
Tarifador::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
config.cache_classes = true
# Full error reports are disabled and caching is turned on
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
@lunks
lunks / application.rb
Created October 11, 2011 02:25
Using Unicorn, Rails is trying to compile the assets even though the assets themselves are alredy precompiled.
require File.expand_path('../boot', __FILE__)
require 'rails/all'
require 'exception_notifier'
if defined?(Bundler)
# Bundler.require(:default, :assets, Rails.env)
Bundler.require *Rails.groups(:assets => %w(development test))
end
module Tarifador
require "money"
class Decorator < BasicObject
undef_method :==
def initialize(component)
@component = component
end
def method_missing(name, *args, &block)
~/Code/tarifador ‹1.9.3@tarifador› ‹master*› $ rc
##########################################################################################
/Users/lunks/.rvm/gems/ruby-1.9.3-p0@global/gems/mime-types-1.17.2/lib/mime/types.rb:756:in `open'
/Users/lunks/.rvm/gems/ruby-1.9.3-p0@global/gems/mime-types-1.17.2/lib/mime/types.rb:756:in `load_from_file'
/Users/lunks/.rvm/gems/ruby-1.9.3-p0@global/gems/mime-types-1.17.2/lib/mime/types.rb:843:in `block in <class:Types>'
/Users/lunks/.rvm/gems/ruby-1.9.3-p0@global/gems/mime-types-1.17.2/lib/mime/types.rb:843:in `each'
/Users/lunks/.rvm/gems/ruby-1.9.3-p0@global/gems/mime-types-1.17.2/lib/mime/types.rb:843:in `<class:Types>'
/Users/lunks/.rvm/gems/ruby-1.9.3-p0@global/gems/mime-types-1.17.2/lib/mime/types.rb:578:in `<module:MIME>'
/Users/lunks/.rvm/gems/ruby-1.9.3-p0@global/gems/mime-types-1.17.2/lib/mime/types.rb:4:in `<top (required)>'
/Users/lunks/.rvm/gems/ruby-1.9.3-p0@tarifador/bundler/gems/rails-9e9e17a62e4d/activesupport/lib/active_support/dependencies.rb:251:i
# Pathe to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
export ZSH_THEME="macovsky"
# Set to this to use case-sensitive completion
Before @awesome_guy_ove do
@user = User.new
@user.register_site :ove
end
module NewSession
class User
@users = Hash.new {|hash, key| hash[key] = User.new}
class << self
def find_or_create_user name
name = name.to_sym
@users[name]
end
end
module NewSession
class User
@users = Hash.new {|hash, key| hash[key] = User.new}
class << self
def find_or_create_user name
name = name.to_sym
@users[name]
end
end