This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unless (memcached_config = MemcachedConfig.new).disabled? | |
memcached_options = memcached_config.options | |
config.cache_store = :mem_cache_store, memcached_options.delete(:servers), memcached_options | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run "cd #{release_path} && gem bundle" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pasadmin@domU-12-31-39-0A-99-11 ~ $ free -m | |
total used free shared buffers cached | |
Mem: 7680 3972 3707 0 258 1810 | |
-/+ buffers/cache: 1903 5777 | |
Swap: 30725 0 30725 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
named_scope :for, lambda { |reason| | |
(reason ? { :conditions => { :payment_reasons => { :reason_type => (reason.is_a?(Array) ? reason.first.class.name : reason.class.name), :reason_id => reason }}, :include => [:payment_reasons] } : {}) } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ActiveRecord::Base | |
named_scope :conditions, lambda { |*args| {:conditions => args} } | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in `find /var/www/vhosts/santosdumont.com/web_users/ -type f`; do | |
set filename = basename $file | |
echo '$filename' | |
done |
NewerOlder