Added scripts page

This commit is contained in:
Stephen Cochrane 2021-05-18 18:21:49 +02:00
parent 02ffbc3d6d
commit b6dca21abf
4 changed files with 66 additions and 5 deletions

BIN
assets/con.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -20,16 +20,18 @@ conv () {
# ^/name -> https://github.com/name
# */name.domain -> https://name.domain
# !/name.domain -> http://name.domain
# _/name.domain -> http://name.domain
# a/name.domain/title/ -> <a href="name.domain">title</a>
sed -E "s|(\\^/)([^ \)]*)|^\/<a href=$HOST/\2>\2</a>|g" |
sed -E "s|(\\*/)([^ \)]*)|*\/<a href=https:\/\/\2/>\2</a>|g" |
sed -E "s|(\\!/)([^ \)]*)|!\/<a href=http:\/\/\2/>\2</a>|g" |
sed -E "s|(\\_/)([^ \)]*)|_\/<a href=http:\/\/\2/>\2</a>|g" |
sed -E 's|a/(.+)/(.+)/|<a href="\1">\2</a>|g' |
sed -E 's|^SBLOCK\. (.+)|<div class=box><div class=boxheader>\1</div><br>|g' |
sed -E 's|^EBLOCK\.|</div>|g' |
sed -E 's|\\\\|<br>|g' |
sed -E 's|WIP\.|<center><img style="width: 150px"src=../assets/con.gif><center>|g' |
sed -E 's|WIP\\\.|WIP.|g' |
sed -E '/%%BODY%%/r /dev/stdin' raw/template.html |
sed -E '/%%BODY%%/d' |
@ -39,7 +41,7 @@ conv () {
}
main () {
while getopts "dq" opt
while getopts "dqw" opt
do
case $opt in
d)

View File

@ -17,6 +17,9 @@ SBLOCK. About Me
* I love (LOVE!) mathematics, more specifically,
abstract algebra (rings, fields and groups).
\\\\
* I enjoy shell scripting and is my prefered method of automating tasks,
information on my scripts can be found a//site/scripts.html/here/.
\\\\
* Vim or gtfo.
\\\\
* Just read the man-pages bro.
@ -49,8 +52,8 @@ EBLOCK.
SBLOCK. Webring
* Please go take a look at my friend Tristan, aka
"The king of subnets"/"alloca go brrr", his
website located here !/deavmi.assigned.network
"The king of subnets"/"alloca go brrr".
\\ - _/deavmi.assigned.network
\\\\
* caskd "you are wrong"/"im german" denes
\\ - */redxen.eu

56
raw/scripts.txt Normal file
View File

@ -0,0 +1,56 @@
WIP.
SBLOCK. #!/usr/bin/env sh
This area of my website is dedicated to logging my helper scripts, as well as
explaining thier use cases.
\\\\
Most of my scripts are kept inside my a/https://git.sr.ht/~skiqqy/bin/tree/bin/,
which I usually clone inside $HOME, which is included in my $PATH. With that
said, each title will link to said script.
\\\\
Other scripts fall outside of my bin include
\\ - Project Specific run scripts (I wont detail each script, but will describe
my general layout).
\\ - Scripts that have thier own dedicated repos, these will be listed here.
\\\\
Lastly I am only going to list the non-trivial scripts, and not my simple
a/https://git.sr.ht/~skiqqy/bin/tree/master/item/calc/wrapper/ scripts, as
these are not exciting.
EBLOCK.
SBLOCK. a/https://git.sr.ht/~skiqqy/bin/tree/master/item/pdf/pdf/
TODO: Describe pdf.
EBLOCK.
SBLOCK. a/https://git.sr.ht/~skiqqy/bin/tree/master/item/goto/goto/
TODO: Describe goto.
EBLOCK.
SBLOCK. a/https://git.sr.ht/~skiqqy/bin/tree/master/item/dcd/dcd/
TODO: Describe dcd.
EBLOCK.
SBLOCK. a/https://git.sr.ht/~skiqqy/bin/tree/master/item/tagd/tagd/
TODO: Describe tagd.
EBLOCK.
SBLOCK. a/https://git.sr.ht/~skiqqy/bin/tree/master/item/serverstat/serverstat/
TODO: Describe serverstat.
EBLOCK.
SBLOCK. a/https://git.sr.ht/~skiqqy/bin/tree/master/item/ws/ws/
TODO: Describe ws.
EBLOCK.
SBLOCK. a/https://git.sr.ht/~skiqqy/bin/tree/master/item/setwp/setwp/
TODO: Describe setwp.
EBLOCK.
SBLOCK. a/https://git.sr.ht/~skiqqy/bin/tree/master/item/walls/walls/
TODO: Describe walls.
EBLOCK.