#Some discussions on logging from docker: Using logstash Using Papertrail
A lot of this boils down to whether you want a single or multi-process (systemd, supervisord etc.) container...
#Some discussions on logging from docker: Using logstash Using Papertrail
A lot of this boils down to whether you want a single or multi-process (systemd, supervisord etc.) container...
(ns example.core | |
(:gen-class) | |
(:require [immutant.web :as web] | |
[immutant.web.websocket :as ws] | |
[ring.middleware.resource :refer [wrap-resource]] | |
[ring.util.response :refer [redirect]] | |
[msgpack.core :as msgpack])) | |
(defn -main | |
[& args] |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew doctor | |
brew update | |
brew install wget | |
brew install watch | |
brew install mobile-shell | |
brew install mysql --client-only | |
brew install git | |
brew install gnu-sed | |
brew install graphicsmagick |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>KeepAlive</key> | |
<true/> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>Label</key> | |
<string>homebrew.mxcl.aria2</string> |
A hopefully short and concise explanation as to how Clojure deals with Objects. If you already write Clojure, this isn't for you.
You know what an Interface is if you write/read Java or PHP 5+. In Clojure it might be called defprotocol.
user> (defprotocol IABC
(also-oo [this])
(another-fn [this x]))
IABC
/* | |
Add `nouns` as http mocks and use in a local db, available via API in develoment | |
* Install the adapter `npm install rethinkdb_adapter --save-dev` | |
* Install RethinkDB, see https://github.com/pixelhandler/ember-slide-deck/blob/master/bin/install_rethinkdb.sh | |
* Start db `rethinkdb` | |
* Setup Db and Table, see https://github.com/pixelhandler/ember-slide-deck/blob/master/bin/setup_db.js | |
* Generate a mock `ember g http-mock nouns` and edit your mock to use the db, see code below for 'slides' | |
* Set your application adapter to use `namespace: 'api'` | |
* In our routes use Ember Data in your model hook |
(ns path.to.services.env | |
(:require | |
[clojure.tools.logging :as log] | |
[puppetlabs.trapperkeeper.core :as tk] | |
[puppetlabs.trapperkeeper.services :as s])) | |
(defprotocol EnvironmentConfigService | |
(get-config [this] | |
"Returns a map containing all of the configuration values (enviornmentally aware). Any string value that is | |
prefixed by ENV_, will be considered an environmental variable.") |
(ns datascript-to-datomic-util | |
(:require [datascript :as d])) | |
;;;; a utility to help with a datomic-datascript roundtrip process involving: | |
;;; 1. export some data from a datomic database and transact into a datascript instance. | |
;;; 2. perform one or more transactions against datascript. | |
;;; 3. transact the sum of all changes made against datascript back into datomic in a single tx | |
;;; this namespace contains two public functions: | |
;;; listen-for-changes: listen to datascript transactions and build up a record of changes |