Skip to content

Instantly share code, notes, and snippets.

Dan Carley dcarley

Block or report user

Report or block dcarley

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:2db86780eb99c2586f4b
➜ paas-cf git:(master) ✗ git di | cat
diff --git a/manifests/bosh-manifest/spec/fixtures/bosh-secrets.yml b/manifests/bosh-manifest/spec/fixtures/bosh-secrets.yml
index b79dc79..61a0c42 100644
--- a/manifests/bosh-manifest/spec/fixtures/bosh-secrets.yml
+++ b/manifests/bosh-manifest/spec/fixtures/bosh-secrets.yml
@@ -7,4 +7,5 @@ secrets:
bosh_redis_password: BOSH_REDIS_PASSWORD
bosh_blobstore_director_password: BOSH_BLOBSTORE_DIRECTOR_PASSWORD
bosh_hm_director_password: BOSH_HM_DIRECTOR_PASSWORD
- bosh_admin_password: BOSH_ADMIN_PASSWORD
@dcarley
dcarley / config.diff
Created Oct 1, 2015
Varnish ACL /32 test
View config.diff
diff --git a/mock_cdn_config/modules/varnish/templates/default.vcl.erb b/mock_cdn_config/modules/varnish/templates/default.vcl.erb
index 4dd5d5b..996953f 100644
--- a/mock_cdn_config/modules/varnish/templates/default.vcl.erb
+++ b/mock_cdn_config/modules/varnish/templates/default.vcl.erb
@@ -55,7 +55,7 @@ backend sick_force_grace {
# line-by-line, otherwise we'll have trouble maintaining parity.
acl purge {
- "192.168.0.1";
+ "192.168.0.1"/32;
View Gemfile
source "https://rubygems.org"
gem "bosh_cli", "1.3056.0"
@dcarley
dcarley / disable_anull_ciphers.patch
Created Sep 24, 2015
git commit - Disable Nginx SSL/TLS aNULL ciphers
View disable_anull_ciphers.patch
commit a23477e06eecc147927143d07e76a412039e462b
Author: Dan Carley <dan.carley@gmail.com>
Date: Wed Mar 26 08:17:41 2014 +0000
[#68243876] Disable Nginx SSL/TLS aNULL ciphers
NB: This commits contains a lot of output and references NOT because I know
what I'm doing with SSL ciphers. Quite the opposite.
The upgrade of machines from Lucid to Precise for Platform1 introduced a
View gist:561a662d6ccbbd9000f0
python -m trace -t $(which ansible-galaxy) install -r requirements.yml --force
--- modulename: socket, funcname: meth
socket.py(224): return getattr(self._sock,name)(*args)
ssl.py(568): except (OSError, ValueError):
urllib2.py(1195): except socket.error, err: # XXX what error?
urllib2.py(1196): h.close()
--- modulename: httplib, funcname: close
httplib.py(800): if self.sock:
httplib.py(801): self.sock.close() # close it manually... there may be other refs
View ovf-env.xml
<?xml version="1.0" encoding="UTF-8"?>
<Environment
xmlns="http://schemas.dmtf.org/ovf/environment/1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:oe="http://schemas.dmtf.org/ovf/environment/1"
xmlns:ve="http://www.vmware.com/schema/ovfenv"
oe:id=""
ve:vCenterId="vm-378847">
<PlatformSection>
<Kind>VMware ESXi</Kind>
@dcarley
dcarley / gist:3f97c24c489b0681c39a
Created Sep 16, 2014
GOV.UK IPv6 bare redirect
View gist:3f97c24c489b0681c39a
dan@vps:~$ curl -vkgL -H "Host: gov.uk" -o/dev/null https://\[2400:cb00:2048:1::6810:1931\]
* Rebuilt URL to: https://[2400:cb00:2048:1::6810:1931]/
* Hostname was NOT found in DNS cache
* Trying 2400:cb00:2048:1::6810:1931...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Connected to 2400:cb00:2048:1::6810:1931 (2400:cb00:2048:1::6810:1931) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: none
View gist:a960b88c235fdb29c552
➜ ~ sw_vers -productVersion
10.8.5
➜ ~ ls -l /System/Library/Frameworks/Ruby.framework/Versions/
total 8
drwxr-xr-x 7 root wheel 238 28 Jul 08:55 1.8
lrwxr-xr-x 1 root wheel 3 11 Mar 2013 Current -> 1.8
View gist:7b3566931b1e77ac3481
➜ vcloud-core git:(vcloud_login_token_tool) b ./bin/vcloud-login
vCloud password:
/Users/dcarley/vendor/bundle/gems/fog-core-1.22.0/lib/fog/core/errors.rb:114:in `missing_credentials': Missing Credentials (Fog::Errors::LoadError)
To run as 'default', add the following to your resource config file: /Users/dcarley/.fog
An alternate file may be used by placing its path in the FOG_RC environment variable
#######################################################
# Fog Credentials File
#
View gist:880b6b8b075d21a02973
Replaces: icedtea-6-plugin, icedtea-7-plugin, openjdk-6-jdk, openjdk-6-jre, openjdk-6-jre-headless, openjdk-7-jdk, openjdk-7-jre, openjdk-7-jre-headless, oracle-java7-bin, oracle-java7-fonts, oracle-java7-jdk, oracle-java7-jre, oracle-java7-plugin, oracle-jdk7-installer, sun-java6-bin, sun-java6-fonts, sun-java6-jdk, sun-java6-jre, sun-java6-plugin
Provides: default-jre, default-jre-headless, icedtea-6-plugin, icedtea-7-plugin, java-compiler, java-jdk, java-runtime, java-runtime-headless, java-sdk, java-virtual-machine, java2-jdk, java2-runtime, java2-runtime-headless, java2-sdk, java5-jdk, java5-runtime, java5-runtime-headless, java5-sdk, java6-jdk, java6-runtime, java6-runtime-headless, java6-sdk, java7-jdk, java7-runtime, java7-runtime-headless, java7-sdk, openjdk-6-jdk, openjdk-6-jre, openjdk-6-jre-headless, openjdk-7-jdk, openjdk-7-jre, openjdk-7-jre-headless, oracle-java7-bin, oracle-java7-fonts, oracle-java7-jdk, oracle-java7-jre, oracle-java7-plugin, sun-java6-bin, sun-java6-fonts, sun-java6-jdk, sun-
You can’t perform that action at this time.