Skip to content

Instantly share code, notes, and snippets.

View GeorgeDewar's full-sized avatar

George Dewar GeorgeDewar

  • Wellington, New Zealand
View GitHub Profile
@GeorgeDewar
GeorgeDewar / gist:22ea744475a19b9871ff
Last active August 29, 2015 14:11
LINZ Landonline Schema
drop table action_type cascade;
create table action_type (
type varchar(4),
description varchar(200) not null,
system_action char(1) not null,
sob_name varchar(50), -- FK
existing_inst char(1) not null,
audit_id integer not null
);
@GeorgeDewar
GeorgeDewar / example.js
Created March 5, 2016 08:23
A technique for keeping the UI thread moving when you need to do a fair bit of processing
var loadChain = new LoadChain();
loadChain.push(function(){
console.log("Intensive work is happening here...");
});
loadChain.push(function(){
console.log("And some more is happening here...");
});

Keybase proof

I hereby claim:

  • I am GeorgeDewar on github.
  • I am georgedewar (https://keybase.io/georgedewar) on keybase.
  • I have a public key whose fingerprint is C785 F10D 113C 91D8 7BEB 7759 1AE0 8CE9 255B 3067

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am georgedewar on github.
  • I am georgedewar (https://keybase.io/georgedewar) on keybase.
  • I have a public key ASD35yet3brxEy0eiJvjJ5-DQgGxxdHbIW5dKRJxNKhTwwo

To claim this, I am signing this object:

@GeorgeDewar
GeorgeDewar / fido2_client.rb
Created January 3, 2025 05:47
Authenticating to a service using an exported Passkey in Ruby
require "json"
require "digest"
require "openssl"
require "base64"
module Fido2Client
Passkey = Data.define(:credentialId, :keyAlgorithm, :keyCurve, :keyValue, :userHandle)
Assertion = Data.define(:authenticator_data, :client_data_json, :credential_id, :user_handle, :signature)
class Client