Skip to content

Instantly share code, notes, and snippets.

Just an update for y'all sick ravers:
Upcoming Regional Festivals (S.E.A Edition)
AUG
11 - 13 / World DJ Festival (SEL)
27 -28 / S2O Taiwan (TW)
SEPT
2 - 3 / Together Festival (TH)
% nbb nrepl-server :port 1339
nREPL server started on port 1339 on host 127.0.0.1 - nrepl://127.0.0.1:1339
Connection accepted
request {:op "clone", :id "1"}
response {"new-session" "bd8d435d-f728-400d-9a47-e0b8f23f3a50", "status" ["done"], "id" "1"}
request {:op "clone", :id "2"}
response {"new-session" "6315334f-8b86-4b30-b5d5-533589e26d49", "status" ["done"], "id" "2"}
request {:op "describe", :session "bd8d435d-f728-400d-9a47-e0b8f23f3a50", :id "3"}
response {"versions" {"nbb-nrepl" {"major" "TODO", "version-string" "TODO"}, "node" {"major" "v17", "minor" "4", "incremental" "0", "version-string" "v17.4.0"}}, "aux" {}, "ops" {"eval" {}, "describe" {}, "clone" {}, "close" {}, "classpath" {}, "load-file" {}}, "status" ["done"], "id" "3", "session" "bd8d435d-f728-400d-9a47-e0b8f23f3a50"}
request {:nrepl.middleware.print/buffer-size 4096, :file "*cider-repl ~:localhost:1339(clj)*", :nrepl.middleware.print/quota 1048576, :nrepl.middleware.print/print "cider.nrepl.pprint/pprint", :op "eval", :column 1, :line 35,
@vxe
vxe / kfb.md
Last active May 26, 2020 05:02
kfb

clush -w "kafka-fb0[001-100].prn.parsec.apple.com" -B "dmesg -T | grep -i error | wc -l"

---------------
kafka-fb[0047-0048,0058].prn.parsec.apple.com (3)
---------------
3279
---------------
kafka-fb[0001,0064].prn.parsec.apple.com (2)
---------------
@vxe
vxe / jetty-clojure.md
Last active May 19, 2020 05:26 — forked from karanth/jetty-clojure.md
Notes on installing SSL certificates in jetty - clojure + ring

SSL is an important security and privacy feature for all websites. Its details are outlined in this wikipedia [article] ("http://en.wikipedia.org/wiki/Secure_Sockets_Layer"). At Scibler, we use SSL certificates, encrypting all traffic to and fro from our servers. SSL is a public-key based asymmetric encryption scheme for symmetric key exchange. Symmetric keys are used for payload encryption. On our servers, we use embedded jetty (ring jetty adapter), with the clojure [ring] (https://github.com/ring-clojure) library to handle the http specific functionality.

This is a tutorial about installing SSL certificates on jetty webservers. SSL certificates are X.509 certificates that can be self-signed (authorized by Scibler) or can be signed by trusted third-parties. Trusted third-party certificates are the ones that a Internet user and browsers trust the most. Trusted third-party certification authorities issue certificates per domain and charge a nominal yearly fee.

Pre-Requisites

  • The Java JDK has to b
22:51:34:416: [info] ein:jupyter-server--run: /Users/vedwin/wrk/.python.d/py4cl/bin/jupyter notebook --notebook-dir=/Users/vedwin/wrk/tmp/clojupter-tesat/ --debug --no-browser @#<buffer *ein:log-all*>
22:51:36:419: [debug] Login attempt #0 in response to nil from http://127.0.0.1:8888. @#<buffer *ein:log-all*>
22:51:36:425: [debug] EIN:QUERY-PREPARE-HEADER: Found xsrf: 2|cbcc44fc|22ec82c9cb6488af609eb86a9b078e5d|1584234007 @#<buffer *ein:log-all*>
22:51:36:641: [info] Login to http://127.0.0.1:8888 complete. @#<buffer *ein:log-all*>
22:51:36:644: [debug] EIN:QUERY-PREPARE-HEADER: Found xsrf: 2|cbcc44fc|22ec82c9cb6488af609eb86a9b078e5d|1584234007 @#<buffer *ein:log-all*>
22:51:36:645: [debug] ein:notebooklist-login--complete STATUS: 200 DATA: (:bad-page nil) @#<buffer *ein:log-all*>
22:51:36:704: [debug] ein:query-notebook-version--complete STATUS: 200 DATA: (:version 6.0.3) @#<buffer *ein:log-all*>
22:51:36:706: [debug] EIN:QUERY-PREPARE-HEADER: Found xsrf: 2|cbcc44fc|22ec82c9cb6488af609eb86a9b078e5d|15842340
[D 22:51:34.875 NotebookApp] Searching ['/Users/vedwin', '/Users/vedwin/wrk/.jupyter', '/Users/vedwin/wrk/.python.d/py4cl/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
[D 22:51:34.876 NotebookApp] Looking for jupyter_config in /etc/jupyter
[D 22:51:34.876 NotebookApp] Looking for jupyter_config in /usr/local/etc/jupyter
[D 22:51:34.876 NotebookApp] Looking for jupyter_config in /Users/vedwin/wrk/.python.d/py4cl/etc/jupyter
[D 22:51:34.876 NotebookApp] Looking for jupyter_config in /Users/vedwin/wrk/.jupyter
[D 22:51:34.877 NotebookApp] Looking for jupyter_config in /Users/vedwin
[D 22:51:34.877 NotebookApp] Looking for jupyter_notebook_config in /etc/jupyter
[D 22:51:34.877 NotebookApp] Looking for jupyter_notebook_config in /usr/local/etc/jupyter
[D 22:51:34.878 NotebookApp] Looking for jupyter_notebook_config in /Users/vedwin/wrk/.python.d/py4cl/etc/jupyter
[D 22:51:34.878 NotebookApp] Looking for jupyter_notebook_config in /Users/vedwin/wrk/.jupyter
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": []
[I 08:50:53.768 NotebookApp] 302 POST /login (127.0.0.1) 1.79ms
[I 08:50:53.770 NotebookApp] 302 GET / (127.0.0.1) 0.48ms
[D 08:50:53.779 NotebookApp] Using contents: services/contents
[D 08:50:53.823 NotebookApp] Path base/images/favicon.ico served from /Users/vedwin/wrk/.python.d/py4cl/lib/python3.7/site-packages/notebook/static/base/images/favicon.ico
[D 08:50:53.824 NotebookApp] Path components/jquery-ui/themes/smoothness/jquery-ui.min.css served from /Users/vedwin/wrk/.python.d/py4cl/lib/python3.7/site-packages/notebook/static/components/jquery-ui/themes/smoothness/jquery-ui.min.css
[D 08:50:53.826 NotebookApp] Path components/jquery-typeahead/dist/jquery.typeahead.min.css served from /Users/vedwin/wrk/.python.d/py4cl/lib/python3.7/site-packages/notebook/static/components/jquery-typeahead/dist/jquery.typeahead.min.css
[D 08:50:53.827 NotebookApp] Path style/style.min.css served from /Users/vedwin/wrk/.python.d/py4cl/lib/python3.7/site-packages/notebook/static/style/style.min.css
[D 08:50:53.830 NotebookA
08:35:06:413: [debug] Login attempt #0 in response to nil from http://127.0.0.1:8889. @#<buffer *spacemacs*>
08:35:06:427: [debug] EIN:QUERY-PREPARE-HEADER: Found xsrf: 2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767 @#<buffer *spacemacs*>
08:35:06:544: [info] Login to http://127.0.0.1:8889 complete. @#<buffer *spacemacs*>
08:35:06:548: [debug] EIN:QUERY-PREPARE-HEADER: Found xsrf: 2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767 @#<buffer *spacemacs*>
08:35:06:550: [debug] ein:notebooklist-login--complete STATUS: 200 DATA: (:bad-page nil) @#<buffer *spacemacs*>
08:35:06:619: [debug] ein:query-notebook-version--complete STATUS: 200 DATA: (:version 5.7.8) @#<buffer *spacemacs*>
08:35:06:622: [debug] EIN:QUERY-PREPARE-HEADER: Found xsrf: 2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767 @#<buffer *spacemacs*>
08:35:06:700: [debug] EIN:QUERY-PREPARE-HEADER: Found xsrf: 2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767 @#<buffer *spacemacs*>
08:35:06:702: [debug] ein:query-kernelspecs--comp
Exception in thread "main" Syntax error compiling at (taoensso/sente.cljc:105:1).
Insufficient `com.taoensso/encore` version, you may have a dependency conflict: see http://goo.gl/qBbLvC for solutions.
at clojure.lang.Compiler.load(Compiler.java:7647)
at clojure.lang.RT.loadResourceScript(RT.java:381)
at clojure.lang.RT.loadResourceScript(RT.java:372)
at clojure.lang.RT.load(RT.java:463)
at clojure.lang.RT.load(RT.java:428)
at clojure.core$load$fn__6824.invoke(core.clj:6126)
at clojure.core$load.invokeStatic(core.clj:6125)
at clojure.core$load.doInvoke(core.clj:6109)