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
dbUrl = conf.mongo.oplogUrl || "mongodb://localhost:27017/local"; | |
dbUrl = dbUrl + '?socketTimeoutMS=3000000' | |
query = {}; | |
query = {$gte:MongoDB.Timestamp(Date.now()/1000 - 86400, 0)}; | |
// query = {$gte:0}; | |
console.log(query); | |
// dbUrl = 'mongodb://localhost:27017/local' |
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
bash: | |
export AWS_ACCESS_KEY_ID='...' | |
export AWS_SECRET_ACCESS_KEY='...' | |
export AWS_REGION='us-east-1' | |
irb or ruby script: | |
require 'aws-sdk' | |
s3 = AWS::S3.new |
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
## Get FFMpeg working on heroku by building binaries using vulcan | |
# also added instructions on how to compile with libmp3lame and libx264 | |
gem install vulcan | |
vulcan create foo | |
#clone the app vulcan just created | |
git clone [email protected]:foo |
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
self.user = User.invite!({ :email => self.email, :invitation_context => { :message => self.message } }, self.inviting_user) |