From 4e7a16f1cd9b778a1c1e1984b4f3f60b462bcd64 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Thu, 18 Jan 2024 21:39:50 -0500 Subject: updates for the blog entries --- mds/cstruct2luatable.md | 8 ++++++++ mds/lazymakefiles.md | 6 +++++- mds/oneclientforeverything.md | 1 + put_in_db.js | 6 +++--- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/mds/cstruct2luatable.md b/mds/cstruct2luatable.md index 36c9d45..a8eb92c 100644 --- a/mds/cstruct2luatable.md +++ b/mds/cstruct2luatable.md @@ -340,3 +340,11 @@ Any feedback, suggestions and/or fixes to the tutorial is much appreciated.
I needed to turn a C struct into a lua table for an application I'm working [on](https://github.com/bloodstalker/mutator/tree/master/bruiser). Further down the line, I needed to do the same for a lot more C structs with the possibility of me having to do the same for a lot more C structs. I just couldn't bring myself to do it manually for that many C structs so I decided to work on a code generator that does that for me. The result is [luatablegen](https://github.com/bloodstalker/luatablegen).
`luatablegen` is a simple script that takes the description of your C structures in an XML file and generates the C code for your new tables and metatables. It does everything we did by hand automatically for us.
`lautablegen` is in its early stages, so again, any feedback or help will be appreciated.
+ +

+

timestamp:1705630055
+
version:1.0.0
+ +
https://raw.githubusercontent.com/terminaldweller/blog/main/mds/cstruct2luatable.md
+

+
diff --git a/mds/lazymakefiles.md b/mds/lazymakefiles.md index ded0fab..be71c46 100644 --- a/mds/lazymakefiles.md +++ b/mds/lazymakefiles.md @@ -100,6 +100,8 @@ Well that's about it.
Below you can find the current(at the time of writing) versio of both the C and the Cpp makefiles.
You can always find the latest versions [here](https://raw.githubusercontent.com/terminaldweller/scripts/main/makefilec) for C and [here](https://raw.githubusercontent.com/terminaldweller/scripts/main/makefilecpp) for Cpp.
+## C + ```make TARGET?=main SHELL=bash @@ -340,6 +342,7 @@ help: @echo "--deepclean will clean almost everything" ``` +## Cpp ```make TARGET?=main SHELL=bash @@ -583,7 +586,8 @@ help:

timestamp:1705630055
-
version:1.0.0
+
version:1.1.0
+
https://raw.githubusercontent.com/terminaldweller/blog/main/mds/lazymakefiles.md


diff --git a/mds/oneclientforeverything.md b/mds/oneclientforeverything.md index e262815..6b633ef 100644 --- a/mds/oneclientforeverything.md +++ b/mds/oneclientforeverything.md @@ -193,5 +193,6 @@ volumes:
timestamp:1699398469
version:0.1.0
+
https://raw.githubusercontent.com/terminaldweller/blog/main/mds/oneclientforeverything.md


diff --git a/put_in_db.js b/put_in_db.js index fadcc42..eb91672 100644 --- a/put_in_db.js +++ b/put_in_db.js @@ -26,7 +26,7 @@ blogs = [ title: "One Chat Client For Everything", slug: "one_chat_client_for_everything", body: fs.readFileSync( - path.join(__dirname) + "/mds/oneclientforeverything.md" + path.join(__dirname) + "/mds/oneclientforeverything.md", ), teaser: "One Chat Client For Everything", keywords: "irc,matrix,mattermost,matterbridge,bitlbee,irssi", @@ -34,10 +34,10 @@ blogs = [ }, ]; -// db.blogposts.insertMany([blog_entry_1, blog_entry_2, blog_entry_3]); +// db.blogposts.insertMany(blogs); db.blogposts.updateMany( { $set: blogs }, { upsert: true, - } + }, ); -- cgit v1.2.3