brew install redis
Set up launchctl to auto start redis
$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
/usr/local/opt/redis/ is a symlink to /usr/local/Cellar/redis/x.y.z (e.g., 2.8.7)
| #To turn it off | |
| old_logger = ActiveRecord::Base.logger | |
| ActiveRecord::Base.logger = nil | |
| #To turn it back on | |
| ActiveRecord::Base.logger = old_logger |
##Merge many has_many
def get_fb_users
FacebookUser.from("
(
(
#{self.facebook_recipients_users.to_sql}
) union (
#{self.facebook_users.to_sql}
)(wherever it says url.com, use your server's domain or IP)
Login to new server as root, then add a deploy user
sudo useradd --create-home -s /bin/bash deploy
sudo adduser deploy sudo
sudo passwd deployAnd Update the new password
class MyKlass
include
CONSTANTS
belongs_to
has_one
has_many
accepts_nested_attributes_for
attr_accessible
validatesAll mails received by a user are stored into: /var/mail/username
Open mailbox without initial display: mail -N
Then delete all mails: d *
You can see should restart the server when you see *** System restart required *** when you start ssh
You can restart with sudo shutdown -r now
You can see your current kernel version with uname -r
You can see all kernel versions in /lib/modules/
sudo apt-get autoclean
13/01/2016
16/01/2016