Docker cheatsheet.
-
To get the list of commands:
$ docker
-
To search for images in docker index:
$ docker search tutorial
require 'httparty' | |
require 'will_paginate/collection' | |
require 'ostruct' | |
class GoogleCustomSearch | |
include HTTParty | |
base_uri 'https://www.googleapis.com/customsearch/v1' | |
format :json | |
default_params :cx => 'google-costom-searck-id', :key => 'google-api-key' |
class Contact < ActiveRecord::Base | |
... | |
def after_create | |
if Hook.hooks_exist?('new_contact', self) | |
Resque.enqueue(Hook, self.class.name, self.id) | |
# To trigger directly without Resque: Hook.trigger('new_contact', self) | |
end | |
end |
Docker cheatsheet.
To get the list of commands:
$ docker
To search for images in docker index:
$ docker search tutorial