babashka

https://github.com/babashka/babashka. Also see #sci, #nbb and #babashka-circleci-builds .
Ory Band 2021-06-03T15:14:32.379500Z

Hi. I'm looking for an example on sending UDP messages using babashka, but can't find anything that works. Specifically this example fails because java.Net.InetSocketAddress isn't available! Any suggestions? https://github.com/clojure-cookbook/clojure-cookbook/blob/master/05_network-io/5-11_udp.asciidoc More specifically, I need to send DataDog API metrics. So if you could suggest an alternative solution to that problem, I'll be happy as well. https://docs.datadoghq.com/developers/dogstatsd/datagram_shell/?tab=metrics#send-metrics-and-events-using-dogstatsd-and-the-shell

Ory Band 2021-06-03T15:16:07.381100Z

Followup question: I also need to send a MongoDB query to a db cluster in my local LAN. Any suggestion on how to do that? Best solution I've found is to install mongo shell and call it via (sh ..

borkdude 2021-06-03T15:17:19.382200Z

you could shell out indeed, or you could use an http service of this mongodb if it has one

borkdude 2021-06-03T15:19:19.382700Z

Perhaps we could write a babashka pod for mongodb similar to https://github.com/babashka/babashka-sql-pods, but so far nobody has requested it

Ory Band 2021-06-03T15:22:48.383300Z

thanks @borkdude! ❤️

borkdude 2021-06-03T18:45:25.384200Z

Building Video Edit Tools with #clojure, #babashka, and FFmpeg https://youtu.be/0Ch-zNZ67go by Adam James

Helins 2021-06-03T19:27:28.384900Z

What's your favorite way of using BB on CircleCI? (install + cache)

borkdude 2021-06-03T19:31:26.385400Z

If you're asking me, I would just just curl a github release, or use the install script: https://github.com/babashka/babashka/blob/master/install

borkdude 2021-06-03T19:31:55.386Z

I don't cache, since this install usually takes no longer than a second or so, but you can do so if you wish.

Helins 2021-06-03T19:33:38.386500Z

Great, I wasn't sure how to cache it effectively

Stel Abrego 2021-06-03T21:16:34.390800Z

Hey y'all! Here's an example of simple babashka task and bb.edn. I run bb backup for quickly creating a SQL backup of a local Postgres database inside a git repo. https://git.io/JGKEY The advantage over bash/zsh scripting is that I can easily ensure the ./backups directory exists and print helpful messages like the backup's filename.

👍 1
🎉 1
borkdude 2021-06-03T21:19:37.391100Z

Very nice!

Stel Abrego 2021-06-03T22:43:24.391800Z

Thank you @borkdude👋 Looking forward to your ClojureD talk, either live or when it gets posted depending on if they accept my (late) application for a ticket. I'm excited to hear more about GraalVM because I packaged zprint for NixOS, but I think the Graal flags need improvement. Just want to understand the whole compilation system better in general.