Author: Ryan Sukale

1

How to completely uninstall docker from ubuntu

If you need a fresh start and completely uninstall docker, just run the following commands[source]. sudo apt-get purge docker-engine sudo apt-get autoremove –purge docker-engine rm -rf /var/lib/docker # This deletes all images, containers, and...

0

How to see the sql statements for rails commands

Just type the following command in your rails console to see the sql output of your rails commands ActiveRecord::Base.logger = Logger.new(STDOUT) NOTE: You will probably have to do this for every session. To avoid that, add...

0

Docker cheatsheet

List the currently running docker containers docker ps List all the docker containers that have run so far docker ps -a Run shell commands in a docker container (aka. interactive terminal) docker run -it...

1

Ruby on Rails cheatsheet

Creating a new rails project Using MySQL as the database rails new myapp -d mysql Using postgres as the database rails new myapp -d postgresql Installing Gems To manually install gems that you add,...