Skip to content

Instantly share code, notes, and snippets.

@rstradling
rstradling / test.bash
Created September 26, 2022 23:02
Bash file for Brett
#!/usr/bin/bash
mkdir crappy
ls -al crappy
echo "Deleting directory"
ITEM="crappy"
rm -rf "$ITEM"
ls -al crappy
@rstradling
rstradling / testing.clj
Last active December 17, 2015 03:28
Gist describing tmp dir woes
(defplan my-plan
[]
(let
[
res (tmp-dir)
item (exec-script (res))
]
(actions/with-action-values [item]
(println "DATA = " (:out item))
)))
@rstradling
rstradling / gist:5263470
Last active December 15, 2015 12:58
Memcached upstart pallet
### BEGIN INIT INFO
# 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
(deftest site-test
( let [
; This one generates no context's around the echos
item1 (first
(build-actions/build-actions
{}
(directory "/etc/nginx/sites-available")
(directory "/etc/nginx/sites-enabled")
(remote-file
"/etc/nginx/sites-enabled/default"
16:08:30.818 [operate-159] ERROR p.core.operations - Phase Error in :bootstrap
clojure.lang.ExceptionInfo: SSH connect : server 107.20.32.231, 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 pallet.transport.ssh.SshTransport.open(ssh.clj:70) ~[na:na]