Skip to content

Instantly share code, notes, and snippets.

View m0wfo's full-sized avatar

Chris Mowforth m0wfo

  • Planet Earth
View GitHub Profile
curl -L http://127.0.0.1:4001/v2/keys/foo -XPUT -d value="some value"
curl -L http://127.0.0.1:4001/v2/keys/foo
package com.logentries.scala
import org.apache.log4j.LogManager
object Main {
def main(args: Array[String]) {
val log = LogManager.getRootLogger()
log.debug("Hello, Scala world!")
Thread.sleep(1000)
» 19:23:24.790 2013-10-19 19:21:57 +0100 INFO (logging.clj:272) Hello, logger!
» 19:23:24.803 2013-10-19 19:21:57 +0100 INFO (logging.clj:272) Hello, logger!
» 19:23:24.803 2013-10-19 19:21:57 +0100 INFO (logging.clj:272) Hello, logger!
» 19:23:24.803 2013-10-19 19:21:57 +0100 INFO (logging.clj:272) Hello, logger!
» 19:23:24.803 2013-10-19 19:21:57 +0100 INFO (logging.clj:272) Hello, logger!
» 19:23:24.803 2013-10-19 19:21:57 +0100 INFO (logging.clj:272) Hello, logger!
» 19:23:24.803 2013-10-19 19:21:57 +0100 INFO (logging.clj:272) Hello, logger!
» 19:23:24.803 2013-10-19 19:21:57 +0100 INFO (logging.clj:272) Hello, logger!
» 19:23:24.803 2013-10-19 19:21:57 +0100 INFO (logging.clj:272) Hello, logger!
» 19:23:24.803 2013-10-19 19:21:57 +0100 INFO (logging.clj:272) Hello, logger!
1 ; SLIME 20100404
2 user> (ns le-example.core)
3 nil
4 le-example.core> (print-some-logs)
5 nil
6 le-example.core>
@m0wfo
m0wfo / gist:7059473
Last active December 25, 2015 23:49
(ns le-example.core
(:use [clojure.tools.logging :only (info)])
(:gen-class))
(defn print-some-logs []
(dotimes [n 10]
(info "Hello, logger!")))
@m0wfo
m0wfo / gist:7059104
Last active December 25, 2015 23:49
(defproject le-example "1.0.0-SNAPSHOT"
:description "Sample clojure app for Logentries"
:dependencies [[org.clojure/clojure "1.3.0"]
[org.clojure/tools.logging "0.2.6"]
[log4j/log4j "1.2.17"]
[com.logentries/logentries-appender "1.1.20"]])
lein new le-example
function perform_math(fn, a, b) {
return fn(a, b);
}
function add(a, b) {
return a + b;
}
function subtract(a, b) {
return a - b;
}
// etc...
diff --git a/backend/pixma_mp730.c b/backend/pixma_mp730.c
index 5987739..1b0073b 100644
--- a/backend/pixma_mp730.c
+++ b/backend/pixma_mp730.c
@@ -78,6 +78,7 @@
#define MF5750_PID 0x265e /* Untested */
#define MF5770_PID 0x265f
#define MF3110_PID 0x2660
+#define MF3010_PID 0x2759 // :)