5 Feb 2025
tbrowder single cron job on master server? etc. 17:12
librasteve melezhik: ah - I just copiued a cookbook - guess dont need an emulator - thanks! 17:18
OK - don't worry about the dockerfile example too much (it is already retty much working so I do not have any tuits to rebuild it - I'll just tune in to what you have for Tom Browder and see if I can make sense fo that 17:20
tbrowder: fwiw I have nade two simple AWS only tools - github.com/librasteve/raku-CLI-AWS-EC2-Simple to manage a set of EC2 instances and github.com/librasteve/raku-CLI-Wordpress to install and run WP + nginx + certs + db remotely - you are welcome to try them ... I am thinking of a new one (with some common features with the WP one) but to install and run Cro + nginx + db remotely 17:26
however, I am also looking at some simple use cases with opentofu.org
antononcube @timo No, I won’t leave Grok — I payed $85 to get access to it. 18:41
[Coke] _sunk cost fallacy_ 19:00
lizmat m: dd @().^name, %().^name # feels inconsistent 19:06
camelia "List"
"Hash"
lizmat one would expect %() to return a Map
*could
antononcube @Coke I am not sure it is a sunk cost fallacy. Sunk cost fallacy, would be if I give $85 with the hope I can get access to Grok's Web API. (And still don't get it.) 19:25
melezhik . 19:41
librasteve: looks like we are talking about managing fleet of servers over ssh on periodic basis on Ansible fashion, right ? 19:43
oh, that was meant for tbrowder: sorry 19:44
anyways )
so, yes. I don't think for that case Sparky even required, Sparrowdo which is in nutshell just a ssh Sparrow tasks runners should be enough 19:45
sparrowdo.wordpress.com/2017/01/07...-core-dsl/ this post is quite old, but still actual ... 19:46
Sparky is in nutshell is just ( well not exactly ) a web UI for sparrowdo, one can start with Sparrowdo and if they require web UI they may migrate to Sparky which is quite easy 19:47
as for template sort of project, let me actually create a repo with some easy to start stuff, and you might start with it 19:48
I guess github.com/melezhik/sparrowdo/tree/master has some sort of cookbooks for beginners , again I can create a GitHub repo with some example standard sparrowdo configuration and templates 19:56
tbrowder: is it something what you are looking for ? cc librasteve: 19:57
tbrowder yes, kinda like ansible and similar, but better with raku 21:03
librasteve lizmat: afaiui %() for Hash is the equivalent to [] for Array since {} cannot always be guaranteed to provide a Hash instead of a Block ... although I have never had an issue with {} ... so not entirely suprising that %() -> Hash and @() -> Map is inconsistent 21:12
that said I think that this is good 21:13
m: my @a = [1,2,3]; say @a;
evalable6 [1 2 3]
Raku eval [1 2 3]
librasteve and this is bad
m: my %h = %( :a(0), :b(1), :c(2) ); say %h; 21:14
Raku eval {a => 0, b => 1, c => 2}
evalable6 {a => 0, b => 1, c => 2}
librasteve m: my %h = {:a(0), :b(1), :c(2)}; say %h;
Raku eval {a => 0, b => 1, c => 2} Potential difficulties: Useless use of hash composer on right side of hash assignment; did you mean := instead? at /home/glot/main.raku:1 ------> my %h = {:a(0), :b(1), :c(2)}⏏; say %h;
evalable6 Potential difficulties:
Useless use of hash composer on right side of hash assignment; did you mean := instead?
at /tmp/AGXJwonsK4:1
------> my %h = {:a(0), :b(1), :c(2)}<HERE>; say %h;
{a => 0, b => 1, c => 2}
librasteve ^^ sorry its the second one with the warning that I dislike 21:15
melezhik tbrowder: github.com/melezhik/sparrowdo-template
lizmat librasteve you realize that the { } and the [ ] in your example are superstituous ?
m: my @a = 1,2,3; say @a; 21:16
camelia [1 2 3]
lizmat m: my %h = :a(0), :b(1), :c(2); say %h;
camelia {a => 0, b => 1, c => 2}
librasteve yeah I know that that's good ... my point is that I CAN list assign an Array to an Array, but I CANNOT list assign a Hash to a Hash 21:17
so perhaps you can throw that angle in to your considerations 21:19
lizmat m: my %a = :42a; my %b = :666b; my %c = |%a, |%b; dd %c # with a little extra syntax, you can :-)
camelia {:a(42), :b(666)}
librasteve well I guess I can do that, but my dumb brain thinks it should be OK to assign an Array [] to an Array @ (which works despite the supercilious []) and it should also be OK to assign a Hash {} to a Hash % (which requires me to drop the superfluous {}) 21:22
6 Feb 2025
tbrowder melezhik: thank you for the link 01:20
tellable6 tbrowder, I'll pass your message to melezhik
melezhik . 09:21
tellable6 2025-02-06T01:20:37Z #raku <tbrowder> melezhik: thank you for the link
melezhik tbrowder: yw 09:24
. 09:33