- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
| <?xml version="1.0"?> | |
| <!DOCTYPE module PUBLIC | |
| "-//Puppy Crawl//DTD Check Configuration 1.3//EN" | |
| "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> | |
| <module name="Checker"> | |
| <property name="charset" value="UTF-8" /> | |
| <property name="severity" value="warning" /> | |
| <!-- Checks for whitespace --> | |
| <!-- See http://checkstyle.sf.net/config_whitespace.html --> | |
| <module name="FileTabCharacter"> |
| (ns datomic-helpers | |
| (:require [datomic.api :as d])) | |
| ;;; Expose Datomic vars here, for convenience | |
| ;;; Ring middleware | |
| (defn wrap-datomic | |
| "A Ring middleware that provides a request-consistent database connection and | |
| value for the life of a request." |
| (ns datomic-helpers | |
| (:require [clojure.java.io :as io] | |
| [clojure.walk :as walk] | |
| [datomic.api :as d :refer (db)])) | |
| ;;; Expose Datomic vars here, for convenience | |
| (def tempid d/tempid) | |
| (def connect d/connect) | |
| (def create-database d/create-database) |
| (ns handler | |
| (:require [clj-time.core :as t] | |
| [clj-time.coerce :as t.c] | |
| [spec-tools.conform :as conform] | |
| [clojure.spec.alpha :as s] | |
| [spec-tools.core :as st] | |
| [compojure.api.sweet :refer :all] | |
| [ring.util.http-response :refer :all])) | |
| (def timestamp |
| about | |
| admin | |
| blog | |
| calendar | |
| contact | |
| copyright | |
| dashboard | |
| errors | |
| events |
| package main | |
| func main() { | |
| // ... setup ... | |
| l, err := net.Listen("tcp", *laddr) | |
| if err != nil { | |
| log.Fatal(err) | |
| } |
ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
| #!/bin/bash | |
| HOSTNAME="${COLLECTD_HOSTNAME:-`hostname -f`}" | |
| INTERVAL="${COLLECTD_INTERVAL:-10}" | |
| while sleep "$INTERVAL" | |
| do | |
| info=$(curl http://myriak/stats -H "accept: text/plain") |