This is a maintained listing of all the different ways to debug and profile Node.js applications. If there is something missing or an improvement, post a comment! :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| HOSTNAME="${COLLECTD_HOSTNAME:-`hostname -f`}" | |
| INTERVAL="${COLLECTD_INTERVAL:-10}" | |
| while sleep "$INTERVAL" | |
| do | |
| info=$(curl http://myriak/stats -H "accept: text/plain") |
ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| func main() { | |
| // ... setup ... | |
| l, err := net.Listen("tcp", *laddr) | |
| if err != nil { | |
| log.Fatal(err) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| about | |
| admin | |
| blog | |
| calendar | |
| contact | |
| copyright | |
| dashboard | |
| errors | |
| events |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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 |
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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"> |
OlderNewer