Skip to content

Instantly share code, notes, and snippets.

View tacurran's full-sized avatar
💭
github/ory... open for ideas

Thomas Aidan Curran tacurran

💭
github/ory... open for ideas
View GitHub Profile
@tacurran
tacurran / foobar.go
Created April 27, 2020 20:04
testgist database migration for @zepatrik
func TestMigrations(t *testing.T) {
// start a test container and create the database connection
connection := dockertest.ConnectToTestPostgreSQLPop(t)
// The test migrator searches for testdata SQL files in the ./testdata directory.
// After applying each migration it runs its corresponding testdata file.
// This test migrator highly depends on the way you apply migrations.
testMigrator := NewTestMigrator(t, connection, "../migrations", "./testdata")
require.NoError(t, testMigrator.Up())
// there are 10 migrations
for i := 0; i < 10; i++ {

Keybase proof

I hereby claim:

  • I am tacurran on github.
  • I am tacurran (https://keybase.io/tacurran) on keybase.
  • I have a public key ASBB606JbbK0QRB-RxrPPWMs7xRuEtG9C0IRX8aOVsfgmAo

To claim this, I am signing this object:

package store
type ContactStorer interface {
FetchContacts() (Contacts, error)
GetContact(id string) (*Contact, error)
DeleteContact(id string) error
CreateContact(*Contact) error
UpdateContact(*Contact) error
}
@tacurran
tacurran / uid remote delete
Created November 6, 2014 08:27
remove uid branch
@arekkas
https://github.com/tacurran/uid
| /users/thomasaidancurran/gocode/src/github.com/tacurran/uid @ MBA11 (thomasaidancurran)
| => git push origin :uid
Username for 'https://github.com': tacurran
Password for 'https://tacurran@github.com':
remote: Permission to baldur-io/uid.git denied to tacurran.
fatal: unable to access 'https://github.com/baldur-io/uid.git/': The requested URL returned error: 403