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
# sending to mcroldan08@gmail.com | |
5416 Jan 24 00:00:27 li387-184 postfix/smtp[25370]: 2AE56FAED: to=<mcroldan08@gmail.com>, relay=gmail-smtp-in.l.google.com[2a00:1450:4008:c01::1b]:25, delay=3.4, delays=0.04/0.05/0.86/2.4, ds n=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[2a00:1450:4008:c01::1b] said: 550-5.7.1 [2400:8900::f03c:91ff:fe70:bb41 12] Our system has detected that 550-5.7.1 this mess age is likely unsolicited mail. To reduce the amount of spam 550-5.7.1 sent to Gmail, this message has been blocked. Please visit 550-5.7.1 http://support.google.com/mail/bin/answer.py?h l=en&answer=188131 for 550 5.7.1 more information. s8si608207bkr.298 - gsmtp (in reply to end of DATA command)) | |
# vim /var/log/mail.log |
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
# Development | |
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /bin/bash -l -c 'cd /home/neilmarion/ROR/projects/feddit && rvm 2.0.0@feddit && RAILS_ENV=development bundle exec rake trend:newsletter --silent' | |
# Production | |
# Begin Whenever generated tasks for: /home/deployer/apps/feddit/releases/20131230142259/config/schedule.rb | |
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /bin/bash -l -c 'cd /home/deployer/apps/feddit/current && RAILS_ENV=production ~/.rbenv/shims/bundle exec rake trend:hot --silent' |
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.before(:each) do | |
Mongoid::Sessions.default.collections.select {|c| c.name !~ /system/ }.each(&:drop) | |
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
rvm gemset create (gemset name) | |
rails new project | |
# install test and development gems | |
rails g rspec:install | |
# add the following lines to spec/spec_helper.rb do | |
require 'factory_girl' | |
require 'webmock/rspec' | |
SimpleCov.start 'rails' | |
puts 'started simplecov' | |
# 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
intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file); |
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
label:unread -is:important |
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
$ cordova plugin add org.apache.cordova.geolocation | |
$ cordova plugin ls | |
# [ 'org.apache.cordova.geolocation' ] | |
$ cordova plugin rm org.apache.cordova.geolocation |
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
Change <access origin="http://127.0.0.1*"> to <access origin="*" /> |
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
file:///storage/sdcard0/Android/data/com.example.android2/cache/<string_of_digits>.jpg |
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
{ | |
status: 'connected', | |
authResponse: { | |
accessToken: '...', | |
expiresIn:'...', | |
signedRequest:'...', | |
userID:'...' | |
} | |
} |