add script to generate index pages with posts
This commit is contained in:
		
							parent
							
								
									6cd8743144
								
							
						
					
					
						commit
						18b4b55d87
					
				
					 9 changed files with 127 additions and 5 deletions
				
			
		
							
								
								
									
										2
									
								
								articles.gmi
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								articles.gmi
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,2 @@ | |||
| => 2021-05-04_networking_school.gmi 2021-05-04 - I'm learning networking | ||||
| => 2021-05-01_windowssucks.gmi 2021-05-01 - I hate Microsoft | ||||
|  | @ -18,6 +18,7 @@ there's a list of ideas: | |||
| * free money (as in freedom, not free beer), the case of june/G1 | ||||
| * universal wage (salaire à vie in french), which is not UBI | ||||
| 
 | ||||
| ## articles | ||||
| ## logs | ||||
| 
 | ||||
| => 2021-05-04_networking_school.gmi 2021-05-04 - I'm learning networking | ||||
| => 2021-05-01_windowssucks.gmi 2021-05-01 - I hate Microsoft | ||||
							
								
								
									
										67
									
								
								content/index.gmi
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										67
									
								
								content/index.gmi
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,67 @@ | |||
| ``` ascii art showing my name: Steven Gibone. | ||||
|  ▄▀▀ ▀█▀ ██▀ █ █ ██▀ █▄ █   ▄▀  █ ██▄ ▄▀▄ █▄ █ ██▀ | ||||
|  ▄██  █  █▄▄ ▀▄▀ █▄▄ █ ▀█   ▀▄█ █ █▄█ ▀▄▀ █ ▀█ █▄▄ | ||||
|             Est. 17th of February 2021. | ||||
| ``` | ||||
| 
 | ||||
| # stevengibone.com | ||||
| => gibone-CV.pdf my resume (in french) | ||||
| => mailto:steven.gibone@zaclys.net | ||||
| 
 | ||||
| Hello, my name is Steven Gibone and welcome to my gemini capsule. I used to study mathematics but quit due to me realizing I don't want to teach to an entire class. The public education system is far too broken for me and I really cannot accept to work in these conditions. | ||||
| 
 | ||||
| I have both a *website* and a *gemini capsule*: | ||||
| => gemini://stevengibone.com | ||||
| => https://stevengibone.com | ||||
| If you don't know about the *gemini* protocol and care about a more simple internet, I strongly encourage you to learn more about it: | ||||
| => https://gemini.circumlunar.space/ | ||||
| 
 | ||||
| I take interest in: | ||||
| * coffee, I love coffee | ||||
| * free/libre software | ||||
| * maker/hacker culture | ||||
| * mathematics | ||||
| * philosophy | ||||
| * politics | ||||
| * sports: | ||||
| 	* fencing (I'm not a fencer anymore but really loved it) | ||||
| 	* rock climbing (mostly bouldering in Arkose) | ||||
| 	* rollerblading | ||||
| * video games | ||||
| 
 | ||||
| ## finished projects | ||||
| ### 2021 | ||||
| * built my website using PicoCMS | ||||
| * installed Pi-Hole on my Raspberry Pi | ||||
| * installed Gogs on my Raspberry Pi now with remote access | ||||
| * bought a domain name for my website. | ||||
| * migrated from Gogs to Gitea because it was easy and Gitea has a mobile UI contrary to Gogs. Lives at the same address. | ||||
| * installed agate to serve this gemini capsule :) | ||||
| * migrate website from PicoCMS to 11ty | ||||
| ### 2022 | ||||
| * multiple things of which I didn't keep records | ||||
| * a lot of testing of different minecraft servers and frontend to manage them. I finaly dicided to keep it simple by using cronjobs and tmux. I found that web dashboards are to cumbersome and not flexible enough. | ||||
| * tried *gitolite* and *cgit* replacement of *Gitea* | ||||
| * settle to *Onedev* | ||||
| ### 2023 | ||||
| * resuscitate my gemini capsule again after reading an article by Ploum | ||||
| => gemini://ploum.net/2022-12-04-fin-du-blog-et-derniere-version.gmi | ||||
| 
 | ||||
| ## what I'm reading | ||||
| * ~~The Lord of the Rings: The Two Towers, J.R.R. Tolkien~~ | ||||
| * ~~Clit Révolution, Sarah Constantin & Elvire Duvelle-Charles~~ | ||||
| * En Travail, Bernard Friot et Frédéric Lordon | ||||
| * Sortir de l'hétérosexualité, Juliet Drouart | ||||
| 
 | ||||
| ## what I'm playing | ||||
| * Skul: The Hero Slayer | ||||
| * Hades | ||||
| * PokeMon: Shining Pearl | ||||
| 
 | ||||
| ## logs | ||||
| 
 | ||||
| => tinylog.gmi tinylogs go here | ||||
| => gemlog/index.gmi full gemlogs here | ||||
| 
 | ||||
| => 2021-05-04_networking_school.gmi 2021-05-04 - I'm learning networking | ||||
| => 2021-05-01_windowssucks.gmi 2021-05-01 - I hate Microsoft | ||||
							
								
								
									
										56
									
								
								gengem
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										56
									
								
								gengem
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,56 @@ | |||
| #! /usr/bin/env bash | ||||
| 
 | ||||
| usage () { | ||||
|     echo "\ | ||||
| Usage: gengem [options] | ||||
| 
 | ||||
| Options: | ||||
|     -h, --help  show this message" | ||||
| } | ||||
| 
 | ||||
| generate() { | ||||
| 	DIR=~/dev/gemini-capsule/ | ||||
| 
 | ||||
| 	rm articles.gmi | ||||
| 
 | ||||
| 	echo "generating articles.gmi" | ||||
| 	ls $DIR/content/gemlog | grep -v 'index' | sort -r \ | ||||
| 	| while read fname; do | ||||
|     	DATE=$(echo "$fname" | sed "s/_.*//") | ||||
|     	TITLE=$(head -1 $DIR/content/gemlog/$fname | sed "s/# //") | ||||
|     	echo "=> $fname $DATE - $TITLE" >> $DIR/articles.gmi | ||||
| 	done | ||||
| 
 | ||||
| 	echo "generating gemlog/index.gmi" | ||||
| 	sed -i -e "/^## logs/,//{ | ||||
|     	/^#/!d | ||||
| 	}" -e "/^## logs/{ | ||||
| 		a | ||||
|     	r $DIR/articles.gmi | ||||
| 	}" $DIR/content/gemlog/index.gmi | ||||
| 
 | ||||
| 	echo "generating index.gmi" | ||||
| 	printf ' | ||||
| => tinylog.gmi tinylogs go here | ||||
| => gemlog/index.gmi full gemlogs here\n\n%s' "$(head $DIR/articles.gmi)" \ | ||||
| 	| cat $DIR/in.gmi - > $DIR/content/index.gmi | ||||
| 
 | ||||
| 	echo "DONE :)" | ||||
| } | ||||
| 
 | ||||
| synchronise() { | ||||
| 	DIR=~/dev/gemini-capsule/content/ | ||||
| 	TSERVER=inol@hypatia.stevengibone.com:/home/inol/gemini | ||||
| 	rsync -aP -e "ssh -p 1312" $DIR $TSERVER | ||||
| } | ||||
| 
 | ||||
| if [[ $# == 0 || $1 == "-h" || $1 == "--help" ]]; then | ||||
|     usage | ||||
|     exit 0 | ||||
| elif [[ $1 == "gen" ]]; then | ||||
| 	generate | ||||
| 	exit 0 | ||||
| elif [[ $1 == "sync" ]]; then | ||||
| 	synchronise | ||||
| 	exit 0 | ||||
| fi | ||||
|  | @ -59,7 +59,3 @@ I take interest in: | |||
| * PokeMon: Shining Pearl | ||||
| 
 | ||||
| ## logs | ||||
| => gemlog/index.gmi all gemlog entries | ||||
| 
 | ||||
| => gemlog/2021-05-04_networking_school.gmi 2021-05-04 - I'm learning networking | ||||
| => gemlog/2021-05-01_windowssucks.gmi 2021-05-01 - I hate Microsoft | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue