Update
This commit is contained in:
parent
0ea738f524
commit
181057e0e3
6 changed files with 95 additions and 18 deletions
17
add_git_remotes.sh
Executable file
17
add_git_remotes.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Adds mirror remotes to a git repot, expects one parameter: the repo name.
|
||||
|
||||
echo $1
|
||||
|
||||
git remote | xargs -n1 git remote remove # delete all remotes
|
||||
|
||||
git remote add origin https://git.coom.tech/drummyfish/less_retarded_wiki.git/$1.git
|
||||
|
||||
git remote set-url --add --push origin https://git.coom.tech/drummyfish/$1.git
|
||||
git remote set-url --add --push origin ssh://tastyfish@192.168.0.106:/home/tastyfish/git/$1
|
||||
git remote set-url --add --push origin https://git.thisisjoes.site/drummyfish/$1.git
|
||||
|
||||
git remote -v
|
||||
|
||||
git push --set-upstream origin master
|
20
how_to.md
20
how_to.md
|
@ -12,6 +12,26 @@ Firstly let us welcome you, no matter who you are, no matter your political opin
|
|||
|
||||
OK, let's say this is a set of general advice, life heuristics, pointers and basics of our philosophy, something to get you started, give you a point of view aligned with what we do, help you make a decision here and there, help you free yourself. Remember that by definition **nothing we ever advice is a commandment** or a rule you mustn't ever break, that would be wrong in itself. Some things also may be yet a "thought in progress" and change.
|
||||
|
||||
### Required Time To Read
|
||||
|
||||
Depends on how fast you read.
|
||||
|
||||
### What You Will Learn
|
||||
|
||||
You will learn things that are both:
|
||||
|
||||
- written here and
|
||||
- you didn't know before
|
||||
|
||||
### Prerequisits
|
||||
|
||||
- brain
|
||||
- eyes (not needed if you're using TTS)
|
||||
|
||||
### Where To Go Next
|
||||
|
||||
Wherever you want, this is no dictatorship.
|
||||
|
||||
## Moderacy (Middle Way) Vs Extremism
|
||||
|
||||
An important issue of many ideologies/philosophies/religions/etc. has shown to be striking the right balance between moderacy and extremism. Let's sum up the two stances:
|
||||
|
|
|
@ -13,7 +13,7 @@ cp report.html html
|
|||
DATE=`date +"%D"`
|
||||
FILECOUNT=`ls *.md | wc -l`
|
||||
FILELIST="filelist.html"
|
||||
HEADER="<html><head><link rel=\"stylesheet\" href=\"style.css\"><title>LRS Wiki</title></head><body><h1>less_retarded_wiki</h1><a href=\"main.html\">main page</a>, <a class=\"notdead\" href=\"$FILELIST\">file list ($FILECOUNT)</a>, <a class=\"notdead\" href=\"https://repo.or.cz/less_retarded_wiki.git/snapshot/HEAD.tar.gz\">source</a>, <a class=\"notdead\" href="report.html">report</a>, <a class=\"notdead\" href=\"wiki_stats.html\">stats</a>, wiki last updated on $DATE<hr />"
|
||||
HEADER="<html><head><link rel=\"stylesheet\" href=\"style.css\"><title>LRS Wiki</title></head><body><h1>less_retarded_wiki</h1><a href=\"main.html\">main page</a>, <a class=\"notdead\" href=\"$FILELIST\">file list ($FILECOUNT)</a>, <a class=\"notdead\" href=\"https://git.coom.tech/drummyfish/less_retarded_wiki/archive/master.zip\">source</a>, <a class=\"notdead\" href="report.html">report</a>, <a class=\"notdead\" href=\"wiki_stats.html\">stats</a>, wiki last updated on $DATE<hr />"
|
||||
FOOTER="<hr/><p>All content available under <a class=\"notdead\" href=\"https://creativecommons.org/publicdomain/zero/1.0/\">CC0 1.0</a> (public domain). Send comments and corrections to drummyfish at disroot dot org. </p></body></html>"
|
||||
|
||||
echo "$HEADER <ul>" > html/$FILELIST
|
||||
|
|
|
@ -21,6 +21,10 @@ printf "\nlatest changes:\n\n\`\`\`\n" >> $FILE_NAME
|
|||
git log --name-only | head -n 50 | grep "Date:\|.*\.md" >> $FILE_NAME
|
||||
printf "\`\`\`\n" >> $FILE_NAME
|
||||
|
||||
printf "\nmost wanted pages:\n\n\`\`\`\n" >> $FILE_NAME
|
||||
./most_wanted.sh >> $FILE_NAME
|
||||
printf "\`\`\`\n" >> $FILE_NAME
|
||||
|
||||
printf "\n" >> $FILE_NAME
|
||||
|
||||
# TODO: most wanted links? i.e. most frequent links without article
|
||||
|
|
14
most_wanted.sh
Executable file
14
most_wanted.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
cat ./*.md | sed -n 's/.*\[.*\](\([^\)\(]*\)).*/\1/p' | sort | uniq -c | sort -nr | sed -n "s/.* \([^ ]\)/\1/p" > tmp.txt
|
||||
|
||||
rm tmp2.txt
|
||||
touch tmp2.txt
|
||||
|
||||
while read -r line; do
|
||||
if ! [ -f $line ]; then
|
||||
echo "$line" >> tmp2.txt
|
||||
fi
|
||||
done < tmp.txt
|
||||
|
||||
cat tmp2.txt | head -n 20
|
|
@ -3,7 +3,7 @@
|
|||
This is an auto-generated article holding stats about this wiki.
|
||||
|
||||
- number of articles: 534
|
||||
- total size of all texts in bytes: 2691457
|
||||
- total size of all texts in bytes: 2693306
|
||||
|
||||
longest articles:
|
||||
|
||||
|
@ -23,6 +23,19 @@ longest articles:
|
|||
latest changes:
|
||||
|
||||
```
|
||||
Date: Sun Jan 7 02:43:35 2024 +0100
|
||||
bloat.md
|
||||
books.md
|
||||
compression.md
|
||||
encyclopedia.md
|
||||
how_to.md
|
||||
kiss.md
|
||||
lrs.md
|
||||
lrs_dictionary.md
|
||||
programming.md
|
||||
regex.md
|
||||
wiki_stats.md
|
||||
xxiivv.md
|
||||
Date: Thu Jan 4 16:45:30 2024 +0100
|
||||
3d_rendering.md
|
||||
computational_complexity.md
|
||||
|
@ -40,21 +53,30 @@ jokes.md
|
|||
wiki_stats.md
|
||||
work.md
|
||||
Date: Tue Jan 2 15:42:07 2024 +0100
|
||||
acronym.md
|
||||
bloat.md
|
||||
chaos.md
|
||||
collision_detection.md
|
||||
communism.md
|
||||
fantasy_console.md
|
||||
how_to.md
|
||||
jargon_file.md
|
||||
less_retarded_society.md
|
||||
lrs.md
|
||||
modern.md
|
||||
open_console.md
|
||||
smol_internet.md
|
||||
suckless.md
|
||||
temple_os.md
|
||||
vector.md
|
||||
```
|
||||
|
||||
most wanted pages:
|
||||
|
||||
```
|
||||
ram.md
|
||||
meme.md
|
||||
buddhism.md
|
||||
array.md
|
||||
quake.md
|
||||
irl.md
|
||||
gpu.md
|
||||
gpl.md
|
||||
drm.md
|
||||
data_type.md
|
||||
waiver.md
|
||||
syntax.md
|
||||
rpi.md
|
||||
pointer.md
|
||||
html.md
|
||||
embedded.md
|
||||
cryptography.md
|
||||
sdl.md
|
||||
pascal.md
|
||||
opengl.md
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue