Skip to content

Instantly share code, notes, and snippets.


Ryan Stradling rstradling

View GitHub Profile
rstradling / testing.clj
Last active Dec 17, 2015
Gist describing tmp dir woes
View testing.clj
(defplan my-plan
res (tmp-dir)
item (exec-script (res))
(actions/with-action-values [item]
(println "DATA = " (:out item))
rstradling / gist:5263470
Last active Dec 15, 2015
Memcached upstart pallet
View gist:5263470
# Provides: memcached
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start memcached daemon
# Description: Start up memcached, a high-performance memory caching daemon
View gist:5256869
(deftest site-test
( let [
; This one generates no context's around the echos
item1 (first
(directory "/etc/nginx/sites-available")
(directory "/etc/nginx/sites-enabled")
View Exception
16:08:30.818 [operate-159] ERROR p.core.operations - Phase Error in :bootstrap
clojure.lang.ExceptionInfo: SSH connect : server, port 22, user ec2-user
at clojure.core$ex_info.invoke(core.clj:4227) ~[clojure-1.4.0.jar:na]
at pallet.ssh.transport$connect_ssh_session.invoke(transport.clj:88) ~[na:na]
at pallet.ssh.transport$attempt_connect.invoke(transport.clj:118) ~[na:na]
at pallet.ssh.transport$connect$fn__48056.invoke(transport.clj:134) ~[na:na]
at pallet.ssh.transport$connect.invoke(transport.clj:133) ~[na:na]
at pallet.transport.ssh$lookup_or_create_state.invoke(ssh.clj:56) ~[na:na]
at pallet.transport.ssh$open.invoke(ssh.clj:63) ~[na:na]
at ~[na:na]
You can’t perform that action at this time.