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
$ lein test pallet.actions.direct.remote-file-test | |
lein test pallet.actions.direct.remote-file-test | |
17:19:04.749 [operate-8] ERROR pallet.execute - localhost #> remote-file /tmp/pallet_4033649009093972374tmp : FAIL | |
lein test :only pallet.actions.direct.remote-file-test/remote-file-test | |
FAIL in (remote-file-test) (remote_file_test.clj:454) | |
local-file url | |
expected: (nil? (phase-errors op)) |
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
(defproject mail-batcher "0.0.1-SNAPSHOT" | |
:description "Find and generate forms for registrations and elections in date range" | |
:dependencies [[org.clojure/clojure "1.5.1"] | |
[turbovote/clj-time "0.5.1-SNAPSHOT"] | |
[korma "0.3.1-SNAPSHOT"] | |
[mysql/mysql-connector-java "5.1.24"] | |
[sonian/carica "1.0.2"] | |
[cheshire "5.1.1"] | |
[resque-clojure "0.2.2"] | |
[org.clojure/tools.cli "0.2.2"] |
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
ᐅ lein with-profile production uberjar | |
Performing task 'uberjar' with profile(s): 'production' | |
Compiling mail-batcher.core | |
Aug 13, 2013 1:36:48 PM com.mchange.v2.log.MLog <clinit> | |
INFO: MLog clients using java 1.4+ standard logging. | |
Created /Users/wmorgan/dev/mail-batcher/target/production+uberjar+provided/mail-batcher-0.0.1-SNAPSHOT.jar | |
Including mail-batcher-0.0.1-SNAPSHOT.jar | |
Including jedis-1.5.2.jar | |
Including data.json-0.1.2.jar | |
Including jackson-dataformat-smile-2.1.4.jar |
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
ᐅ lein with-profile production uberjar | |
Performing task 'uberjar' with profile(s): 'production' | |
Retrieving lein-midje/lein-midje/3.0.1/lein-midje-3.0.1.pom from clojars | |
Retrieving lein-midje/lein-midje/3.0.1/lein-midje-3.0.1.jar from clojars | |
Created /Users/wmorgan/dev/mail-batcher/target/production+uberjar/mail-batcher-0.0.1-SNAPSHOT.jar | |
Created /Users/wmorgan/dev/mail-batcher/target/production/mail-batcher-0.0.1-SNAPSHOT-standalone.jar | |
ᐅ java -jar target/production/mail-batcher-0.0.1-SNAPSHOT-standalone.jar | |
Error: Could not find or load main class mail_batcher.core |
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
elections-api.peer=> (init-db) | |
#<promise$settable_future$reify__5429@127cc7ca: {:db-before datomic.db.Db@1ea21c76, :db-after datomic.db.Db@61f108a4, :tx-data [#Datum{:e 13194139534313 :a 50 :v #inst "2013-08-20T17:13:49.111-00:00" :tx 13194139534313 :added true} #Datum{:e 17592186045418 :a 10 :v :election-constructor :tx 13194139534313 :added true} #Datum{:e 17592186045418 :a 52 :v #db/fn{:code "(if (not (nil? district)) (let [txn [(merge district [:db/id #db/id[:db.part/user -2]]) (merge election {:db/id #db/id[:db.part/user -1], :turbovote.election/district #db/id[:db.part/user -2]})]] txn) (let [txn [(merge election {:db/id #db/id[:db.part/user -1]})]] txn))", :params [db election district], :requires [], :imports [], :lang :clojure} :tx 13194139534313 :added true}], :tempids {-9223350046623220306 17592186045418}}> | |
elections-api.peer=> (def conn (d/connect "datomic:mem://elections-api")) | |
#'elections-api.peer/conn | |
elections-api.peer=> (d/transact conn [[:election-constructor {:turbovote.election/name "Foo |
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 cljs-minimal.core | |
(:require [cljs.core.async :as async :refer [put! <! >! <!! >!! chan]]) | |
(:require-macros [cljs.core.async.macros :as m :refer [go]])) | |
(defn get-position [] | |
(let [out (chan) | |
geo (.-geolocation js/navigator)] | |
(.getCurrentPosition geo (fn [pos] (put! out pos))) | |
out)) |
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
Now listening on 53541 | |
('got user_input', {u'id': 0, u'initial': u'~/floobits/share/democracyworks/payments-api', u'prompt': u'Give me a directory to sync data to: ', u'name': u'user_input', u'response': u'~/turbovote/payments-api'}) | |
[Thu Dec 5 11:35:23 2013] Connecting to floobits.com:3448 | |
Connecting to floobits.com:3448 | |
SSL handshake completed to floobits.com:3448 | |
Overwrite the following local files? | |
test/payments_api/service_test.clj | |
.gitignore |
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
ubuntu@5bb534e62eb4:~$ ls -la | |
total 32 | |
drwxr-xr-x 9 ubuntu ubuntu 4096 Feb 6 08:44 . | |
drwxr-xr-x 9 root root 4096 Feb 6 08:41 .. | |
-rw------- 1 root root 94 Feb 6 08:44 .bash_history | |
-rw-r--r-- 1 ubuntu ubuntu 220 Mar 30 2013 .bash_logout | |
-rw-r--r-- 1 ubuntu ubuntu 3637 Mar 30 2013 .bashrc | |
drwx------ 2 ubuntu ubuntu 4096 Feb 6 08:41 .cache | |
-rw-r--r-- 1 ubuntu ubuntu 675 Feb 6 08:43 .profile | |
drwx------ 2 ubuntu ubuntu 4096 Feb 6 08:44 .ssh |
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 myapp.service | |
(:require [io.pedestal.service.http :as bootstrap])) | |
(defn jetty-configurator [server] | |
(let [one-minute 60000] | |
(.setGracefulShutdown server one-minute) | |
(.setStopAtShutdown server true)) | |
server) | |
(defn service [] |
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
lxc-start: No such file or directory - failed to mount '/dev/pts/5' on '/usr/lib/x86_64-linux-gnu/lxc//dev/console' | |
lxc-start: failed to setup the mount entries for '2518e54f87522b7c5df43ce0a178a56851a2678b1a00ab155077fffe0dd9d44a' | |
lxc-start: failed to setup the container | |
lxc-start: invalid sequence number 1. expected 2 | |
lxc-start: failed to spawn '2518e54f87522b7c5df43ce0a178a56851a2678b1a00ab155077fffe0dd9d44a' | |
lxc-start: Device or resource busy - failed to remove cgroup '/sys/fs/cgroup/cpuset//lxc/2518e54f87522b7c5df43ce0a178a56851a2678b1a00ab155077fffe0dd9d44a' | |
[error] client.go:2296 Error resize: Error: resize: bad file descriptor |