Skip to content

Instantly share code, notes, and snippets.

View rorymckinley's full-sized avatar

Rory McKinley rorymckinley

  • Cape Town, South Africa
View GitHub Profile
<text xml:space="preserve">
<note-content version="0.1">
Example Content
</note-content>
</text>
<xs:element name="text">
<xs:complexType>
<xs:sequence>
...
</xs:sequence>
<xs:attribute name="xml:space"/>
</xs:complexType>
</xs:element>
@rorymckinley
rorymckinley / gist:656678
Created October 31, 2010 14:55
Snippet of valid_note.xsd
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://beatniksoftware.com/tomboy" attributeFormDefault="unqualified" elementFormDefault="qualified">
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd" />
...
<xs:element name="text">
<xs:complexType>
<xs:sequence>
...
</xs:sequence>
<xs:attribute ref="xml:space"/>
</xs:complexType>
@rorymckinley
rorymckinley / New Interface
Created June 28, 2012 09:43
The two types of uniforum responses
$ whois -h whois.registry.net.za mckinley.co.za
Domain Name:
mckinley.co.za
Registrant:
Rory McKinley
Email: rorymckinley@gmail.com
Tel: +27.846768918
Fax:
@rorymckinley
rorymckinley / update
Created July 16, 2012 19:03
CI Dispatcher
# Update Hook
# Get branch from ARGV.first
# Is this a workbench branch?
# Yes
# Is this the Ci bot pushing?
# Yes
# Allow push
@rorymckinley
rorymckinley / config.log
Created January 18, 2014 06:29
rvm config.log for 2.0.0-p353
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/home/rory/.rvm/rubies/ruby-2.0.0-p353 --disable-install-doc --enable-shared
## --------- ##
## Platform. ##
@rorymckinley
rorymckinley / keybase.md
Created September 4, 2015 07:42
For Keybase

Keybase proof

I hereby claim:

  • I am rorymckinley on github.
  • I am rorymckinley (https://keybase.io/rorymckinley) on keybase.
  • I have a public key whose fingerprint is 845F E590 29AD D21F 82FE 1D7B 5D55 0425 606B 3A79

To claim this, I am signing this object:

@rorymckinley
rorymckinley / models.py
Created September 14, 2015 20:28
Odoo Prototype Model
from openerp import models, fields, api
class alpha(models.Model):
_name = 'lfah.alpha'
name = fields.Char()
description = fields.Text()
def write_to_tmp(self, cr, uid, context=None):
f = open("/tmp/alpha_stuff", "w")
@rorymckinley
rorymckinley / crons.xml
Created September 14, 2015 20:43
Prototype Odoo Cron
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record forcecreate="True" id="ir_cron_write_to_tmp" model="ir.cron">
<field name="name">Alpha Test Cron</field>
<field eval="True" name="active" />
<field name="user_id" ref="base.user_root" />
<field name="interval_number">1</field>
<field name="interval_type">hours</field>
@rorymckinley
rorymckinley / pta_error.ex
Created November 4, 2015 20:14
Phoenix token auth backtrace
(ecto) lib/ecto/changeset.ex:447: Ecto.Changeset.type!/2
(ecto) lib/ecto/changeset.ex:400: Ecto.Changeset.process_param/6
(elixir) lib/enum.ex:1102: Enum."-map_reduce/3-lists^mapfoldl/2-0-"/3
(ecto) lib/ecto/changeset.ex:372: Ecto.Changeset.cast/5
(ecto) lib/ecto/changeset.ex:343: Ecto.Changeset.cast/4
lib/phoenix_token_auth/registrator.ex:12: PhoenixTokenAuth.Registrator.changeset/1
lib/phoenix_token_auth/controllers/users_controller.ex:39: PhoenixTokenAuth.Controllers.Users.create/2
lib/phoenix_token_auth/controllers/users_controller.ex:1: PhoenixTokenAuth.Controllers.Users.action/2
lib/phoenix_token_auth/controllers/users_controller.ex:1: PhoenixTokenAuth.Controllers.Users.phoenix_controller_pipeline/2
(openfn_ix) lib/phoenix/router.ex:255: OpenfnIx.Router.dispatch/2