View twilio-conference-line.xml
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say>
This is the Go Free Range conference line. You'll be connected shortly.
</Say>
<Dial>
<Conference>conference-line</Conference>
</Dial>
</Response>
View osx-sierra-install-from-tom-stuart.sh
# Menu bar: show battery percentage
defaults write com.apple.menuextra.battery ShowPercent -string "YES"
# Show date in clock
defaults write com.apple.menuextra.clock DateFormat -string "EEEE d MMM HH:mm"
# Trackpad: enable tap to click for this user and for the login screen
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
View comparison.md

Sendfile from NFS

$ curl -s -v http://assets-origin.dev.gov.uk/media/59a57a76759b745dd1e4555e/tmp.txt
*   Trying 10.1.1.254...
* TCP_NODELAY set
* Connected to assets-origin.dev.gov.uk (10.1.1.254) port 80 (#0)
> GET /media/59a57a76759b745dd1e4555e/tmp.txt HTTP/1.1
> Host: assets-origin.dev.gov.uk
> User-Agent: curl/7.54.0
View etag-and-last-modified-set-from-rails.md

Serving from NFS via Nginx with ETag & Last-Modified set by Nginx

$ curl -s -v http://assets-origin.dev.gov.uk/media/599ef676759b7414919c2e7b/tmp.txt
*   Trying 10.1.1.254...
* TCP_NODELAY set
* Connected to assets-origin.dev.gov.uk (10.1.1.254) port 80 (#0)
> GET /media/599ef676759b7414919c2e7b/tmp.txt HTTP/1.1
> Host: assets-origin.dev.gov.uk
> User-Agent: curl/7.54.0
View install.md

List & install software updates

softwareupdate --list
sudo softwareupdate --verbose --install --all

Set computer name

COMPUTER_NAME="<computer-name>"
sudo scutil --set ComputerName $COMPUTER_NAME
View find-sha-of-commit-in-which-file-with-matching-name-was-added.sh
FILENAME="about"; git log --numstat --reverse --format=format:'SHA %H' --diff-filter=A --name-only | awk -v pattern="$FILENAME" '1;$0 ~ pattern {exit}' | grep SHA | tail -n 1 | cut -d ' ' -f 2
View append-created-at-and-updated-at-to-snips-based-on-git-log.sh
ack --files-without-matches ":created_at:" soups | xargs -n 1 sh -c 'printf "\n:created_at: " >> $0; git log --format=format:%ai --follow $0 | tail -n 1 >> $0'
ack --files-without-matches ":updated_at:" soups | xargs -n 1 sh -c 'printf "\n:updated_at: " >> $0; git log --format=format:%ai --follow $0 | head -n 1 >> $0'
View 2017-08-02-go-free-range-update.md

Done

  • Upgraded Ruby from v2.2.3 to v2.3.1 in Asset Manager
  • Upgraded mongoid gem from v4.0.2 to v5.2.1 in Asset Manager
  • Upgraded rubocop gem within govuk-lint gem
  • Upgraded govuk-lint gem from v2.1.0 to v3.1.0 in Asset Manager
  • Merged & deployed changes to Terraform to create AWS resources for Asset Manager
  • Updated secret hieradata with AWS credentials for all evironments

Doing

View example.rb
# config/application.rb
module Foo
class Railtie < Rails::Railtie
config.foo = ActiveSupport::OrderedOptions.new
end
def self.config
Railtie.config.foo
end
View test.md