This file contains 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
Imports System | |
Imports System.IO | |
Imports System.Security.Cryptography | |
Imports System.Text | |
Imports System.Security.Cryptography.X509Certificates | |
Class Module1 |
This file contains 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
#place this overide in a rails initailizer as a workaround | |
module Paperclip | |
class ContentTypeDetector | |
def type_from_file_command | |
type = SENSIBLE_DEFAULT | |
type.split(/[:;\s]+/)[0] | |
end | |
end | |
end |
This file contains 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
require 'faye' | |
faye_server = Faye::RackAdapter.new(:mount => '/faye', :timeout => 45) | |
run faye_server |