This file contains 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
/home/xeno/dev/payments/src: | |
total used in directory 12 available 16942696 | |
drwxr-xr-x 3 xeno xeno 4096 Jan 19 13:00 . | |
drwxr-xr-x 11 xeno xeno 4096 Jan 30 11:30 .. | |
drwxr-xr-x 8 xeno xeno 4096 Jan 29 22:04 payments |
This file contains 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
(normal-top-level-add-to-load-path '(".")) | |
(normal-top-level-add-subdirs-to-load-path)) |
This file contains 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
as[pdasdasd |
This file contains 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 payments.sso.middleware | |
(:require [payments.exceptions.http :refer [unauthorised]] |
This file contains 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
(defmacro allnd [& pairs] | |
(let [pairs (partition 2 pairs)] | |
`(and ~@(for [pair pairs] | |
`(= ~(first pair) ~(second pair)))))) |
This file has been truncated, but you can view the full file.
This file contains 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
Running Apache Archiva... | |
wrapper | --> Wrapper Started as Console | |
wrapper | Launching a JVM... | |
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org | |
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. | |
jvm 1 | | |
jvm 1 | 2014-02-19 23:31:06.867:WARN:oejd.ContextDeployer:ContextDeployer is deprecated. Use ContextProvider | |
jvm 1 | 2014-02-19 23:31:06.870:WARN:oejd.WebAppDeployer:WebAppDeployer is deprecated. Use WebAppProvider | |
jvm 1 | 2014-02-19 23:31:06.927:INFO:oejs.Server:jetty-8.1.14.v20131031 | |
jvm 1 | 2014-02-19 23:31:06.937:INFO:oejs.NCSARequestLog:Opened /usr/share/java/archiva/logs/request-20140219.log |
This file contains 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
(defn expire-entries! [c] | |
(cache/ttl-cache-factory | |
(into {} (filter #((complement nil?) (second %)) | |
(map #(vector % (get c %)) (keys c)))) | |
:ttl (.ttl-ms c))) |
This file contains 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
(defn get-entry [short] | |
(-> (kv/fetch-one bucket short) | |
:result | |
:value)) | |
(defn get-all-entries [] | |
(let [keys (wb/keys-in bucket)] | |
(group-by :channel (pmap get-entry keys)))) |
This file contains 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
(defn list-all [request] | |
(wc/connect!) | |
{:status 200 | |
:body (html [:body | |
[:ul | |
(for [[channel urls] (get-all-entries)] | |
[:li channel | |
[:ul (for [url urls] | |
(let [v (escape-html url)] | |
[:li [:a {:href v} v]]))]])]])}) |
This file contains 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
(defvalidator payment-schema "payment.json") | |
(defmacro defvalidator [name schema] | |
`(def ~name | |
#(validate {:$ref ~schema} %))) |
OlderNewer