I hereby claim:
- I am steventux on github.
- I am steventux (https://keybase.io/steventux) on keybase.
- I have a public key ASD9SOh3M6teaR0nXLNPurnavumlBt-UXt5t7fxVHrfMowo
To claim this, I am signing this object:
#!/bin/bash | |
# Save git-prompt script to home dir | |
echo "Fetching git prompt script" | |
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh > ~/.git-prompt.sh | |
echo "Adding git-prompt to bash" | |
# Source it and amend bash prompt | |
cat << 'END' >> ~/.bashrc |
#!/bin/bash | |
git_dir=$1 | |
cd $git_dir && git rev-list --objects --all | git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' | sed -n 's/^blob //p' | sort --numeric-sort --key=2 | cut -c 1-12,41- | numfmt --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest | awk '$2 >= 2^20' |
# Requires alphagov/govuk-content-schemas to be checked out in the same dir as this script. | |
# $ ruby links_by_schema.rb | |
# writes csv output to ./schema-links.csv | |
require 'csv' | |
require 'json' | |
def schema_name_from_file(schema_file) | |
schema_file.split("/")[4] | |
end |
I hereby claim:
To claim this, I am signing this object:
{ | |
"content_id": "c0f55d25-e6f6-4a7b-9142-0be5e07b734e", | |
"publishing_app": "manuals-publisher", | |
"rendering_app": "manuals-frontend", | |
"format": "manual_section", | |
"locale": "en", | |
"update_type": "major", | |
"base_path": "/service-manual/technology", | |
"public_updated_at": "2016-05-23T12:57:18Z", | |
"title": "Technology", |
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"type": "object", | |
"additionalProperties": false, | |
"required": [ | |
"child_section_groups" | |
], | |
"properties": { | |
"body": { | |
"type": "string", |
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"type": "object", | |
"additionalProperties": false, | |
"required": [ | |
"manual" | |
], | |
"properties": { | |
"section_id": { | |
"type": "string", |
Started GET "/foreign-travel-advice/spain" for ::1 at 2016-02-24 16:35:21 +0000 | |
Processing by TravelAdviceController#show as HTML | |
Parameters: {"country_slug"=>"spain"} | |
Rendered govuk_component/breadcrumbs (0.7ms) | |
Rendered govuk_component/title (1.0ms) | |
Rendered travel_advice/_travel_advice_navigation.html.erb (7.7ms) | |
Rendered govuk_component/metadata (8.9ms) | |
Rendered govuk_component/govspeak (0.8ms) | |
Rendered travel_advice/_country_summary.html.erb (54.9ms) | |
Rendered govuk_component/related_items (2.0ms) |
DraftContentItem.where(publishing_app: "email-campaign-frontend").each do |content_item| | |
content_item.update_attributes!(publishing_app: "share-sale-publisher") | |
payload = Presenters::ContentStorePresenter.present(content_item) | |
ContentStoreWorker.perform_async( | |
content_store: Adapters::DraftContentStore, | |
base_path: content_item.base_path, | |
payload: payload, | |
) | |
end |