Skip to content

Instantly share code, notes, and snippets.

View PilchardFriendly's full-sized avatar

Nick Drew PilchardFriendly

  • ThoughtWorks
  • Sydney
View GitHub Profile
A server:
On Amazon lightsail:
Provision a box with:
4 GB RAM, 2 vCPUs, 80 GB SSD – Sydney, all zones (ap-southeast-2
Mine was ubuntu 20 - basically $20 a month, but we're not going to use that.
Give your instance a name (e.g. "cranky-pants")
Select your instance, choose networking, and make sure it has a rule:
Custom/TCP/25565
SSh into your server:

Keybase proof

I hereby claim:

  • I am pilchardfriendly on github.
  • I am nickdrew (https://keybase.io/nickdrew) on keybase.
  • I have a public key ASAqRWDou56GxM2ilydTRKYGHrJcg9By9ZLx1AvTiCFqMwo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am pilchard-friendly on github.
  • I am nickdrew (https://keybase.io/nickdrew) on keybase.
  • I have a public key ASAqRWDou56GxM2ilydTRKYGHrJcg9By9ZLx1AvTiCFqMwo

To claim this, I am signing this object:

c9v3/
.openshift/
bin/
env/
metadata/manifest.yml
.git/
config <= [remote/cdk] -> cdk based application
origin
@PilchardFriendly
PilchardFriendly / gist:3b9da0d67cc711412718
Last active August 29, 2015 14:01
Thoughts on cartridge format
cartridge
github repo (c9v3 repo)
.openshift/
bin/
control <- scripts to start/stop etc.
setup <- configuring container vs host
teardown
env
metadata/
manfest.yml *****
@PilchardFriendly
PilchardFriendly / validation.clj
Created January 3, 2013 02:43
Validation DSL comparison
(validation :postal_address
:street_number [required :message "waaaah!"]
:country [required]
(validation :record
:email [
v/required
v/number
v/email :message "naaah" :when green
v/matches :expr /gmail[.]com$/ :message "woah!"]
@PilchardFriendly
PilchardFriendly / example-amd-jquery-spec.js
Created January 28, 2012 04:06
Sample production code using AMD to specify a dependency on jQuery
define(['factory!example-amd-jquery', 'jquery'], function(exampleDefinition, $){
describe('An Example AMD modules with jquery', function(){
beforeEach(function(){
this.subject = exampleDefinition($);
});
it('should say hi', function(){
expect(this.subject).toBe('hi!')
});
});