View rake_for_postgres_s3_backup
#First you have add the following gems to your Gemfile
gem 'aws-sdk', '< 2.0'
gem 'zip'
gem 'whenever'
#Created a new file at lib/tasks/backup.rake and add the following
desc "PG Backup"
namespace :pg do
task :backup => [:environment] do
View db.go
package main
import (
_ ""
const (
DB_USER = "ramesh"
View godlist
RAILS_ROOT = File.expand_path('../', __dir__)
def default_process_monitoring(w,
# determine the state on startup
w.transition(:init, { true => :up, false => :start }) do |on|
on.condition(:process_running) do |c|
c.running = true
View select2 ajax example with formated result
width: "200px",
placeholder: "Search for a item",
minimumInputLength: 3,
ajax: {
url: "/url",
dataType: "json",
data: function(term, page) {
return {
q: term,