Skip to content

Instantly share code, notes, and snippets.

View wyaeld's full-sized avatar
🐣
work in progress

Brad Murray wyaeld

🐣
work in progress
View GitHub Profile
@wyaeld
wyaeld / development.yml
Created November 5, 2015 08:51
basic dev environment
---
- name: Ensure development containers
hosts: localhost
connection: local
gather_facts: False
tasks:
- name: data db container
docker:
@wyaeld
wyaeld / config.ru.rb
Created January 19, 2012 23:32 — forked from brianmario/config.ru.rb
minimal rails3 app
# minimal rails3 app
require 'action_controller'
Router = ActionDispatch::Routing::RouteSet.new
Router.draw do
root :to => 'site#index'
end
class SiteController < ActionController::Metal
@wyaeld
wyaeld / ArchiveServiceMessagesJob.java
Created November 15, 2011 01:20
DI Style Service
public class ArchiveServiceMessagesJob extends AbstractJob {
private static final int PAGE_SIZE = 10;
private ServiceMessageRepository messageRepository;
private AlfrescoAtomPubClient alfrescoClient;
@Autowired
public ArchiveServiceMessagesJob(ServiceMessageRepository messageRepository,
AlfrescoAtomPubClient alfrescoClient) {
@wyaeld
wyaeld / person_test.rb
Created October 27, 2011 09:46 — forked from tenderlove/person_test.rb
Use minitest/spec with Rails 3
require 'test_helper'
require 'minitest/autorun'
module Tenderlove
class Spec < MiniTest::Spec
include ActiveSupport::Testing::SetupAndTeardown
include ActiveRecord::TestFixtures
alias :method_name :__name__ if defined? :__name__
self.fixture_path = File.join(Rails.root, 'test', 'fixtures')

Production Ready Process Monitoring

  1. Install docker-manger.conf and docker-instance.conf in /etc/init

  2. Create a containers file in /etc/docker/ with the following format

     name: image cmd
    

    The name must be unique.

  3. sudo service docker-manager start

Keybase proof

I hereby claim:

  • I am wyaeld on github.
  • I am wyaeld (https://keybase.io/wyaeld) on keybase.
  • I have a public key whose fingerprint is 923F AAAD 9255 3CD7 7DCA 9AA5 C58F 04F8 AE5A 814B

To claim this, I am signing this object: