Skip to content

Instantly share code, notes, and snippets.

@mankind
mankind / mailer_report_doc.md
Created August 9, 2019 14:25 — forked from ashikajith/mailer_report_doc.md
Mailer Report Doc

Mailer Report

For the mailer report we have WorkReportMailer which acts as the controller of the Application Mailer. The mailer is called in the ExportController file.

  def send_mail_report
    emails = process_email
    emails.each do |email|
      WorkReportMailer.send_report(email.strip, current_account.cname, params[:email_type]).deliver_later
    end
 redirect_to hyrax.admin_stats_path(anchor: 'email_reports')
@mankind
mankind / chunk_file_doc.md
Created August 9, 2019 14:25 — forked from ashikajith/chunk_file_doc.md
Chunk File Upload Doc

File Chunk Upload

To support large file upload we need to segregate the file to different chunks and we will be sending each chunk in a single request to the server. Once they recieve the complete chunk, we will combine the chunk to get the actual file.

Following are the steps we followed to implement the feature.

@mankind
mankind / gist:b686f12691d0ed9649fa25141c6934d0
Created July 26, 2021 16:32
Setting up Hyku Addons Account

Setting up Hyku Addons from scratch

Deleting existing system

If already exists and you want to start fresh DANGER: This will kill it all including data

docker-compose down
docker-compose system prune