aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorla-ninpre <leobrekalini@gmail.com>2021-06-03 00:36:03 +0300
committerla-ninpre <leobrekalini@gmail.com>2021-06-03 00:36:03 +0300
commit76b3bc5cd86f8ce8b355f0c089387b090d7ad0da (patch)
treea0b1b0a10d92e72cf7bc51d628453ce300c48118
parent22f5a44deb4772ddfc70117293e7a1c333a6cd14 (diff)
downloadgemini-aaoth.xyz-76b3bc5cd86f8ce8b355f0c089387b090d7ad0da.tar.gz
gemini-aaoth.xyz-76b3bc5cd86f8ce8b355f0c089387b090d7ad0da.zip
add new post and add git portion of gemlog-new script
-rwxr-xr-xgemlog-new6
-rw-r--r--gemlog/2021-06-03-c-is-tough-but-i-like-it.gmi26
-rw-r--r--gemlog/index.gmi1
3 files changed, 33 insertions, 0 deletions
diff --git a/gemlog-new b/gemlog-new
index 94f5154..34f15f2 100755
--- a/gemlog-new
+++ b/gemlog-new
@@ -118,6 +118,12 @@ main() {
update_index
edit_post
+
+ {
+ cd "$GEMINI_HOME"
+ git add "$GEMLOG_INDEX" "$_new_post_filename"
+ git commit && git push
+ }
}
main "$@"
diff --git a/gemlog/2021-06-03-c-is-tough-but-i-like-it.gmi b/gemlog/2021-06-03-c-is-tough-but-i-like-it.gmi
new file mode 100644
index 0000000..284fd4f
--- /dev/null
+++ b/gemlog/2021-06-03-c-is-tough-but-i-like-it.gmi
@@ -0,0 +1,26 @@
+# c is tough but i like it
+
+* date: 2021-06-03
+* author: la-ninpre
+* tags: programming tokipona
+
+once i created little python script that spits out random toki pona phrase. but then i thought 'well, this is nice. but i wanna go further'. i had an idea that it would be awesome to attach this script to a webpage, so that it's different every time it is loaded (in other words, i wanted it as cgi script). but to do so with python is, eh, i dunno.
+
+so i thought 'hmmm, i always had hard time thinking what i can program to learn c' and this was like a flash. yes! let's code this little thing. though, i never thought that it would be so, well, i n t e r e s t i n g.
+
+i knew that c involves memory management, and, you know, this was very good opportunity to kinda learn how it all works.
+
+i need to say that even though it was pretty tough, the result is pleasing for me. by the way, it works here on my machine (archlinux with zen-kernel) and it works on my debian vm and, hell, of course it runs perfectly on my openbsd server. needless to say that the former was the special target for this program (who else would be serving it anyway?).
+
+yes, i know that all that is weird and maybe even stupid, but c'mon. i do tech related stuff just for year now. i mean, i tried before, but if we only count serious attempts, than it's a year.
+
+it is running!
+
+=> /cgi-bin/nimisewi on gemini
+=> https://aaoth.xyz/nimisewi on web
+=> https://fsl.aaoth.xyz/nimisewi.c and here's the source code
+
+## links
+
+=> /gemlog/ back to post list
+=> /cgi-bin/gemlikes/view?2021-06-03-c-is-tough-but-i-like-it.gmi like and comment!
diff --git a/gemlog/index.gmi b/gemlog/index.gmi
index 48b181c..703ea23 100644
--- a/gemlog/index.gmi
+++ b/gemlog/index.gmi
@@ -8,6 +8,7 @@ this gemlog is formatted according to gemini gemlog specification (see below).
## posts
+=> /gemlog/2021-06-03-c-is-tough-but-i-like-it.gmi 2021-06-03 - c is tough but i like it
=> /gemlog/2021-06-01-first-days-in-geminispace.gmi 2021-06-01 - first days in geminispace
## other gemlogs