From 04dcf9eedc6a114365aa4f87b4e88c0a68f72e08 Mon Sep 17 00:00:00 2001 From: Stephen Cochrane Date: Sat, 24 Oct 2020 01:08:10 +0200 Subject: [PATCH] Added a script to generate the website --- build.sh | 32 ++++++++++ index.html | 5 +- raw/.template.html.swo | Bin 0 -> 12288 bytes raw/index.txt | 82 +++++++++++++++++++++++++ raw/projects.html | 133 +++++++++++++++++++++++++++++++++++++++++ raw/projects.txt | 77 ++++++++++++++++++++++++ raw/setup.txt | 59 ++++++++++++++++++ raw/template.html | 57 ++++++++++++++++++ site/projects.html | 133 +++++++++++++++++++++++++++++++++++++++++ site/setup.html | 115 +++++++++++++++++++++++++++++++++++ 10 files changed, 690 insertions(+), 3 deletions(-) create mode 100755 build.sh create mode 100644 raw/.template.html.swo create mode 100644 raw/index.txt create mode 100644 raw/projects.html create mode 100644 raw/projects.txt create mode 100644 raw/setup.txt create mode 100644 raw/template.html create mode 100644 site/projects.html create mode 100644 site/setup.html diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..d0008f4 --- /dev/null +++ b/build.sh @@ -0,0 +1,32 @@ +#!/bin/bash +# Auther: Skiqqy + +HOST="https://github.com/" + +conv () { + # Take a file and convert it to html by making substitutes. + + # ^/name -> https://github.com/name + # */name.domain -> https://name.domain + sed -E "s|(\\^/)([^ \)]*)|^\/\2|g" | + sed -E "s|(\\*/)([^ \)]*)|*\/\2|g" | + + sed -E '/%%BODY%%/r /dev/stdin' raw/template.html | + sed -E '/%%BODY%%/d' +} + +for file in raw/*.txt +do + case $file in + *index.txt) + path=index.html + ;; + *) + path=${file/raw/site} + path=${path/txt/html} + ;; + esac + + echo "Building $file" + conv < "$file" > $path +done diff --git a/index.html b/index.html index d9e1500..a5c607a 100644 --- a/index.html +++ b/index.html @@ -37,12 +37,12 @@

Skiqqy

~ Pronounced skippy
 
-Skiqqy
+Home
 
 Personal:
 Github
 My Setup
-Projects
+Projects
 
 Hosted Services:
 Git Server
@@ -134,6 +134,5 @@ Hosted Services:
 | * Mumble Channel: irc.skiqqy.xyz:9980                 |
 |                                                       |
 +-------------------------------------------------------+
-
 Inspired by
 
diff --git a/raw/.template.html.swo b/raw/.template.html.swo new file mode 100644 index 0000000000000000000000000000000000000000..b4ebf527008ca9f1c634044a4aa942715234fb6a GIT binary patch literal 12288 zcmeI2?~5Bn7{})dwMJVjNo>m)+zp9+%Azq<7e!T3Rhyi(r}TPO{T%cDFl| zOVZQ!g@1x?6a){8zG&ZAR8a7hAoxO2d?|_*6zUJKz7YjQzq^~HNjX}5Bb-d&bDN!g z=GmFg%+B6%Q_nxOdYCR5^8}we2|2}HJo$_9EV*D4*^ML8t7p@M zX2ioln(0X~Uo@IRxt+Qp0yAP=Q}K4_F~tp6wY`6mR>x=q+Q7{WbW|g^w2Lgv7xHoF zOm;85`>rQ%R!d*k2DAZfKpW5ov;l2E8_)){f&Y;K6;6?J=+Cx6pGt${)OE+fsXk}} z+JH8o4QK<}fHt5FXam}SHlPh?1KPkAG{77}KFNUF(0Kg+fB5(R)!l@A11wtl0KnXku=0O462ljx!b`kOu z_#Rva=fO0%7kssokT1dK;C1iAfK1UygzJHVCgXg7EZY=BpR{%8Z* zz}7TSF~f-0DyAdW20uxKQ8(g^YSvXMl$L3>3Q`(D)HJiTRbPf8;ts9%D<-Rv+1Ud} zR!+>$l8HP>Ms1HtS+#4GIR7Z;Fr|oW0~@qXpY9vI{u#5j`ouCl&g-@(xUZ7T!&VGy zgi&y6qRLSea9c@wC}{Idt2BhibgSlZ0%T*FG++MkW{Nx;?W;uaD>EOyS}AZ-Q(ppi<-i>3X5TnvW^O}Y3%q+8CFz5 zXywb;#wU_HOC{`9zub{L%1Q2F*we;@%yER@%tfNPA_Oh63*QQ_A<;>v`ZsZn5 zjm6iq6i)r11c@&op z8e-AKG|WhEOxN*tjuXXXhBh#R>{j_&?t)P&u5}S%*y|+oP@6k~J^5A>klB20^eqk; z^`LJ_I||T5lBowyf1Om)sYEJmt{C-Mn^#vjVni5E2WlfT)K|0V{G-c(?MBS!=~_UK zvL@yxsVJd5J{b1<$F5b(^h%t4V%%Q{rXoi|3$D~ER$Eqf3a9%jo@2m#T>n? zMk|e8FY(yx^>T}>myFsji}0&QHQDfsRW{y6Pd(;0tK7%wUMH|sKjbtnuaUn2)4AH1 literal 0 HcmV?d00001 diff --git a/raw/index.txt b/raw/index.txt new file mode 100644 index 0000000..6b5d7d5 --- /dev/null +++ b/raw/index.txt @@ -0,0 +1,82 @@ ++-------------------------------------------------------+ +| | +| About Me | +| | +| * My name is Stephen Cochrane, but my friends call | +| me Skippy (Written skiqqy). | +| | +| * curriculum vitae: | +| There are 3 methods, shown below, | +| 1. $ man <(curl -s https://skiqqy.xyz/skiqqy.1) | +| 2. $ curl https://skiqqy.xyz/gencv | bash | +| 3. Or you can download it here. | +| | +| * I am currently studying at Stellenbosh University | +| a BSc in Computer Science, I am in my third year | +| of studies. | +| | +| * I love low level coding, my language of choice | +| is C. | +| | +| * Vim or gtfo. | +| | +| * Just read the man-pages bro. | +| | +| * Come water my flowers in animal crossing pls. | +| | ++-------------------------------------------------------+ + ++-------------------------------------------------------+ +| | +| Friends | +| | +| * Please go take a look at my friend Tristan, aka | +| "The king of subnets"/"alloca go brrr", his | +| website can be found over here | +| | ++-------------------------------------------------------+ + ++-------------------------------------------------------+ +| | +| What I consider Bloat | +| | +| * Any program that is not "minimal", in the sense | +| that it does not conform to the unix philosophy | +| of doing one thing, and doing that one thing well. | +| | +| * If the program is not free as in free, then I | +| assume the program is bloated and may be malware. | +| | +| * Politics. | +| | +| * Google. | +| | +| * Facebook. | +| | ++-------------------------------------------------------+ + ++-------------------------------------------------------+ +| | +| Contact Details | +| | +| * Twitter: @posix_patrol | +| | +| * Instagram: @_skiqqy | +| | +| * Email: ohmyskippy@disroot.org | +| | +| * xmpp: ohmyskippy@disroot.org | +| | +| * Discord: Skiqqy#1159 | +| | ++-------------------------------------------------------+ + ++-------------------------------------------------------+ +| | +| Other | +| | +| * IRC: irc.skiqqy.xyz:6667 | +| | +| * Mumble Channel: irc.skiqqy.xyz:9980 | +| | ++-------------------------------------------------------+ diff --git a/raw/projects.html b/raw/projects.html new file mode 100644 index 0000000..59c7df5 --- /dev/null +++ b/raw/projects.html @@ -0,0 +1,133 @@ + + +Skiqqy's Home Page + + +

Skiqqy

~ Pronounced skippy
+
+
+Skiqqy
+
+Personal:
+Github
+My Setup
+Projects
+
+Hosted Services:
+Git Server
+Blog
+Wiki
+Files
+Projects Home
+IRC Webclient
+
++-------------------------------------------------------+
+|                                                       |
+|                      Private                          |
+|                                                       |
+|  * KCC: Kak C Compiler, found here ^/skiqqy/kcc.      |
+|                                                       |
+|  * Discord bot, found ^/skiqqy/C45DiscordBot          |
+|                                                       |
+|  * cmesg, found here.                                 |
+|                                                       |
+|  * Text Editor 'ted', found here.                     |
+|                                                       |
+|  * This website, found here.                          |
+|                                                       |
+|  * DChess, found here.                                |
+|                                                       |
++-------------------------------------------------------+
+
++-------------------------------------------------------+
+|                                                       |
+|       Community Projects (more than 2-3 devs)         |
+|                                                       |
+|  * CRXN, more details can be found here.              |
+|                                                       |
+|  * BNet, an IRC network, more info can be found here. |
+|                                                       |
++-------------------------------------------------------+
+
++-------------------------------------------------------+
+|                                                       |
+|                  University Projects                  |
+|                                                       |
+|             Due to the fact that many of              |
+|            these projects are still being             | 
+|          used to asses students at SU, these          |
+|        repos must be set to private, in order         |
+|       to prevent students from copying my work        |
+|                                                       |
+|  * 1st Year, 1st Semester - Lines of Action, a game   |
+|    similar to othello, written in java.               |
+|                                                       |
+|  * 1st Year, 2nd Semester - Obstacle Chess, Normal    |
+|    chess rules, with new pieces introduced, such as   |
+|    bombs, wall's, trapdoors, etc. Written in java.    |
+|                                                       |
+|  * 2nd Year, 1st Semester - Sudoku Solver, using      |
+|    a heuristic algorithm + mutations on possible      |
+|    solutions to form new solutions, written in        |
+|    java.                                              |
+|                                                       |
+|  * 2nd Year, 2nd Semester - Wrote a compiler for      | 
+|    a pascal like language named ALAN standing for     |
+|    Another LANguage, includes scanning, parsing,      |
+|    typechecking, codegen (to the jvm using            |
+|    jasmin) the compiler was written in C.             |
+|                                                       |
+|  * 2nd Year, 2nd Semester - Brainfuck Intepreter,     |
+|    written in x86 Assembly.                           |
+|                                                       |
+|  * 2nd Year, 2nd Semester - Huffman Encoder,          |
+|    written in x86 Assembly                            |
+|                                                       |
+|  * 3rd Year, 1st Semester - Process Scheduler         |
+|    simulator, written in C.                           |
+|                                                       |
+|  * 3rd Year, 1st Semester - Bank Transaction          |
+|    simulator, using omp, and locks to prevent         |
+|    race conditions, written in C.                     |
+|                                                       |
+|  * 3rd Year, 1st Semester - Othello bot, using        |
+|    MPI, and negamax search with alpha beta pruning    |
+|    to find optimal moves, written in C.               |
+|                                                       |
+|  * 3rd Year, 1st Semester - Food review website       |
+|    using flask (python), redis, neo4j.                |
+|                                                       |
++-------------------------------------------------------+
+Inspired by
+
diff --git a/raw/projects.txt b/raw/projects.txt new file mode 100644 index 0000000..f915c2e --- /dev/null +++ b/raw/projects.txt @@ -0,0 +1,77 @@ ++-------------------------------------------------------+ +| | +| Private | +| | +| * KCC: Kak C Compiler, found here ^/skiqqy/kcc. | +| | +| * Discord bot, found ^/skiqqy/C45DiscordBot | +| | +| * cmesg, found here. | +| | +| * Text Editor 'ted', found here. | +| | +| * This website, found here. | +| | +| * DChess, found here. | +| | ++-------------------------------------------------------+ + ++-------------------------------------------------------+ +| | +| Community Projects (more than 2-3 devs) | +| | +| * CRXN, more details can be found here. | +| | +| * BNet, an IRC network, more info can be found here. | +| | ++-------------------------------------------------------+ + ++-------------------------------------------------------+ +| | +| University Projects | +| | +| Due to the fact that many of | +| these projects are still being | +| used to asses students at SU, these | +| repos must be set to private, in order | +| to prevent students from copying my work | +| | +| * 1st Year, 1st Semester - Lines of Action, a game | +| similar to othello, written in java. | +| | +| * 1st Year, 2nd Semester - Obstacle Chess, Normal | +| chess rules, with new pieces introduced, such as | +| bombs, wall's, trapdoors, etc. Written in java. | +| | +| * 2nd Year, 1st Semester - Sudoku Solver, using | +| a heuristic algorithm + mutations on possible | +| solutions to form new solutions, written in | +| java. | +| | +| * 2nd Year, 2nd Semester - Wrote a compiler for | +| a pascal like language named ALAN standing for | +| Another LANguage, includes scanning, parsing, | +| typechecking, codegen (to the jvm using | +| jasmin) the compiler was written in C. | +| | +| * 2nd Year, 2nd Semester - Brainfuck Intepreter, | +| written in x86 Assembly. | +| | +| * 2nd Year, 2nd Semester - Huffman Encoder, | +| written in x86 Assembly | +| | +| * 3rd Year, 1st Semester - Process Scheduler | +| simulator, written in C. | +| | +| * 3rd Year, 1st Semester - Bank Transaction | +| simulator, using omp, and locks to prevent | +| race conditions, written in C. | +| | +| * 3rd Year, 1st Semester - Othello bot, using | +| MPI, and negamax search with alpha beta pruning | +| to find optimal moves, written in C. | +| | +| * 3rd Year, 1st Semester - Food review website | +| using flask (python), redis, neo4j. | +| | ++-------------------------------------------------------+ diff --git a/raw/setup.txt b/raw/setup.txt new file mode 100644 index 0000000..9671e7c --- /dev/null +++ b/raw/setup.txt @@ -0,0 +1,59 @@ ++-------------------------------------------------------+ +| | +| Operating System & Desktop Environment | +| | +| * Currently I am running Fedora GNU/Linux | +| | +| * As for desktop environment, A only use dwm, it | +| fits my workflow perfectly, and I have spent | +| the last few years perfecting it, I dont need | +| a mouse, all I need is a keyboard, and I am | +| comfortable. | +| | ++-------------------------------------------------------+ + ++-------------------------------------------------------+ +| | +| Workflow | +| | +| * My workflow is simple: dwm + terminal + tmux + vim, | +| once I have these, I am in my happy place, and | +| produce really nice code. | +| | +| * I have recently switched to dwm by suckless, the | +| main reason for the switch was that my previous | +| wm (i3wm) was very limiting, with dwm I can edit | +| the source code directly, and so customize it to | +| exactly what I want. Also, elitist. | +| | +| * I have written a script that sets up my workspace, | +| and install's dependencies, this script can be | +| downloaded here. | +| | +| * You can also get my configs on thier own: | +| - ^/skiqqy/.dotfiles | +| - ^/skiqqy/.tmux | +| - ^/skiqqy/dwm | +| | ++-------------------------------------------------------+ + + ++-------------------------------------------------------+ +| | +| Pictures | +| | +| * Image 1: An example of a normal working session | +| using tmux, with vim open. | +| | +| * Image 2: An example of programs being tiled. | +| | +| * Image 3: An example of an empty workspace. | +| | ++-------------------------------------------------------+ + +Image 1: + +Image 2: + +Image 3: + diff --git a/raw/template.html b/raw/template.html new file mode 100644 index 0000000..a584624 --- /dev/null +++ b/raw/template.html @@ -0,0 +1,57 @@ + + +Skiqqy's Home Page + + +

Skiqqy

~ Pronounced skippy
+
+
+Home
+
+Personal:
+Github
+My Setup
+Projects
+
+Hosted Services:
+Git Server
+Blog
+Wiki
+Files
+Projects Home
+IRC Webclient
+
+%%BODY%%
+Inspired by
+
diff --git a/site/projects.html b/site/projects.html new file mode 100644 index 0000000..de6193b --- /dev/null +++ b/site/projects.html @@ -0,0 +1,133 @@ + + +Skiqqy's Home Page + + +

Skiqqy

~ Pronounced skippy
+
+
+Home
+
+Personal:
+Github
+My Setup
+Projects
+
+Hosted Services:
+Git Server
+Blog
+Wiki
+Files
+Projects Home
+IRC Webclient
+
++-------------------------------------------------------+
+|                                                       |
+|                      Private                          |
+|                                                       |
+|  * KCC: Kak C Compiler, found here ^/skiqqy/kcc.      |
+|                                                       |
+|  * Discord bot, found ^/skiqqy/C45DiscordBot          |
+|                                                       |
+|  * cmesg, found here.                                 |
+|                                                       |
+|  * Text Editor 'ted', found here.                     |
+|                                                       |
+|  * This website, found here.                          |
+|                                                       |
+|  * DChess, found here.                                |
+|                                                       |
++-------------------------------------------------------+
+
++-------------------------------------------------------+
+|                                                       |
+|       Community Projects (more than 2-3 devs)         |
+|                                                       |
+|  * CRXN, more details can be found here.              |
+|                                                       |
+|  * BNet, an IRC network, more info can be found here. |
+|                                                       |
++-------------------------------------------------------+
+
++-------------------------------------------------------+
+|                                                       |
+|                  University Projects                  |
+|                                                       |
+|             Due to the fact that many of              |
+|            these projects are still being             | 
+|          used to asses students at SU, these          |
+|        repos must be set to private, in order         |
+|       to prevent students from copying my work        |
+|                                                       |
+|  * 1st Year, 1st Semester - Lines of Action, a game   |
+|    similar to othello, written in java.               |
+|                                                       |
+|  * 1st Year, 2nd Semester - Obstacle Chess, Normal    |
+|    chess rules, with new pieces introduced, such as   |
+|    bombs, wall's, trapdoors, etc. Written in java.    |
+|                                                       |
+|  * 2nd Year, 1st Semester - Sudoku Solver, using      |
+|    a heuristic algorithm + mutations on possible      |
+|    solutions to form new solutions, written in        |
+|    java.                                              |
+|                                                       |
+|  * 2nd Year, 2nd Semester - Wrote a compiler for      | 
+|    a pascal like language named ALAN standing for     |
+|    Another LANguage, includes scanning, parsing,      |
+|    typechecking, codegen (to the jvm using            |
+|    jasmin) the compiler was written in C.             |
+|                                                       |
+|  * 2nd Year, 2nd Semester - Brainfuck Intepreter,     |
+|    written in x86 Assembly.                           |
+|                                                       |
+|  * 2nd Year, 2nd Semester - Huffman Encoder,          |
+|    written in x86 Assembly                            |
+|                                                       |
+|  * 3rd Year, 1st Semester - Process Scheduler         |
+|    simulator, written in C.                           |
+|                                                       |
+|  * 3rd Year, 1st Semester - Bank Transaction          |
+|    simulator, using omp, and locks to prevent         |
+|    race conditions, written in C.                     |
+|                                                       |
+|  * 3rd Year, 1st Semester - Othello bot, using        |
+|    MPI, and negamax search with alpha beta pruning    |
+|    to find optimal moves, written in C.               |
+|                                                       |
+|  * 3rd Year, 1st Semester - Food review website       |
+|    using flask (python), redis, neo4j.                |
+|                                                       |
++-------------------------------------------------------+
+Inspired by
+
diff --git a/site/setup.html b/site/setup.html new file mode 100644 index 0000000..06229a3 --- /dev/null +++ b/site/setup.html @@ -0,0 +1,115 @@ + + +Skiqqy's Home Page + + +

Skiqqy

~ Pronounced skippy
+
+
+Home
+
+Personal:
+Github
+My Setup
+Projects
+
+Hosted Services:
+Git Server
+Blog
+Wiki
+Files
+Projects Home
+IRC Webclient
+
++-------------------------------------------------------+
+|                                                       |
+|         Operating System & Desktop Environment        |
+|                                                       |
+| * Currently I am running Fedora GNU/Linux             |
+|                                                       |
+| * As for desktop environment, A only use dwm, it      |
+|   fits my workflow perfectly, and I have spent        |
+|   the last few years perfecting it, I dont need       |
+|   a mouse, all I need is a keyboard, and I am         |
+|   comfortable.                                        |
+|                                                       |
++-------------------------------------------------------+
+
++-------------------------------------------------------+
+|                                                       |
+|                      Workflow                         |
+|                                                       |
+| * My workflow is simple: dwm + terminal + tmux + vim, |
+|   once I have these, I am in my happy place, and      |
+|   produce really nice code.                           |
+|                                                       |
+| * I have recently switched to dwm by suckless, the    |
+|   main reason for the switch was that my previous     |
+|   wm (i3wm) was very limiting, with dwm I can edit    |
+|   the source code directly, and so customize it to    |
+|   exactly what I want. Also, elitist.                 |
+|                                                       |
+| * I have written a script that sets up my workspace,  |
+|   and install's dependencies, this script can be      |
+|   downloaded here.                                    |
+|                                                       |
+| * You can also get my configs on thier own:           |
+|     - ^/skiqqy/.dotfiles                              |
+|     - ^/skiqqy/.tmux                                  |
+|     - ^/skiqqy/dwm                                    |
+|                                                       |
++-------------------------------------------------------+
+
+
++-------------------------------------------------------+
+|                                                       |
+|                       Pictures                        |
+|                                                       |
+| * Image 1: An example of a normal working session     |
+|   using tmux, with vim open.                          |
+|                                                       |
+| * Image 2: An example of programs being tiled.        |
+|                                                       |
+| * Image 3: An example of an empty workspace.          |
+|                                                       |
++-------------------------------------------------------+
+
+Image 1:
+
+Image 2:
+
+Image 3:
+
+Inspired by
+