This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
ENV RAILS_PORT 3000 | |
ENV RAILS_ENV "${APP_ENV}" | |
ENV RAILS_ROOT "/var/www" | |
RUN apt-get update && \ | |
apt-get install -yq \ | |
git-core \ | |
curl \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Originally from https://gist.github.com/IanVaughan/2902499 | |
# | |
# authors: Ian Vaughan | |
# Jacob Zimmerman | |
# | |
# usage: uninstall_gems [<version> ...] | |
# | |
# examples: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
course = RecruitmentCycle.next.providers.find_by(provider_code: "C23").courses.find_by(course_code: "CX11") | |
course.enrichments.max_by(&:created_at).update(status: "draft", last_published_timestamp_utc: nil) | |
course.site_statuses.each do |site_status| | |
site_status.update(vac_status: :no_vacancies, status: :new_status) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider = RecruitmentCycle.current.providers.find_by(provider_code: "1M1") | |
course = provider.courses.where(course_code: '295G').first | |
course.update(can_sponsor_student_visa: false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
application_choice = ApplicationChoice.find(410761) | |
course_option = CourseOption.find(114533) | |
audit_comment = 'https://becomingateacher.zendesk.com/agent/tickets/139913' | |
application_choice.update_course_option_and_associated_fields!( | |
course_option, | |
audit_comment:, | |
other_fields: { | |
course_option:, | |
course_changed_at: Time.zone.now, | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
attributes = { | |
role: 'text', | |
organisation: 'text', | |
details: 'text', | |
working_with_children: true, | |
start_date: '2023-10-01', | |
end_date: '2023-10-01', | |
start_date_unknown: false, | |
end_date_unknown: false, | |
currently_working: false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider =RecruitmentCycle.current.providers.find_by(provider_code: "2DP") | |
provider.courses.find_by(course_code: '2ZKM').update(can_sponsor_student_visa: false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
course = RecruitmentCycle.current.providers.find_by(provider_code: "2BV").courses.find_by(course_code: "2XW3") | |
course.enrichments.max_by(&:created_at).update(status: "rolled_over", last_published_timestamp_utc: nil) | |
course.site_statuses.each do |site_status| | |
site_status.update(vac_status: :full_time_vacancies, status: :new_status, publish: :unpublished) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
role = 'Teaching Assistant' | |
organisation = 'Kwame Nkrumah University of Science and Technology' | |
commitment = 'full_time' | |
start_date_day = 1 | |
start_date_month = 9 | |
start_date_year = 2011 | |
start_date_unknown = 'false' | |
end_date_day = 1 | |
end_date_month = 8 | |
end_date_year = 2012 |