Today I learned
  • Github
  • Linkedin
  • Nomad Life(Travel Blog)
  • About
Sign in Subscribe
Manu Ajith

Manu Ajith

til

Email notification when someone logs in via SSH

To setup email notification, login to your server as root. Edit .bashrc vim .bashrc add the following line at the end, changing "ServerName" to the host-name of your server and "me@til.codes" to your own email address. echo 'ALERT - Root Shell Access (Server-name)
13 Jul 2015
til

How do I make --no-ri --no-rdoc the default for gem install?

If you are deploying to a server, or you do not want to wait around for rdoc and ri to install for each gem, you can disable them for gem installs and updates. Just add the following line to your ~/.gemrc or /etc/gemrc: gem: --no-rdoc --no-ri or gem: --no-document
13 Jul 2015
til

How to update git remotes

To list the existing remotes, we can use the following command: git remote -v #View existing remotes origin https://github.com/user/repo.git (fetch) origin https://github.com/user/repo.git (push) Use the following command to set the remote to a new end point. git remote set-url origin
13 Jul 2015
← Newer Posts Page 5 of 5
Today I learned © 2025
Powered by Ghost