This file contains hidden or 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
--- | |
url: "https://app.captionhub.com/api/swagger_doc" |
This file contains hidden or 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
--- | |
url: "https://app.captionhub.com/api/swagger_doc" | |
dom_id: "#swagger-ui" |
This file contains hidden or 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
require 'octokit' | |
repos = %w[ | |
async_experiments | |
business-support-api | |
contacts-frontend | |
figuring-out-whitehall-types | |
github-jenkins-trigger | |
govuk_content_api | |
govuk_need_api |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
# to run in the content store | |
ContentItem.where( | |
rendering_app: "government-frontend", | |
:document_type.in => %w[travel_advice guide calendar answer html_publication detailed_guide statutory_guidance manual manual_section hmrc_manual hmrc_manual_section contact calculator completed_transaction form local_transaction place simple_smart_answer smart_answer transaction], | |
"expanded_links.taxons" => { "$nin" => [nil] } | |
).map(&:base_path) |
This file contains hidden or 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
# In the app we re-raise every error, with a reference to the original | |
class HardWorker | |
def perform | |
# blabla | |
rescue GdsApi::TimeOut => e | |
raise GovukSidekiq::RetryableError.new(cause: e) | |
end | |
end |
This file contains hidden or 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
# irb(main):001:0> y (Host.all - Host.where('(cname IS NOT NULL) OR (ip_address IS NOT NULL)')).pluck(:hostname) | |
--- | |
- aka.fetalanomaly.screening.nhs.uk | |
- aka.infectiousdiseases.screening.nhs.uk | |
- aka-planningportal.gov.uk | |
- aka-obesitywm.org.uk | |
- aka.aaa.screening.nhs.uk | |
- aka-sellafieldmagazine.com | |
- aka-screening.nhs.uk | |
- aka-nactso-dev.co.uk |
This file contains hidden or 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
require 'json' | |
# by checking the diff | |
added_in_pr = %w[ | |
asset_manager | |
authenticating_proxy | |
bouncer | |
calculators | |
calendars | |
collections_publisher |
This file contains hidden or 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
370.times do |i| | |
url = "https://www.rijksmuseum.nl/api/nl/collection?key=#{ENV["API_KEY"]}&format=json&imgonly=true&ps=100&p=#{i + 1}&q=portret" | |
json = HTTP.get(url) | |
File.write("pages/page-#{i+1}.json", json) | |
end |
This file contains hidden or 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
["5e14bc9f-7631-11e4-a3cb-005056011aef", "5f41abfc-7631-11e4-a3cb-005056011aef", "5f41abfc-7631-11e4-a3cb-005056011aef", "5e14ec3b-7631-11e4-a3cb-005056011aef", "6025798e-7631-11e4-a3cb-005056011aef", "2eea4778-e544-4080-9a74-84c5d9229028", "5e5d6180-7631-11e4-a3cb-005056011aef", "5efa3cfe-7631-11e4-a3cb-005056011aef", "5fec0095-7631-11e4-a3cb-005056011aef", "5fec0095-7631-11e4-a3cb-005056011aef", "08594d08-536b-4994-afb2-8722b5e4e618", "5eb8fe05-7631-11e4-a3cb-005056011aef", "5e0fd1bc-7631-11e4-a3cb-005056011aef", "5e0fd1bc-7631-11e4-a3cb-005056011aef", "5e0fd1bc-7631-11e4-a3cb-005056011aef", "5e0fd1bc-7631-11e4-a3cb-005056011aef", "5e15349a-7631-11e4-a3cb-005056011aef", "5f6230cf-7631-11e4-a3cb-005056011aef", "5f4f05b7-7631-11e4-a3cb-005056011aef", "5fa8ee25-7631-11e4-a3cb-005056011aef", "5fec069e-7631-11e4-a3cb-005056011aef", "f917915c-c52a-484c-b343-726c49327e3f", "f917915c-c52a-484c-b343-726c49327e3f", "5e13c010-7631-11e4-a3cb-005056011aef", "5f53eb53-7631-11e4-a3cb-005056011aef", "43addda5-3c3f-4790-b84 |
NewerOlder