Skip to content

Instantly share code, notes, and snippets.

View zghorn's full-sized avatar
🥇

Zac Horn zghorn

🥇
  • San Francisco CA
View GitHub Profile
Apr 29 01:20:35 topfunnel/production/web/c0ae84ce4ab14362bd318e42977389c4 web I, [2021-04-29T08:20:34.499532 #125] INFO -- : [b4383935-3788-4e9e-beda-4a0498c15983] method=POST path=/api/outreach/stop_bulk format=json controller=Api::OutreachController action=stop_bulk status=200 duration=1068.67 view=0.00 db=14.30 params={"bulk_selection_attributes"=>{"count"=>1, "team_profile_query_params"=>{"team_ids"=>[], "owner_ids"=>[], "sourcer_ids"=>[], "sender_ids"=>[], "reviewer_ids"=>[], "job_ids"=>[], "activity_ids"=>[], "status_ids"=>[], "campaign_ids"=>[], "project_ids"=>[], "tag_ids"=>[], "query"=>"Stanley Orlenko", "campaign_status"=>"", "requires_attention"=>"", "ats_problems_present"=>"", "snoozed"=>"", "start_at"=>"", "end_at"=>"", "sent_start_at"=>"", "sent_end_at"=>"", "replied_start_at"=>"", "replied_end_at"=>"", "activity_start_at"=>"", "activity_end_at"=>""}}, "controller"=>"api/outreach", "action"=>"stop_bulk"} time=2021-04-29 08:20:34 +0000
Apr 29 06:53:35 topfunnel/production/web/c0ae84ce4ab14362bd3
@zghorn
zghorn / gist:03cb06eb9020cbdbda02e6017f692b30
Created February 18, 2021 20:03
Error posting demo to teammable
Making request to post https://welcome.tmbl.space/api/v3/topfunnel/demo
Retrying post https://welcome.tmbl.space/api/v3/topfunnel/demo, attempt=2
Retrying post https://welcome.tmbl.space/api/v3/topfunnel/demo, attempt=3
response status: 500
Got 500 from https://welcome.tmbl.space/api/v3/topfunnel/demo, params: {"demo":{"id":"topfunnel","ats_name":"greenhouse"}}, response:
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="robots" content="NONE,NOARCHIVE">
@zghorn
zghorn / Team Platform Core Sentry and Resque Exception Management
Created October 12, 2016 17:35
Team Platform Core Sentry and Resque Exception Management
- Use Sentry JIRA plugin to "Create New Issue" or "Link with Existing Issue" if a ticket already exists
- all sentry tickets must get label pco-sentry
- all sentry tickets must begin with epic “Exceptions to Investigate"
- all sentry tickets must begin in the “Icebox" sprint
- if a sentry ticket gets worked on this sprint, please notify me before adding it to the sprint
- if you would like a sentry ticket worked on next sprint, put it in “Ungroomed (must do)"
- if you have identified an epic, an assignee and an estimate for the ticket and everybody is aware of this ticket, put it in “Groomed” and it will go into next sprint
- anything in ungroomed can and will be grabbed by Dante or I for follow-up/grooming, so be aware you’ll get questions about it
AbaDirectoryEntry Invalid Phone Numbers: 0
AdminUser Invalid Phone Numbers: 0
Applicant::Employment Invalid Phone Numbers: 0
ApplicationData Invalid Phone Numbers: 0
1-936-9367
1-936-9367
Broker Invalid Phone Numbers: 2
555555555
734-427-800
724- 512-477
@zghorn
zghorn / autocomplete_CLI.rb
Created May 6, 2016 18:10
auto complete CLI
namespace :cli do
desc 'Backfill newly created CLI as completed'
task :complete, [:task] => :environment do |t, args|
task = args[:task]
args = {
workflow_state: Loan::ChecklistItem::COMPLETED,
measurements_ignoreable: true
}
Loan::ChecklistItem.where(task: task).update_all(args)
end
@zghorn
zghorn / servicer_assignment.rb
Created November 24, 2015 04:58
servicer_assignment.rb
if loan.rental?
Loan::Servicing::FICS
elsif loan.homeowner?
nil # no servicing
elsif loan.hard_money?
if loan.jumbo?
Loan::Servicing::LLN
elsif loan.in_judicial_state?
Loan::Servicing::LLN
elsif loan.rehab?
@zghorn
zghorn / gist:d999650c89c52bd190ca
Created November 24, 2015 04:57
Servicer Assignment
if loan.rental?
Loan::Servicing::FICS
elsif loan.homeowner?
nil # no servicing
elsif loan.hard_money?
if loan.jumbo?
Loan::Servicing::LLN
elsif loan.in_judicial_state?
Loan::Servicing::LLN
elsif loan.rehab?
Loan::Closing.where(:borrower_requested_date_closing => nil).each do |closing|
next if ["dead", "pending", "maintenance"].include? closing.loan.workflow_state
submitted_at = closing.loan.timings.where(:event_name => "submit").recent.first.try(:created_at)
next unless submitted_at
closing.borrower_requested_date_closing = closing.version_at(submitted_at).estimated_date_closing
closing.save!
end
[[33649347, "16-4-2015"],
[33649375, "16-4-2015"],
[33649332, "28-9-2014"],
[33649397, "12-11-2014"],
[33649363, "7-10-2014"],
[33649810, "23-1-2015"],
[33649380, "24-10-2014"],
[33650038, "24-1-2015"],
[33649491, "21-11-2014"],
[33649398, "12-11-2014"],
Loan.was_closed.all.each do |loan|
closing = loan.closing
closing_doc_date = loan.document_packages.closing.recent.first.try(:created_at) || closing.actual_date_closing
old_closing = closing.version_at(closing_doc_date)
closing.docs_date_closing ||= old_closing.estimated_date_closing
closing.docs_date_funding ||= old_closing.estimated_date_funding
closing.docs_date_signing ||= old_closing.estimated_date_signing