Skip to content

Instantly share code, notes, and snippets.

View boffbowsh's full-sized avatar

Paul Bowsher boffbowsh

View GitHub Profile
Started by remote host 54.83.125.94
[EnvInject] - Loading node environment variables.
Building remotely on ci-slave-4.internal in workspace /home/jenkins/workspace/govuk_gds_sso_branches
Checkout:govuk_gds_sso_branches / /home/jenkins/workspace/govuk_gds_sso_branches - hudson.remoting.Channel@3a430e0:ci-slave-4.internal
Using strategy: Default
Last Built Revision: Revision 4ef82dedd815f685e9711b8e256581adc6a91386 (origin/bearer-api-calls)
Fetching changes from 1 remote Git repository
Fetching upstream changes from origin
Commencing build of Revision 4ef82dedd815f685e9711b8e256581adc6a91386 (origin/bearer-api-calls)
Checking out Revision 4ef82dedd815f685e9711b8e256581adc6a91386 (origin/bearer-api-calls)

Keybase proof

I hereby claim:

  • I am boffbowsh on github.
  • I am boffbowsh (https://keybase.io/boffbowsh) on keybase.
  • I have a public key ASCh8rsxt3wMaPEYID-CbN86j-Ud2jc-IjeShrBCScJNvgo

To claim this, I am signing this object:

Started by remote host 54.198.245.65
[EnvInject] - Loading node environment variables.
Building remotely on ci-slave-4.internal in workspace /home/jenkins/workspace/govuk_gds_sso_branches
Checkout:govuk_gds_sso_branches / /home/jenkins/workspace/govuk_gds_sso_branches - hudson.remoting.Channel@54d7ac37:ci-slave-4.internal
Using strategy: Default
Last Built Revision: Revision c6ec519b0b3fa60eb4bfe0d564d04b9bdec458b3 (origin/guidance-guarantee-programme-rails-5)
Fetching changes from 1 remote Git repository
Fetching upstream changes from origin
Commencing build of Revision b16375a2823d75f6f25d5170272bb6261f128907 (origin/guidance-guarantee-programme-rails-5)
Checking out Revision b16375a2823d75f6f25d5170272bb6261f128907 (origin/guidance-guarantee-programme-rails-5)
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
#!/usr/bin/env perl
# This program is part of Percona Toolkit: http://www.percona.com/software/
# See "COPYRIGHT, LICENSE, AND WARRANTY" at the end of this file for legal
# notices and disclaimers.
use strict;
use warnings FATAL => 'all';
# This tool is "fat-packed": most of its dependent modules are embedded
@boffbowsh
boffbowsh / cve_2015_3226_fix.rb
Last active August 29, 2015 14:23
curl / wget this (retaining the name) into `config/initializers` to fix the CVE-2015-3226 vulnerability in Rails 3.2.22 apps
raise "Check monkey patch for CVE-2015-3226 is still needed" unless Rails::VERSION::STRING == '3.2.22'
module ActiveSupport
module JSON
module Encoding
private
class EscapedString
def to_s
self
end
end
source "https://rubygems.org"
@boffbowsh
boffbowsh / gist:28da0cdd02022b26eada
Created May 17, 2015 10:17
Diff of output of Sass and SassC for Whitehall
< html input[type="button"],
< input[type="reset"],
> html input[type="button"], input[type="reset"],
< .row:before, .row:after {
> .row:before,
> .row:after {
< .row-fluid:before, .row-fluid:after {
> .row-fluid:before,
> .row-fluid:after {
< *margin-left: 85.0%;
121 Recruitment
Abbeywood International Recruitment T/A ABW recruitment
ABRS Limited
AdRoc Limited
Advanced Resource Managers IT Limited
KEY_COLUMN = 2
with csv.reader(f1) as csv1:
d1 = {r[KEY_COLUMN]: r for r in csv1}
with csv.reader(f2) as csv2:
d2 = {r[KEY_COLUMN]: r for r in csv2}
merged_dict = {x:d1[x] for x in d1 if x in d2}