####Go to temp dir
$ cd /tmp
####Download your version of btsync i386
or x64
$ curl http://btsync.s3-website-us-east-1.amazonaws.com/btsync_i386.tar.gz -o btsync.tar.gz
# i386
$ curl http://btsync.s3-website-us-east-1.amazonaws.com/btsync_x64.tar.gz -o btsync.tar.gz
# x64
####Then unpack this shit
$ tar -xf btsync.tar.gz
####And move to your local bin
$ sudo mv btsync /usr/local/bin/
####Create a user and a group named btsync and give it a home folder
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
# config/initializer/delayed_job.rb | |
Thread.new { Delayed::HardenedWorker.new.start } |
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 "sass" | |
require "compass" | |
def compile_sass(sass_file) | |
sass_dir = File.dirname(sass_file) | |
compass_dir = File.join(Compass.base_directory, "frameworks/compass/stylesheets") | |
css_dir = File.join(File.dirname(__FILE__), 'css') | |
Sass.compile(File.read(sass_file), :syntax => :scss, :load_paths => [sass_dir, compass_dir, css_dir]) | |
end |
NewerOlder