This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-12
Channels
- # aleph (6)
- # announcements (11)
- # babashka (24)
- # beginners (127)
- # calva (33)
- # chlorine-clover (5)
- # cider (7)
- # clara (9)
- # cljs-dev (54)
- # cljsrn (5)
- # clojure (61)
- # clojure-australia (8)
- # clojure-bay-area (11)
- # clojure-europe (36)
- # clojure-italy (3)
- # clojure-nl (3)
- # clojure-spec (6)
- # clojure-taiwan (1)
- # clojure-uk (8)
- # clojurescript (94)
- # code-reviews (2)
- # community-development (6)
- # conjure (26)
- # core-typed (1)
- # cursive (3)
- # datahike (4)
- # datomic (14)
- # events (1)
- # graphql (1)
- # honeysql (49)
- # introduce-yourself (5)
- # jobs-discuss (15)
- # kaocha (6)
- # lsp (8)
- # malli (1)
- # meander (5)
- # nrepl (1)
- # off-topic (21)
- # other-languages (1)
- # pathom (13)
- # podcasts-discuss (1)
- # polylith (1)
- # reitit (16)
- # shadow-cljs (50)
- # spacemacs (11)
- # sql (11)
- # tools-deps (21)
- # unrepl (1)
- # vim (9)
I've found using bb to calculate a dynamic GitHub Actions testing matrix to be really useful at home and at work. https://github.com/typedclojure/typedclojure/blob/main/script/print-actions-matrix.clj
For the rest of the glue, grep for "matrix" https://github.com/typedclojure/typedclojure/blob/main/.github/workflows/clj.yml
Hello! How can I distinguish between whether a file is run from the terminal via bb
or evaluated in repl via my editor's load file in REPL? What I do now is checking (str/includes? *file* "\n")
which, if true, means we run from repl as the var is the content of the file instead of a path. But there must surely be a better way?
How could I have overlooked that? Thanks a lot!
enjoy the trip! ⛰️
(Living in Norway, when you say hiking, I of course only think about mountains, though I bet the situation is rather different in Holland)
are people using bb for server automation tasks? like “ssh in, do some config changes, restart a service” typo of things?
there’s also https://epiccastle.io/spire/ but bb is more general purpose
@U11SJ6Q0K I was afk today, but I'm finally back. An example:
bb -e '(:out @(babashka.process/process ["ssh" "" "ls"] {:out :string :err :inherit}))'
this would return the string return from the ssh
command and would pipe the stderr stream to bb's stderr
that gives me an idea that if the other machine has bb installed, one could make a macro like (remote-bb "
that would invoke bb on the other machine via ssh and return result
Any tips how to encrypt data from bb? Since javax.crypto.Cipher
is not available? I see there is a pod for https://github.com/rorokimdim/stash but I want something that does not require to install an external binary. So I guess my best option is to use openssl via CLI?
But it seemed to have only Mac, hash, nonce, not crypto ns?
true, but it does seem simple to add though, without having looked into it further than just looking here: https://github.com/babashka/pod-babashka-buddy/blob/37ce1185d43e5f5855e56425ee46550a167687c0/src/pod/babashka/buddy.clj
Just sh/sh openssl