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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
$provscript = <<SCRIPT | |
apt-get update | |
apt-get -y install python-dev \ | |
libffi-dev \ | |
python-setuptools \ | |
python-pip | |
pip install python-ceilometerclient |
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 new hoplon my-project | |
java.lang.ClassCastException: clojure.lang.Symbol cannot be cast to clojure.lang.Associative | |
at clojure.lang.RT.assoc (RT.java:702) | |
clojure.core$assoc.invoke (core.clj:187) | |
ancient_clj.core$latest_version_BANG_.doInvoke (core.clj:139) | |
clojure.lang.RestFn.invoke (RestFn.java:423) | |
ancient_clj.core$latest_version_string_BANG_.doInvoke (core.clj:148) | |
clojure.lang.RestFn.applyTo (RestFn.java:139) | |
clojure.core$apply.invoke (core.clj:626) | |
clojure.core$partial$fn__4228.doInvoke (core.clj:2468) |
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
{:user {:plugins [[lein-ring "0.9.1"] | |
[jonase/eastwood "0.2.1"] | |
[lein-kibit "0.0.8"] | |
[lein-ancient "0.6.1"] | |
[cider/cider-nrepl "0.8.2"] | |
[lein-bikeshed "0.2.0"]] | |
:eastwood {:add-linters [:unused-fn-args | |
:unused-namespaces | |
:unused-locals | |
:unused-private-vars]}}} |
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
{:user {:plugins [[lein-ancient "0.6.1"]]}} |
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
$ apc version | |
0.13.10 (release-350a-2-g865fc8a) | |
$ apc capsule create cap1 --allow-egress -i linux | |
╭─────────────────────────────────────────────╮ | |
│ Capsule Settings │ | |
├─────────────┬───────────────────────────────┤ | |
│ FQN: │ job::/sandbox/developer::cap1 │ | |
│ Image: │ linux │ | |
│ CPU: │ 0ms/s (uncapped) │ |
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
$ apc version | |
0.14.1 (release-403c-0-g859acc1) | |
$ apc capsule create cap2 --allow-egress -i linux | |
╭─────────────────────────────────────────────╮ | |
│ Capsule Settings │ | |
├─────────────┬───────────────────────────────┤ | |
│ FQN: │ job::/sandbox/developer::cap2 │ | |
│ Image: │ linux │ | |
│ CPU: │ 0ms/s (uncapped) │ |
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
2015-02-11_13:03:44.34806 [INFO 2015-02-11 13:03:44.347804524 +0000 UTC hostname='vm' category='instance_manager' context='a703f82b-a0ed-46b6-93d5-e5d665b0a7bd'] container.(*StateMachine).changeState: Switching state: NEW -> SETUP | |
2015-02-11_13:03:44.63240 [INFO 2015-02-11 13:03:44.630017368 +0000 UTC hostname='vm' category='instance_manager' context='9aaa0301-a688-4ec0-88ca-b8d1ab0b196a'] container.(*StateMachine).changeState: Switching state: TEARDOWN -> REMOVED | |
2015-02-11_13:03:47.78046 [ERROR 2015-02-11 13:03:47.778316545 +0000 UTC hostname='vm' category='instance_manager' context='default'] netfilter.deleteQdiscSfq: /sbin/tc error: exit status 2 "RTNETLINK answers: No such file or directory\n" | |
2015-02-11_13:03:47.78050 apcera/continuum/common/log/log.go:63 log.Errorf | |
2015-02-11_13:03:47.78052 apcera/continuum/instance_manager/container/netfilter/netlimit.go:155 netfilter.deleteQdiscSfq | |
2015-02-11_13:03:47.78053 apcera/continuum/instance_manager/container/netfilter/netlimit.go:323 netfil |
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
$ cd $GOPATH | |
$ git clone http://github.com/szamuboy/mingo.git | |
Cloning into 'mingo'... | |
remote: Counting objects: 7, done. | |
remote: Compressing objects: 100% (5/5), done. | |
remote: Total 7 (delta 0), reused 4 (delta 0), pack-reused 0 | |
Unpacking objects: 100% (7/7), done. | |
Checking connectivity... done. | |
$ cd mingo | |
$ apc app create |
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 simpleq.core) | |
(defn- start-simpleq-thread-loop [q thread-active exception] | |
(.start (Thread. | |
#((comment println "Thread started") | |
(loop [expr (first @q)] | |
(comment println "Sleeping for 2 sec") | |
(comment Thread/sleep 2000) | |
(comment println (str "Executing " expr)) |
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 why-is-that.core) | |
(def test-1 (list (fn [arg] | |
arg) 1)) | |
;; (eval test-1) -> 1 | |
(def test-2 (list ((fn [] | |
(fn [arg] | |
['hello arg]))) 1)) |
OlderNewer