Instantly share code, notes, and snippets.

View install.sh
bundle config --local build.RedCloth --with-cflags="-w"
bundle install
View install.sh
brew install gcc@4.9
export RUBY_CONFIGURE_OPTS=--with-openssl-dir=`brew --prefix openssl`
export CONFIGURE_OPTS=--with-openssl-dir=`brew --prefix openssl`
rbenv install 1.8.7-p375
View Gemfile
source 'https://rubygems.org'
gem 'rspec'
View keybase.md

Keybase proof

I hereby claim:

  • I am floehopper on github.
  • I am floehopper (https://keybase.io/floehopper) on keybase.
  • I have a public key whose fingerprint is 7B45 F05D 5E45 180B 26B8 C9B9 0434 C9E0 037B 0884

To claim this, I am signing this object:

View encrypt-string.md
$ wget https://github.com/<username>.keys
$ ssh-keygen -e -f <username>.key -m PKCS8 > <username>.key.pkcs8
$ openssl rsautl -encrypt -pubin -inkey <username>.key.pkcs8 -in plain.txt -out encrypted.txt
View 2018-04-10-whitehall-code-authorship.md
$ git ls-tree -r -z --name-only HEAD | xargs -0 -n1 git blame --line-porcelain HEAD | grep "^author " | sort | uniq -c | sort -nr

56161 author David Heath
24554 author Tekin Suleyman
14772 author Murray Steele
12286 author Edd Sowden
11746 author Andrew Garner
9137 author James Mead
8358 author russell thorn
View ddclient-help.txt
== NIC specific variables and examples:
o 'changeip'
The 'changeip' protocol is used by DNS services offered by changeip.com.
Configuration variables applicable to the 'changeip' protocol are:
protocol=changeip ##
server=fqdn.of.service ## defaults to nic.changeip.com
login=service-login ## login name and password registered with the service
View 2018-03-06-gds-tech-lead-notes.md

Achievements

  • Added functionality to Asset Manager to support Whitehall attachments, e.g. access-limiting
  • Identified a problem in serving draft attachments in the AWS integration environment

Ongoing and next

  • Continued preparations to start serving Whitehall attachments from Asset Manager
    • Updating state of assets in Asset Manager when state changes in Whitehall
    • Preview of CSV attachments
View commit.txt
commit 3253a2b7cdf1ba8b60365638ad1b517bbc1e30fd
Author: James Mead <james@floehopper.org>
Date: Sun Feb 18 12:21:40 2018 +0000
Publish event for force_publish within EditionUnwithdrawer#perform!
The EditionUnwithdrawer was already publishing an 'unwithdrawn' event to
the notifier for the originally withdrawn edition which ends up as
superseded, but it was not publishing a 'force_publish' event for the
new draft edition which is force-published.
View whitehall-ffi-error.log
vagrant@development:~$ cd /var/apps/whitehall
vagrant@development:/var/apps/whitehall$ bundle
Fetching gem metadata from https://rubygems.org/.........
Using rake 12.3.0
Using Ascii85 1.0.3
Using PriorityQueue 0.1.2
Using concurrent-ruby 1.0.5
Using i18n 0.9.5
Using minitest 5.11.3
Using thread_safe 0.3.6