Skip to content

Instantly share code, notes, and snippets.

View omartell's full-sized avatar
🚀
Shipping

Oliver Martell Núñez omartell

🚀
Shipping
  • London, United Kingdom
View GitHub Profile
@omartell
omartell / gist:3347de57965b4b4231b6
Created March 13, 2016 10:15 — forked from SzymonPobiega/gist:5220595
DDD/CQRS/ES/Architecture videos

If you have two days to learn the very basics of modelling, Domain-Driven Design, CQRS and Event Sourcing, here's what you should do:

In the evenings read the [Domain-Driven Design Quickly Minibook]{http://www.infoq.com/minibooks/domain-driven-design-quickly}. During the day watch following great videos (in this order):

  1. Eric Evans' [What I've learned about DDD since the book]{http://www.infoq.com/presentations/ddd-eric-evans}
  2. Eric Evans' [Strategic Design - Responsibility Traps]{http://www.infoq.com/presentations/design-strategic-eric-evans}
  3. Udi Dahan's [Avoid a Failed SOA: Business & Autonomous Components to the Rescue]{http://www.infoq.com/presentations/SOA-Business-Autonomous-Components}
  4. Udi Dahan's [Command-Query Responsibility Segregation]{http://www.infoq.com/presentations/Command-Query-Responsibility-Segregation}
  5. Greg Young's [Unshackle Your Domain]{http://www.infoq.com/presentations/greg-young-unshackle-qcon08}
  6. Eric Evans' [Acknowledging CAP at the Root -- in the Domain Model]{ht
@omartell
omartell / kafka.md
Created March 12, 2016 14:11 — forked from ashrithr/kafka.md
kafka introduction

Introduction to Kafka

Kafka acts as a kind of write-ahead log (WAL) that records messages to a persistent store (disk) and allows subscribers to read and apply these changes to their own stores in a system appropriate time-frame.

Terminology:

  • Producers send messages to brokers
  • Consumers read messages from brokers
  • Messages are sent to a topic
@omartell
omartell / clean-db.clj
Created March 10, 2016 13:21
Clojure JDBC rollback
(jdbc/with-db-transaction [conn datasource]
(jdbc/db-set-rollback-only! conn)
(jdbc/with-db-transaction [conn' conn]
(jdbc/insert! conn' :allocation_setting_updates {:tracking_id (java.util.UUID/randomUUID)
:message nil})))

Why I chose Fish over Bash for students

I'm currently the lead instructor at Code Platoon and an instructor/developer at the Turing School of Software and Design.

I've been advocating the Fish shell and when the choice is up to me, I choose that for my students. Enough people ask about the decision, particularly in relation to the preinstalled Bash shell, that I figured it's worth laying out my reasoning.

TL;DR

@omartell
omartell / init.el
Created January 14, 2016 22:21
New Emacs Config
;; User Details
(setq user-full-name "Oliver Martell")
(setq user-email-address "[email protected]")
;; Environment
(setenv "PATH" (concat "/usr/local/bin:/opt/local/bin:/usr/bin:/bin" (getenv "PATH")))
;; Package Management
(load "package")
(package-initialize)
@omartell
omartell / codemesh2015.org
Created November 4, 2015 22:56 — forked from philandstuff/codemesh2015.org
Code mesh 2015 notes

Kush, an introduction to schedulers

about me

  • I work for GDS
  • Cabinet Office
  • we started by building GOV.UK
    • replaced older sites like direct gov, business link
  • we’re not just fixing websites
    • we also build and run digital services
    • working with depts across the country
    • eg: register to vote
@omartell
omartell / polymorphic_counter_cache.rb
Created September 7, 2015 13:41
polymorphic counter cache
before_create do
self.class.reflections['document'].options[:counter_cache] = self['post_type'].underscore.pluralize + '_count'
end
@omartell
omartell / tmux-cheatsheet.markdown
Last active August 26, 2015 15:03 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@omartell
omartell / gist:6e60930480237a172025
Last active August 29, 2015 14:27 — forked from edvinasbartkus/gist:0e99ea8305a20737f562
Ruby puma.gem install on El Capitan
gem install puma -- --with-cppflags=-I/usr/local/opt/openssl/include --with-ldflags=-L/usr/local/opt/openssl/lib
@omartell
omartell / alias_matchers.md
Last active August 29, 2015 14:27 — forked from JunichiIto/alias_matchers.md
List of alias matchers in RSpec 3

This list is based on aliases_spec.rb.

You can see also Module: RSpec::Matchers API.

matcher aliased to description
a_truthy_value be_truthy a truthy value
a_falsey_value be_falsey a falsey value
be_falsy be_falsey be falsy
a_falsy_value be_falsey a falsy value