Skip to content

Instantly share code, notes, and snippets.

postgres.down:
service:
- name: {{ postgres.service }}
- dead
- prereq:
- cmd: recovery.cmd
recovery.cmd:
cmd.run:
- name: /usr/bin/envdir /var/lib/postgresql/wale-env /usr/local/bin/wal-e backup-fetch /var/lib/postgresql/9.3/main LATEST

Keybase proof

I hereby claim:

  • I am kerin on github.
  • I am kerin (https://keybase.io/kerin) on keybase.
  • I have a public key whose fingerprint is 7F6D 3B09 5238 7546 80D4 2F49 886C 4C04 BB34 6D41

To claim this, I am signing this object:

$ fab workon:master1 rsync
env.real_fabfile: /Users/kerin/Projects/MoJ/cla-deploy/fabfile.py
[workon]:
Loaded config: ../config/cotton.yaml
Loaded config: ../config/projects/cla-dev/project.yaml
Loaded config: /Users/kerin/.cotton.yaml
Selected aws instance: i-02d61642
[workon] finished in: 0.45s
[rsync:master1]
Fetching [email protected]:ministryofjustice/metrics-formula.git to see if master has changed done
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
from .testing import *
INSTALLED_APPS += ('django_extensions',)
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'verbose': {
'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'
#!/usr/bin/env python
import opml
from uuid import uuid4
from pygraphml.GraphMLParser import GraphMLParser
from pygraphml.Graph import Graph
def handle_outline(outline, parent_node=None):
id = uuid4() if parent_node else 'root'
{
'dependants_old': 0,
'dependants_young': 0,
'partner': {
'deductions': {
'income_tax': {
'interval_period': u'per_month',
'per_interval_value': 5000,
'per_month': 5000,
},
SELECT dbo.UserGroupsTbl.UserGroupName, dbo.UsersTbl.UserID, dbo.UsersTbl.FullName, dbo.UsersTbl.UserName, dbo.UsersTbl.Password, dbo.UsersTbl.OrganisationID, dbo.UsersTbl.Email, dbo.UsersTbl.Active,
dbo.UsersTbl.LoggedIn, dbo.UsersTbl.LastLogin, dbo.UsersTbl.NonDMZAccess, dbo.UsersTbl.DMZAccess, dbo.UsersTbl.EmailUser, dbo.UsersTbl.DateModified, dbo.UsersTbl.DateCreated,
dbo.UsersTbl.FailedAttempt, dbo.UsersTbl.AccountLocked, dbo.LinkUsersGroupsTbl.UserGroupID, dbo.UserTypesTbl.UserType, dbo.UsersTbl.UserGUID, dbo.tblClientDetails.dteDateofBirth,
dbo.tblClientDetails.strClientFirstName, dbo.tblClientDetails.strClientSurname, dbo.tblClientDetails.ClientID
FROM dbo.LinkUsersGroupsTbl INNER JOIN
dbo.UserGroupsTbl ON dbo.LinkUsersGroupsTbl.UserGroupID = dbo.UserGroupsTbl.UserGroupID INNER JOIN
dbo.UsersTbl ON dbo.LinkUsersGroupsTbl.UserID = dbo.UsersTbl.UserID INNER JO
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.define "db" do |db|
[1;35mStarting selenium server... started - PID:  20769
Running tests
[ basic.test module ]
Running: Basic test
INFO Request: POST /wd/hub/session
- data: {"desiredCapabilities":{"browserName":"pantomjs","javascriptEnabled":true,"acceptSslCerts":true,"platform":"ANY"},"sessionId":null}
- headers: {"Content-Type":"application/json; charset=utf-8","Content-Length":131}
There was an error while executing the Selenium command