When you discover an interesting tool, and it turns out there's no executable GUI, but to get it running you need to pip a git, hub a stub, sudo a judo, brew a stew, python a cobra and unix a linux… 🤡
Writing a #Portfile for #MacPorts, I touched the basics of #Tcl. This programming language appeared to be elegant, with clear and catchy syntax.
It looks like a very nice choice for #scripting. Now I'm not surprised that Sqlite was born as Tcl extension initially. And surprised Tcl isn't widely used in #DevOps, for instance. I'm quite sure this #language is suitable for a number of tasks in today's #programming, so pls share if you have real life example(s).
I'm the type who will spend 30 minutes perfecting a script to automate something I could manually do from the command line in 5 or 6 minutes.
Who's with me? #scripting#cli#terminal
Tonight I’m playing with #rq, a tool originally intended as a #jq replacement using #Rego as its query language, but which eventually grew to be useful for format transformations, and now a full-blown #scripting environment. All powered by #OPA. Madness, obviously, but just the right kind of madness.
Today I learned how to split a variable with multiple lines for a Bash/ZSH script. I was using the previously mentioned mdb-query package, and I have a variable named tables with the different tables, separated by returns. When I fried to do for table in $tables; do echo $table; done, it did not split the lines.
I got the right output with
while IFS= read -r table; do $table; done <<< $tables
I'm doing something different with my current webcomic scripting adventure, and I'm gonna nerd about it for a minute! A 🧵:
Historically when I've written scripts, I've thought in pretty rigid "page-down" terms - that is, I know exactly what I want to accomplish on a page, and I map out its constituent parts from there. So I'm trying something more... "beat-up". That is, focusing on writing dialogue and scripting specific beats /
I wrote a matrix digital rain implementation in under 50 lines of pure Bash.. I chose Bash due to it being widely installed and extremely portable. With modern systems this shouldn't cause any noticable performance changes and seems more than efficent so far
Looking for feedback, contributions or whatever helps 😆. If it interest you at all, let me know what you think about it!
The official documentation isn't 100% clear on things (why am I getting LUA_TNIL for functions?), and the best I can find with some simple web search is kinda relevant stackoverflow (🤮) posts, except they're mostly about calling host functions from Lua side, the rest are things that seem I've nailed so far....
How to use the grep command in Linux for searching for, and inside, files
In the vast realm of Linux, an open-source operating system, the grep command holds a significant place. An acronym for ‘Global Regular Expression Print’, the grep command is a widely-used Linux tool that gives users the power to search through text or output ...continues
Both excited and stressed about an #AutismAwareness#panel this week. Kind of an irony alert given I’m excited to participate but also stressed at all the preparation. So much focus on getting it “right.”
I have to admit I prefer a format that just lets participants speak on a subject freehand and take questions after. Too much #scripting stresses me out.
Where can I find tutorials on embedding Lua scripting into applications
The official documentation isn't 100% clear on things (why am I getting LUA_TNIL for functions?), and the best I can find with some simple web search is kinda relevant stackoverflow (🤮) posts, except they're mostly about calling host functions from Lua side, the rest are things that seem I've nailed so far....