Skip to content

Instantly share code, notes, and snippets.

Robert Travis Pierce roberttravispierce

Block or report user

Report or block roberttravispierce

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
roberttravispierce / import_pnotes_service.rb
Created May 3, 2019
Rails Service - import_pnotes_service.rb
View import_pnotes_service.rb
require 'csv'
require 'nokogiri'
# Invoke: >
class ImportPnotesService
def call
log ='log/import_pnotes.log')
puts "\n What is the program ID?"
roberttravispierce / db.rake
Created Apr 27, 2018 — forked from hopsoft/db.rake
Rails rake tasks for dump & restore of PostgreSQL databases
View db.rake
# lib/tasks/db.rake
namespace :db do
desc "Dumps the database to db/APP_NAME.dump"
task :dump => :environment do
cmd = nil
with_config do |app, host, db, user|
cmd = "pg_dump --host #{host} --username #{user} --verbose --clean --no-owner --no-acl --format=c #{db} > #{Rails.root}/db/#{app}.dump"
puts cmd
View development.rb
# ActionMailer Config
config.action_mailer.perform_deliveries = true
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_caching = false
# MailCatcher gem settings
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 }
View _connect.html.haml{:style => "background-image:url(#{asset_path 'background2.jpg'})"}
.container{"data-wow-delay" => "0.8s"} Connect with Silverlane
You can’t perform that action at this time.