Skip to content

Instantly share code, notes, and snippets.

View green-arrow's full-sized avatar

Andrew Walton green-arrow

View GitHub Profile

Keybase proof

I hereby claim:

  • I am green-arrow on github.
  • I am greenarrow (https://keybase.io/greenarrow) on keybase.
  • I have a public key whose fingerprint is 6EC3 FF40 C08D F037 6752 8BBF 6DF9 209E EF24 9D93

To claim this, I am signing this object:

import Ember from 'ember';
let Person = Ember.Object.extend({
notificationService: Ember.inject.service(),
firstName: null,
lastName: null,
fullName: Ember.computed('firstName', 'lastName', function() {
return `${this.get('firstName')} ${this.get('lastName')}`;
})
@green-arrow
green-arrow / pk_info.sql
Created October 23, 2015 01:32
Retrieve PK info from PostgreSQL
SELECT t.table_catalog,
t.table_schema,
t.table_name,
kcu.constraint_name,
kcu.column_name,
kcu.ordinal_position
FROM INFORMATION_SCHEMA.TABLES t
LEFT JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc
ON tc.table_catalog = t.table_catalog
AND tc.table_schema = t.table_schema
@green-arrow
green-arrow / gist:2b343ec379bc73e8ab8d
Created March 16, 2015 18:26
SSH2 connection failing in mac (mscdex/ssh#238)
DEBUG: Local ident: 'SSH-2.0-ssh2js0.0.6'
DEBUG: Client: Trying 52.1.193.132 on port 22 ...
DEBUG: Client: Connected
DEBUG: Parser: IN_INIT
DEBUG: Parser: IN_GREETING
DEBUG: Parser: IN_HEADER
DEBUG: Remote ident: 'SSH-2.0-OpenSSH_6.2'
DEBUG: Outgoing: Writing KEXINIT
DEBUG: Parser: IN_PACKETBEFORE (expecting 8)
DEBUG: Parser: IN_PACKET