1 Commits

Author SHA1 Message Date
68028e486b Update README.md 2025-10-29 20:17:14 +00:00
108 changed files with 1946 additions and 2591 deletions

View File

@@ -1,13 +0,0 @@
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
}
}

View File

@@ -0,0 +1,41 @@
on:
push:
paths:
- "pages/**"
- "blog/**"
- "sitemap.sh"
- "index.xhtml"
jobs:
stats:
runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GIT_TOKEN }}
- name: Set up repository
run: |
git reset --hard
git pull
git reset --hard
- name: Generate sitemap
run: |
sh ./sitemap.sh
- name: Stage the changes
run: |
git add sitemap.xml
- name: Commit and Push Changes
run: |
if git diff --staged --quiet; then
echo "No changes to commit."
else
git config --local user.email "sitemap@localhost"
git config --local user.name "Sitemap CI/CD"
git commit -am "[skip ci] Update sitemap" || echo "No changes to commit"
git push origin HEAD -f
fi

174
.gitignore vendored
View File

@@ -1,171 +1,3 @@
# Byte-compiled / optimized / DLL files files
__pycache__/ guides/xmpp
*.py[cod] /blog/posts/2025/why-i-don't-like-nicotine-pouches.xhtml
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
.pybuilder/
target/
# Jupyter Notebook
.ipynb_checkpoints
# IPython
profile_default/
ipython_config.py
# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version
# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
Pipfile.lock
# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
poetry.lock
# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/
# Celery stuff
celerybeat-schedule
celerybeat.pid
# SageMath parsed files
*.sage.py
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# Pyre type checker
.pyre/
# pytype static type analyzer
.pytype/
# Cython debug symbols
cython_debug/
# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
.idea/
# Databases
*.db
# Other
.ccls-cache/
!py.typed
.key
*.wasm

View File

@@ -1,4 +0,0 @@
{
"singleQuote": false
}

View File

@@ -0,0 +1,52 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGaE3vkBEADykpF/yUW3bWN7mnQLQPWZBC/OOuBoSW8X7DoicPBd/fV2vNWW
t+M7UY0NUZQkyvVaj1EVLY7A0Y+SPoonPqcFvme4Z6waC5fYUEn34OTR1/4/epTy
0vXLm0HHylvMk/Fxf4uf/vXDfOamwuWoWWIvaQNPbacCwDdhwEiTSPgpeLNSUBcW
1jdsf4FCvyZeFTBi889TyF3qICok7XHkZCW3pNcGEu5tn3+OK4DCsL93lSOK/rwf
sLESt2d5Qny+mXDn6acSk7/DhjuYp6NX3hJpK74NuthMXJUWPtI/GJv40siQ0+sI
uFTEsm3I1oWeEy2txw7uMeJOJIVph+IJNxq2m7msB9ubJNlatFBpZsFa4cORrs60
KRIHhRCTJLSUIO07voTZ1vmpgJfqC4v1BROqZJHRyFYEhGbr80CANVPuwYbkAmTQ
VXHNNEg3i65PEu5iBqBz6ZPc17wX5hwtfehaDSftwV30hMxpVkVcmyAwltGfXOjn
2JOEai1i/vO8ytKNGpX1QeGuqWTE5pBWcCWq0LUQyibNJvrLVJ3XWhY1hR6icJUo
yfqB0iqoj2ykaBxEYR0xP4/hQ76DB+hXROH78Okp27B4p2EKaP92UQJhg2IMeqRP
+kbs0DGYFTYdie9wDXOhmmBVTmnHqOlNNICQCDrCXakESQgAgeNjWOVepwARAQAB
tB1BbGVrIDxwdXJwbGVib3JlZEBwb3N0ZW8uY29tPokCVwQTAQgAQRYhBAy1JpDN
ZEQT72aiHK7y+ajAM0ZwBQJmhN75AhsDBQkFxNInBQsJCAcCAiICBhUKCQgLAgQW
AgMBAh4HAheAAAoJEK7y+ajAM0ZwDxoQAOq+441ALQg8kZSGSvkcxzZIOWCXFgtV
Ym8zFzB70mnkLD7wTN/mZJQow1bTdDeu2h1KzhrGhfR5a1meOCxMU7XtRPWUSVp/
1g4d0J80rivyXajnvbDkcyiBlHv780eKhgZuXkCiDKzXEdHnqMOv2qK0PeubKqso
fiULDZjjzsQUP2WF8oom7j8Z50zT4LvNL+pe6jfv1sj0keaF84DOS6tWb/qtzo8P
Y6V+ndyuDsWj9FDHRHAqYMg6jIlyq5KFvNwY5rQN/EvO3Ra0jQQLFN0w/GoYUtLw
WZbolJyWyxPoMbDhPP4ZdqUC7UQwEoTTFD8p2oT9jInoBt2GFgK4x0NpehuWMQj2
d0WAh8EV9jU37Sq2dMoAdruHLK1MaxgCwCSEdKuDV8nZnYxQrXnFN5+qYuvFGvWj
vkwipeHGFcjRFAljLi4o+WyrkOWFE/ZO9WhiaeSoDqpRc5l+DsBjFIWvjBhU6Gh8
4CgtnygfHJPRwoOdbeR1a6xmKXrJ4FkXz8zGgNzdwqLAZzA1Zt4T0JYHDsOW0Ru3
3RS+XvUVItWgDyKl+8EWdPqX4cqK5jnGWtrf78ft18H+F/JBQg1Ks74vDxANBASW
HWsjjjm5ueMtgeR6i0gPa4Dlwkz6K88Ssx2o5rEkcE+V3gKPjHQ9+nGkDKaUTPsI
Tre6Ti8c7tFfuQINBGaE3vkBEADnahL3uK7iFPZCAJtMRm3GyClWojxtLhPL5BQB
7qv1G8jO/NABR7VLeDGXfkli9WSH6Dd3YMvN+RwFIHkZOpGhdNNnUmx7UOpk19qo
09Sb9pt82tC3+gGDbnNbLBOwgKOFEP3A/sVyhg3x3UdDLbfxMp5Wo4omZldjdDP+
xr1xr+zfoRojXLdq3+9c2DUuhCcwpbfEveMruR50qRZHhNafwj+oRk2lalOKRLvf
KqQ1m/rDVQTCQZNZpBpOqs1FzWj3GgyynoJ8g3UaxhfX0mP5HTPky9+vyjU/Qf7u
/i9f3fmpDgQrBLwP+9QHXMVPHW6XQY6NlThqeX9MZ36mLnmWOFLSPxEno1m9ke4v
C6VR9Qnz7ofK6Ia4xWrjdA70hrFNEzlV3n58Zp+K05eAoXXx8arj2yco/BusZMau
Z4WmD4k/O4rQWcJHo/NuupkgvsuKWu4JdYouP46PhVkH05hzEObgqh0ToapNhDh+
7+UYFRVqmnBe/G1U6kLDKHae/S//iidJxwxG9yqbhJFcSr/on22vOoGdI/ddprcI
zyVxbBbsPdKAMuHizjj6bLmthcYlWdclEkM7Xp0PWv2iZ6tTt5Ptj3Tg7Jm9CfWK
Efwe23kSr9NIzokHcPKyDgX7AJe6i8bz90S3/EVyslF2EzaA2dY4QDBvpFrIPYDj
Uh8jawARAQABiQI8BBgBCAAmFiEEDLUmkM1kRBPvZqIcrvL5qMAzRnAFAmaE3vkC
GwwFCQXE0icACgkQrvL5qMAzRnDikw/9G95ftdCwtFzujW0FXk4D0tfxfk694/4k
Edt3dZ5cGyMjQbwf9O6FMvkvTIwL9izy9kBcRDNE/2nXFBsEInpE2C3vYKW8aoYV
qYZdYtNyRBX59x7Aq40NHqBlWuVLHXJGp81RZEiZW4rX9TmxXrW1aH/cC2KUtMgP
L6IqsDy3O6bKklDH+zYOk/V0En6JK4P3DsxEx084IiF/8vbMs7dMa9cdfQ3dm/xt
grCrMmwZL9Y+NCkTycpQxncFMjg9J12XLzMacMfrILZuiRKvwsRuXkDrP9m+4Z5Z
t6a6hFu74iCxWebJ9YAKbbHzzr/WB0/F1P3HEG2Djjspbim6RHSaYeRQtMv5Hai3
1Rpi35nq42e1nTXHiwqwftOeRoYLTzG93MUaPwQxszWbQH6iNTB2wLRN0Xy8JNK/
UtwsOn3tuFgqgWWwtEoNrhAn+kP+besKPV5sqDH/GBb1C9yL7qzrLC93wraPn1CY
pbERnblU66hNa+WWMVCF4W3UUIC452FfSjp003CvyRk6ukgqdNeaaJBe9VErjfLd
4fu0nkuV19w0qL5sij+Tjq0SV6f1vJW3L427iG6+d8VM+1tOqifsFDdBNVOkH/HD
ETvMCC7CZ1tS4WhF5h6zSW1R8u4auY97dJdGIQtfwzexKqnNo5gsYik8NU0onmJf
KyoBhwIfl1o=
=qhIS
-----END PGP PUBLIC KEY BLOCK-----

View File

@@ -1,44 +1,24 @@
# purplebored.pl ## Info:
This is a branch with my "older" site written in XHTML. I have rewritten my site and now it looks completley diffrent, but I still want to keep it so I created a new branch.
> Just my personal website ## purplebored.pl
## Running Welcome to my personal website, located at https://purplebored.pl ! <br>
This is a simple and goofy website that serves as my personal space on the internet. (Such fancy wording ik)
First compile WASM PoW: ### License Information
Licensed under the [Apache License, Version 2.0](LICENSE)
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
```sh http://www.apache.org/licenses/LICENSE-2.0
cd src/static/js/wasm
./compile.sh
cd ../../../../
```
Then: Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. For the full licene chcek out the LICENSE file
(So much yap abt a license ong)
```sh ### Contributing
python3 -m venv venv If you want to conrtibute something to my site just creating a issue first would be ideal!
source venv/bin/activate
source .env # see example.env
pip install --upgrade -r requirements.txt
cd src
memcached -d
# If you remove migrations/:
# flask db init
# vim migrations/script.py.mako (add import flask_app)
# flask db migrate -m 'Initial migration'
flask db upgrade
flask run
```
For production use a WSGI server such as [Gunicorn](https://pypi.org/project/gunicorn/):
```sh
python3 -m venv venv
source venv/bin/activate
source .env # see example.env
pip install --upgrade -r requirements.txt
pip install --upgrade gunicorn
cd src
memcached -d
flask db upgrade
python3 -m gunicorn -b 127.0.0.1:12345 -w 4 app:app # ... Or whatever your configuration is
```

137
assets/css/style.css Normal file
View File

@@ -0,0 +1,137 @@
body {
background-color: #000000;
margin: 0;
height: 100;
overflow-x: hidden;
display: flex;
flex-direction: column;
min-height: 100vh;
}
@font-face {
font-family: IBMWeb;
src: url('/assets/fonts/ibm9x16.woff') format('truetype');
}
/* Ascii logo */
.ascii-logo {
font-family: monospace;
white-space: pre;
color: #a57ae9;
top: 50px;
}
/* End of Ascii logo */
/* The main content of the website */
.content1 {
margin-left: 20px;
margin-right: 20px;
font-family: IBMWeb, Liberation Mono, monospace;
background-color: #000000;
color: #a57ae9;
font-size: 1.0em;
white-space: normal;
}
/* End of the main content of the website */
/* You may ask yourself why are there two identical css sections. */
.content2 {
margin-left: 20px;
margin-right: 20px;
font-family: IBMWeb, Liberation Mono, monospace;
white-space: normal;
color: #a57ae9;
font-size: large;
}
/* Very easy one is for articels or just post idk how to call them and the content1 thing if for general usage */
/*Code to make footer look cool and ncie :D*/
.footer {
font-family: IBMWeb, Liberation Mono, monospace;
text-align: center;
margin-top: auto;
padding: 1em;
color: white;
text-decoration: none;
background: transparent;
}
/* End of the code which makes the footer look nice :( */
/* Makes hyperlinks not look like shit */
a {
text-decoration: none;
color: #447fc6;
}
/* Underlines the hyperlinks */
::selection {
color: #000000;
background: #a57ae9
}
a::selection {
color: #000;
background: #447fc6
}
a:not(:has(img)):hover {
text-decoration: underline
}
/* End of the code which makes hyperlink usable */
/* The Css for the article website */
.article {
margin-left: 35px;
margin-right: 35px;
font-family: monospace;
color: #a57ae9;
font-size: small;
}
/* CSS to make the guides look nice. */
.ascii-logo2 {
font-family: monospace;
white-space: pre;
color: #a57ae9;
top: 50px;
}
.error {
margin: 0 auto;
text-align: center;
font-family: monospace;
white-space: pre;
color: #a57ae9;
}
.snuff-warning h4 {
margin-left: 20px;
margin-right: 20px;
font-family: Arial, serif;
font-size: 16pt;
font-weight: bold;
text-transform: uppercase;
text-align: center;
border: 1mm solid black;
padding: 4px;
margin-bottom: 1em;
}
.snuff-warning ul {
margin-left: 20px;
margin-right: 20px;
list-style-type: none;
padding-left: 0;
margin-left: 0;
}
.snuff-warning input[type="checkbox"] {
margin-left: 20px;
margin-right: 6px;
}
.blog ul {
list-style-type: none;
padding-left: 0;
margin-left: 0;
}

21
assets/errors/401.xhtml Normal file
View File

@@ -0,0 +1,21 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>401</title>
<link rel="icon" href="/favicon.png" />
<link rel="stylesheet" href="/assets/css/style.css" />
</head>
<body>
<div class="error">
_ _ ___ _
| || | / _ \/ |
| || |_| | | | |
|__ _| |_| | |
|_| \___/|_|
401 - Unauthorized
<a href="/index.xhtml">Go home!</a>
</div>
</body>
</html>

21
assets/errors/403.xhtml Normal file
View File

@@ -0,0 +1,21 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>403</title>
<link rel="icon" href="/favicon.png" />
<link rel="stylesheet" href="/assets/css/style.css" />
</head>
<body>
<div class="error">
_ _ ___ _____
| || | / _ \___ /
| || |_| | | ||_ \
|__ _| |_| |__) |
|_| \___/____/
403 - Forbidden
<a href="/index.xhtml">Go home!</a>
</div>
</body>
</html>

21
assets/errors/404.xhtml Normal file
View File

@@ -0,0 +1,21 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>404</title>
<link rel="icon" href="/favicon.png" />
<link rel="stylesheet" href="/assets/css/style.css" />
</head>
<body>
<div class="error">
_ _ ___ _ _
| || | / _ \| || |
| || |_| | | | || |_
|__ _| |_| |__ _|
|_| \___/ |_|
404 - Not Found
<a href="/index.xhtml">Go home!</a>
</div>
</body>
</html>

21
assets/errors/500.xhtml Normal file
View File

@@ -0,0 +1,21 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>500</title>
<link rel="icon" href="/favicon.png" />
<link rel="stylesheet" href="/assets/css/style.css" />
</head>
<body>
<div class="error">
_ _ ___ _____
| || | / _ \___ /
| || |_| | | ||_ \
|__ _| |_| |__) |
|_| \___/____/
500 - Internal Server Error
<a href="/index.xhtml">Go home!</a>
</div>
</body>
</html>

21
assets/errors/502.xhtml Normal file
View File

@@ -0,0 +1,21 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>502</title>
<link rel="icon" href="/favicon.png" />
<link rel="stylesheet" href="/assets/css/style.css" />
</head>
<body>
<div class="error">
____ ___ ____
| ___| / _ \___ \
|___ \| | | |__) |
___) | |_| / __/
|____/ \___/_____|
502 - Bad gateway
<a href="/index.xhtml">Go home!</a>
</div>
</body>
</html>

BIN
assets/errors/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

3
assets/errors/hi.txt Normal file
View File

@@ -0,0 +1,3 @@
uhh hi! as you can see my error thingy is far from being done. This is just a temporay file to let you know if you for whatever reason are here.
have a good day/night

BIN
assets/fonts/ibm9x16.woff Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

View File

Before

Width:  |  Height:  |  Size: 941 B

After

Width:  |  Height:  |  Size: 941 B

View File

Before

Width:  |  Height:  |  Size: 999 B

After

Width:  |  Height:  |  Size: 999 B

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

Before

Width:  |  Height:  |  Size: 552 B

After

Width:  |  Height:  |  Size: 552 B

View File

Before

Width:  |  Height:  |  Size: 1001 B

After

Width:  |  Height:  |  Size: 1001 B

View File

Before

Width:  |  Height:  |  Size: 975 B

After

Width:  |  Height:  |  Size: 975 B

View File

Before

Width:  |  Height:  |  Size: 965 B

After

Width:  |  Height:  |  Size: 965 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

Before

Width:  |  Height:  |  Size: 556 B

After

Width:  |  Height:  |  Size: 556 B

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

View File

Before

Width:  |  Height:  |  Size: 510 B

After

Width:  |  Height:  |  Size: 510 B

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

Before

Width:  |  Height:  |  Size: 426 B

After

Width:  |  Height:  |  Size: 426 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

48
blog/blog.xhtml Normal file
View File

@@ -0,0 +1,48 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="og:url" content="https://purplebored.pl/pages/contact.xhtml" />
<meta name="og:title" content="Purpleblog" />
<meta name="og:description" content="Purplebored's blog" />
<meta name="description" content="Purplebored's blog" />
<meta name="keywords" content="purplebored, poland, polish, personal website, website, buttons, niko, self-hosted, open source, foss, contact, blog, nasal snuff, tobacco, Personal Wesbite, niko, joe camel" />
<meta name="color-scheme" content="dark" />
<meta name="theme-color" content="black" />
<title>=Purpleblog=</title>
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="icon" href="/favicon.png" type="image/png" />
</head>
<body>
<div class="content2" style="text-align: center;">
<h1>=== Purpleblog ===</h1>
<p>
Hello and welcome to my "new" blog. I used to use htmly but decided to stop using it since I had some issues with it. It was nice to write the blogs but the expireince for the user was mediocre at best. At least in my opinion.
Well the blogs on here will be exactly the same as on blog.purplebored.pl just written manually by hand in xhtml. This is overall the better option and it will make my blog aviable over ygg, tor, and i2p.
</p>
<div class="blog">
<h3>Posts:</h3>
<ul>
<li><a href="/blog/posts/2025/blog-future.xhtml">The future of my blog.</a> </li>
<li><a href="/blog/posts/2025/snuff-review-2-ozona-r-type-snuff.xhtml">My Review of the Ozona R-type Snuff</a> </li>
<li><a href="/blog/posts/2025/snuff-review-1-red-bull-snuff.xhtml"> My Review of the Red Bull Snuff </a> </li>
<li><a href="/blog/posts/2025/my-review-of-the-minecraft-movie.xhtml">My Review of the Minecraft Movie</a> </li>
</ul>
<br />
</div>
<h3><a href="/index.xhtml">Back to the main page</a></h3>
</div>
<div class="footer">
Purplebored &copy; 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body>
</html>

View File

@@ -0,0 +1,44 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="og:url" content="https://purplebored.pl/pages/contact.xhtml" />
<meta name="og:title" content=" Future of my blog " />
<meta name="og:description" content=" I discuss here the future of my blog " />
<meta name="description" content=" I discuss here the future of my blog " />
<meta name="keywords" content="purplebored, poland, polish, personal website, website, buttons, niko, self-hosted, open source, foss, contact, blog, nasal snuff, tobacco, Personal Wesbite, niko, joe camel" />
<meta name="color-scheme" content="dark" />
<meta name="theme-color" content="black" />
<title>=The future of my blog=</title>
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="icon" href="/favicon.png" type="image/png" />
</head>
<body>
<div class="content2" style="text-align: center;">
<h1>=== The future of my blog ===</h1>
<p>
Alright I gonna be honest. I don't think I am going to write any blogs anymore. The truth is that I am not really good at writing them, I also have no idea about what to write!
I kinda tried to write reviews and I did not like doing it that much like even now I have no clue at all what to write I am not really good at blogs I always sucked at it my not good English skills are also not really helping this situation.
I will be not deleting my blog I will be still keeping it but for the last like few months I actually wrote nothing. Some people are born with a skill for writing long posts like this but I am sadly not one of them.
I will be of course keeping my site and still updating it but this will be probably abandoned sadly. People tell me that writing is a skill you aquaire but I don't think so I just plainly speaking suck at it :(
So yeah this is a short post but that's it and that's also one of the reasons I will be quitting writing blog posts I just can't write anything long enough. Maybe once I have some projects I will be writing about them, but for now this is it.
Big thanks to the people reading my blog (If there even are any lol) and hopefully cya when I maybe change my mind about this.
</p>
<br />
<h3><a href="/blog/blog.xhtml">Back to the main page</a></h3>
</div>
<div class="footer">
Purplebored &copy; 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body>
</html>

View File

@@ -0,0 +1,47 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="og:url" content="https://purplebored.pl/pages/contact.xhtml" />
<meta name="og:title" content="My review of the Minecraft Movie" />
<meta name="og:description" content="My review of the Minecraft Movie (6/10)" />
<meta name="description" content="My review of the Minecraft Movie (6/10)" />
<meta name="keywords" content="purplebored, poland, polish, personal website, website, buttons, niko, self-hosted, open source, foss, contact, blog, nasal snuff, tobacco, Personal Wesbite, niko, joe camel, minecraft movie" />
<meta name="color-scheme" content="dark" />
<meta name="theme-color" content="black" />
<meta name="date" content="2025-04-07" />
<title>=Purpleblog=</title>
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="icon" href="/favicon.png" type="image/png" />
</head>
<body>
<div class="content2" style="text-align: center;">
<h1>=== My Review of the "Minecraft Movie" ===</h1>
<p>
Okay so I went to the cinema to watch the Minecraft movie. Gonna be honest I am terrible at writing reviews but I gonna try my best here.
<br /> <br />
Gonna start off by saying at the end of the day it's a kids comedy. Like if y'all want to watch it don't expect a movie with a good story and mature humor you won't get it from there but even after this I am actually happily surprised. The CGI looked way worse in the trailers, and even I got a smirk on my face from a few of the jokes. The soundtrack was also decent, and somehow the casting was also pretty alright. The story over all was sadly really predictable and the entire plot was also meh. Like I don't know what else to say it was just alright I went and saw it with my younger brother and his friend since I needed to supervise them and they liked it. The children in the cinema also liked it and were laughing at the jokes, if y'all got a young brother and care enough to go to the cinema then yeah I would say it's worth it to see, but if you want to see it by yourself then I don't think it's worth it. So overall I do not regret the money spent the movie was actually fully fine. If they actually invested into the story a bit more I would actually say it's would be pretty amazing I don't know what else to say it was a decent movie, worth it to watch with a younger sibling but not worth it to watch by yourself.
<br /> <br />
Also funny story I overheard some kids talking about how they liked it but they wished it was a animation and not live action. So yeah even the kids believe it shouldn't have been live action LMFAO.
<br />
Solid 6/10 in my opinion could be worse.
</p>
<br />
<h3><a href="/blog/blog.xhtml">Back to the main page</a></h3>
</div>
<div class="footer">
Purplebored &copy; 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body>
</html>

View File

@@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="og:url" content="https://purplebored.pl/pages/contact.xhtml" />
<meta name="og:title" content="Red Bull snuff review" />
<meta name="og:description" content="Me reviewing the popular snuff called Red Bull" />
<meta name="description" content="Me Reviewing the popular snuff called Red bull" />
<meta name="keywords" content="purplebored, poland, polish, personal website, website, buttons, niko, self-hosted, open source, foss, contact, blog, nasal snuff, tobacco, Personal Wesbite, niko, joe camel" />
<meta name="color-scheme" content="dark" />
<meta name="theme-color" content="black" />
<meta name="date" content="2025-04-08" />
<title>=Purpleblog=</title>
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="icon" href="/favicon.png" type="image/png" />
</head>
<body>
<div class="content2" style="text-align: center;">
<h1>=== Snuff review 1. Red bull snuff ===</h1>
<p>
So the Red bull snuff is one of the most popular snuffs here in Poland. It's a also a very popular first snuff for many of people. For me it was the second snuff I ever tried and here is my small review after using it for around 3 weeks:
<br />
Going to start of with saying it's very strong and has a nice minty eucalyptus taste to it. Personally I am really mixed about the taste I don't think it's bad but I do think it's overrated. I saw a lot of people praising it for being the best snuff and the best snuff for beginners which I totally don't agree with. It's in my opinion too strong to beginners and there are better option. Price wise I would say it's in the mid range. I won't be telling the price in my reviews since that changes a lot with the taxes on tobacco changing a lot of the time and they differ a lot by the country. The box it comes in is a average generic Pöschl Tabak box which in my opinion sucks. The boxes tend to open in the pockets sometimes and the clips tend to break off which is really annoying. The aroma at first is amazing but it tends to go away after a while since the box it comes in isn't really "tight" I don't know how to explain it. The snuff last for quite a long while I had my 10g pack for around 3 or maybe even 4 weeks by this point. It also really works well if you have a runny nose since it clears it real good.
<br /> <br />
To summarize: I believe that Red bull is over all good but I also believe that it is way too overrated and very much not a good snuff for beginners. Overall in my opinion it's a big and strong 8/10. Good but not perfect. If you been taking snuff for a while already and never tried it you should try it BUT if you never tried snuff then I would choose a less stronger snuff like maybe OZONA stuff or GLETSCHER PRISE.
</p>
<br />
<h3><a href="/blog/blog.xhtml">Back to the main page</a></h3>
</div>
<div class="footer">
Purplebored &copy; 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body>
</html>

View File

@@ -0,0 +1,50 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="og:url" content="https://purplebored.pl/pages/contact.xhtml" />
<meta name="og:title" content="Ozona R-Type snuff review" />
<meta name="og:description" content="My small review of the Ozona R-type snuff" />
<meta name="description" content="My Small review of the Ozona R-type snuff" />
<meta name="keywords" content="purplebored, poland, polish, personal website, website, buttons, niko, self-hosted, open source, foss, contact, blog, nasal snuff, tobacco, Personal Wesbite, niko, joe camel" />
<meta name="color-scheme" content="dark" />
<meta name="theme-color" content="black" />
<meta name="date" content="2025-05-14" />
<title>=Purpleblog=</title>
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="icon" href="/favicon.png" type="image/png" />
</head>
<body>
<div class="content2" style="text-align: center;">
<h1>=== Snuff 2 review - Ozona R-type ===</h1>
<p>
So the time finally came. I finished my 5grams of Ozona R-type. This was honestly a really hard snuff to review I have very mixed feelings about this. Well I am going to probably start off by saying it's very weak like probably the weakest one I tried so far. The taste is also pretty chemical but that doesn't mean it's bad it's still pretty good. I also gonna explain what the new "types" mean. Before they were called for example: Ozona Cherry, Raspberry, Orange, etc etc. But now they are called the first letter of the flavor. So Ozona R-type is Ozona Raspberry. It's a stupid and annoying change which I don't really like but you get used to it.
</p>
<img src="/assets/images/blog/2025/ozonar.png" alt="A comparison between the old and new ozona r-type 5 gram packeging" width="300" height="200" />
<p>
Above you can see the differences between the old and new packaging
<br /> <br />
So the flavor is a pretty decent chemical raspberry. It also has some mint in it. Very very good for beginners. I gave it to some of my friends which don't take snuff and they quite liked it (Unlike Red Bull which was somewhat too strong for them.) I personally found it mid since I like stronger snuffs. The packaging is pretty neat so I gonna talk about it. It's a 5gram metal round thingy which you rotate until it opens a hole. It kept the scent for quite a long time, it was also very convenient to use AND easy to open if you want to add a different snuff to it. Honestly I like this type of packaging most. It's nice, small, good, and simply convenient. Honestly I don't know what else to say if you are a beginner searching for some good and weak snuff then you should give Ozona R-Type snuff a shot. But if you are already a snuff user and like stronger snuffs then I would avoid it.
<br /> <br />
And here comes the hard part. Giving it a rating. It's really hard since the taste is good but it's weak which makes it good for beginners but pretty mediocre for people who already are taking snuff and are used to stronger ones. I think it's a strong 6/10 for people who already take snuff and like something stronger and a BIG STRONG 8/10 for new snuff takers.
</p>
<br />
<h3><a href="/blog/blog.xhtml">Back to the main page</a></h3>
</div>
<div class="footer">
Purplebored &copy; 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body>
</html>

39
blog/posts/template.xhtml Normal file
View File

@@ -0,0 +1,39 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="og:url" content="https://purplebored.pl/pages/contact.xhtml" />
<meta name="og:title" content=" BLOG TITLE " />
<meta name="og:description" content=" BLOG CONTENT " />
<meta name="description" content=" BLOG CONTENT " />
<meta name="keywords" content="purplebored, poland, polish, personal website, website, buttons, niko, self-hosted, open source, foss, contact, blog, nasal snuff, tobacco, Personal Wesbite, niko, joe camel" />
<meta name="color-scheme" content="dark" />
<meta name="theme-color" content="black" />
<title>=Purpleblog=</title>
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="icon" href="/favicon.png" type="image/png" />
</head>
<body>
<div class="content2" style="text-align: center;">
<h1>=== BLOG TITLE ===</h1>
<p>
</p>
<br />
<h3><a href="/blog/blog.xhtml">Back to the main page</a></h3>
</div>
<div class="footer">
Purplebored &copy; 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body>
</html>

21
errors/401.xhtml Normal file
View File

@@ -0,0 +1,21 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>401</title>
<link rel="icon" href="/favicon.png" />
<link rel="stylesheet" href="/assets/css/style.css" />
</head>
<body>
<div class="error">
_ _ ___ _
| || | / _ \/ |
| || |_| | | | |
|__ _| |_| | |
|_| \___/|_|
401 - Unauthorized
<a href="/index.xhtml">Go home!</a>
</div>
</body>
</html>

21
errors/403.xhtml Normal file
View File

@@ -0,0 +1,21 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>403</title>
<link rel="icon" href="/favicon.png" />
<link rel="stylesheet" href="/assets/css/style.css" />
</head>
<body>
<div class="error">
_ _ ___ _____
| || | / _ \___ /
| || |_| | | ||_ \
|__ _| |_| |__) |
|_| \___/____/
403 - Forbidden
<a href="/index.xhtml">Go home!</a>
</div>
</body>
</html>

21
errors/404.xhtml Normal file
View File

@@ -0,0 +1,21 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>404</title>
<link rel="icon" href="/favicon.png" />
<link rel="stylesheet" href="/assets/css/style.css" />
</head>
<body>
<div class="error">
_ _ ___ _ _
| || | / _ \| || |
| || |_| | | | || |_
|__ _| |_| |__ _|
|_| \___/ |_|
404 - Not Found
<a href="/index.xhtml">Go home!</a>
</div>
</body>
</html>

21
errors/500.xhtml Normal file
View File

@@ -0,0 +1,21 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>500</title>
<link rel="icon" href="/favicon.png" />
<link rel="stylesheet" href="/assets/css/style.css" />
</head>
<body>
<div class="error">
_ _ ___ _____
| || | / _ \___ /
| || |_| | | ||_ \
|__ _| |_| |__) |
|_| \___/____/
500 - Internal Server Error
<a href="/index.xhtml">Go home!</a>
</div>
</body>
</html>

21
errors/502.xhtml Normal file
View File

@@ -0,0 +1,21 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>502</title>
<link rel="icon" href="/favicon.png" />
<link rel="stylesheet" href="/assets/css/style.css" />
</head>
<body>
<div class="error">
____ ___ ____
| ___| / _ \___ \
|___ \| | | |__) |
___) | |_| / __/
|____/ \___/_____|
502 - Bad gateway
<a href="/index.xhtml">Go home!</a>
</div>
</body>
</html>

BIN
errors/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

3
errors/hi.txt Normal file
View File

@@ -0,0 +1,3 @@
uhh hi! as you can see my error thingy is far from being done. This is just a temporay file to let you know if you for whatever reason are here.
have a good day/night

View File

@@ -1,7 +0,0 @@
export DATABASE='sqlite:///main.db'
export LICENSE='Apache-2.0-only'
export NAME='Your Name'
export EMAIL='test@example.com'
export MEMCACHED='127.0.0.1:11211'
export SOURCE='https://git.ari.lt/templates/flask'
export OG_LOCALE='en_GB'

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

84
feed_gen.py Normal file
View File

@@ -0,0 +1,84 @@
import os
import datetime
from bs4 import BeautifulSoup
from feedgen.feed import FeedGenerator
from pytz import UTC # Ensures timezone-aware datetime
# Configuration
BASE_URL = 'https://purplebored.pl'
POSTS_DIR = './blog/posts'
FEED_OUTPUT_DIR = './feeds'
AUTHOR_NAME = 'Purplebored'
AUTHOR_EMAIL = 'purplebored@posteo.com'
def parse_xhtml_post(filepath):
with open(filepath, 'r', encoding='utf-8') as f:
soup = BeautifulSoup(f, 'lxml')
# Try <meta name="og:title" content="...">
og_title = soup.find('meta', attrs={'name': 'og:title'})
if og_title and og_title.get('content'):
title = og_title['content']
else:
# Fallback to <title> tag
title_tag = soup.find('title')
title = title_tag.get_text() if title_tag else 'Untitled'
# Parse <meta name="date" content="YYYY-MM-DD">
date_meta = soup.find('meta', {'name': 'date'})
if date_meta and date_meta.get('content'):
pub_date = datetime.datetime.strptime(date_meta['content'], '%Y-%m-%d')
else:
pub_date = datetime.datetime.fromtimestamp(os.path.getmtime(filepath))
pub_date = pub_date.replace(tzinfo=UTC)
# Extract article or body content
content = soup.find('article') or soup.find('body')
# Generate relative URL
rel_path = os.path.relpath(filepath, POSTS_DIR)
url = f'{BASE_URL}/blog/posts/{rel_path}'.replace('\\', '/')
return {
'title': title,
'url': url,
'date': pub_date,
'content': str(content)
}
def generate_feeds(posts):
fg = FeedGenerator()
fg.id(BASE_URL)
fg.title('Purplebored Blog')
fg.author({'name': AUTHOR_NAME, 'email': AUTHOR_EMAIL})
fg.link(href=BASE_URL, rel='alternate')
fg.language('en')
fg.description('A blog about snuff reviews and other thoughts.')
for post in sorted(posts, key=lambda x: x['date'], reverse=True):
fe = fg.add_entry()
fe.id(post['url'])
fe.title(post['title'])
fe.link(href=post['url'])
fe.published(post['date'])
fe.content(post['content'], type='xhtml')
os.makedirs(FEED_OUTPUT_DIR, exist_ok=True)
fg.rss_file(os.path.join(FEED_OUTPUT_DIR, 'feed.rss'))
fg.atom_file(os.path.join(FEED_OUTPUT_DIR, 'feed.atom'))
def main():
posts = []
for root, dirs, files in os.walk(POSTS_DIR):
for file in files:
if file.endswith('.xhtml'):
filepath = os.path.join(root, file)
post_data = parse_xhtml_post(filepath)
posts.append(post_data)
generate_feeds(posts)
print(f'✅ Generated {len(posts)} posts in RSS and Atom feeds.')
if __name__ == '__main__':
main()

114
feeds/feed.atom Normal file
View File

@@ -0,0 +1,114 @@
<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><id>https://purplebored.pl</id><title>Purplebored Blog</title><updated>2025-09-25T19:58:02.453463+00:00</updated><author><name>Purplebored</name><email>purplebored@posteo.com</email></author><link href="https://purplebored.pl" rel="alternate"/><generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator><subtitle>A blog about snuff reviews and other thoughts.</subtitle><entry><id>https://purplebored.pl/blog/posts/2025/my-review-of-the-minecraft-movie.xhtml</id><title>My review of the Minecraft Movie</title><updated>2025-09-25T19:58:02.453546+00:00</updated><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml"><body>
<div class="content2" style="text-align: center;">
<h1>=== My Review of the "Minecraft Movie" ===</h1>
<p>
Okay so I went to the cinema to watch the Minecraft movie. Gonna be honest I am terrible at writing reviews but I gonna try my best here.
<br/> <br/>
Gonna start off by saying at the end of the day it's a kids comedy. Like if y'all want to watch it don't expect a movie with a good story and mature humor you won't get it from there but even after this I am actually happily surprised. The CGI looked way worse in the trailers, and even I got a smirk on my face from a few of the jokes. The soundtrack was also decent, and somehow the casting was also pretty alright. The story over all was sadly really predictable and the entire plot was also meh. Like I don't know what else to say it was just alright I went and saw it with my younger brother and his friend since I needed to supervise them and they liked it. The children in the cinema also liked it and were laughing at the jokes, if y'all got a young brother and care enough to go to the cinema then yeah I would say it's worth it to see, but if you want to see it by yourself then I don't think it's worth it. So overall I do not regret the money spent the movie was actually fully fine. If they actually invested into the story a bit more I would actually say it's would be pretty amazing I don't know what else to say it was a decent movie, worth it to watch with a younger sibling but not worth it to watch by yourself.
<br/> <br/>
Also funny story I overheard some kids talking about how they liked it but they wished it was a animation and not live action. So yeah even the kids believe it shouldn't have been live action LMFAO.
<br/>
Solid 6/10 in my opinion could be worse.
</p>
<br/>
<h3><a href="/blog/blog.xhtml">Back to the main page</a></h3>
</div>
<div class="footer">
Purplebored © 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body></div></content><link href="https://purplebored.pl/blog/posts/2025/my-review-of-the-minecraft-movie.xhtml"/><published>2025-04-07T00:00:00+00:00</published></entry><entry><id>https://purplebored.pl/blog/posts/2025/snuff-review-1-red-bull-snuff.xhtml</id><title>Red Bull snuff review</title><updated>2025-09-25T19:58:02.453540+00:00</updated><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml"><body>
<div class="content2" style="text-align: center;">
<h1>=== Snuff review 1. Red bull snuff ===</h1>
<p>
So the Red bull snuff is one of the most popular snuffs here in Poland. It's a also a very popular first snuff for many of people. For me it was the second snuff I ever tried and here is my small review after using it for around 3 weeks:
<br/>
Going to start of with saying it's very strong and has a nice minty eucalyptus taste to it. Personally I am really mixed about the taste I don't think it's bad but I do think it's overrated. I saw a lot of people praising it for being the best snuff and the best snuff for beginners which I totally don't agree with. It's in my opinion too strong to beginners and there are better option. Price wise I would say it's in the mid range. I won't be telling the price in my reviews since that changes a lot with the taxes on tobacco changing a lot of the time and they differ a lot by the country. The box it comes in is a average generic Pöschl Tabak box which in my opinion sucks. The boxes tend to open in the pockets sometimes and the clips tend to break off which is really annoying. The aroma at first is amazing but it tends to go away after a while since the box it comes in isn't really "tight" I don't know how to explain it. The snuff last for quite a long while I had my 10g pack for around 3 or maybe even 4 weeks by this point. It also really works well if you have a runny nose since it clears it real good.
<br/> <br/>
To summarize: I believe that Red bull is over all good but I also believe that it is way too overrated and very much not a good snuff for beginners. Overall in my opinion it's a big and strong 8/10. Good but not perfect. If you been taking snuff for a while already and never tried it you should try it BUT if you never tried snuff then I would choose a less stronger snuff like maybe OZONA stuff or GLETSCHER PRISE.
</p>
<br/>
<h3><a href="/blog/blog.xhtml">Back to the main page</a></h3>
</div>
<div class="footer">
Purplebored © 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body></div></content><link href="https://purplebored.pl/blog/posts/2025/snuff-review-1-red-bull-snuff.xhtml"/><published>2025-04-08T00:00:00+00:00</published></entry><entry><id>https://purplebored.pl/blog/posts/2025/snuff-review-2-ozona-r-type-snuff.xhtml</id><title>Ozona R-Type snuff review</title><updated>2025-09-25T19:58:02.453532+00:00</updated><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml"><body>
<div class="content2" style="text-align: center;">
<h1>=== Snuff 2 review - Ozona R-type ===</h1>
<p>
So the time finally came. I finished my 5grams of Ozona R-type. This was honestly a really hard snuff to review I have very mixed feelings about this. Well I am going to probably start off by saying it's very weak like probably the weakest one I tried so far. The taste is also pretty chemical but that doesn't mean it's bad it's still pretty good. I also gonna explain what the new "types" mean. Before they were called for example: Ozona Cherry, Raspberry, Orange, etc etc. But now they are called the first letter of the flavor. So Ozona R-type is Ozona Raspberry. It's a stupid and annoying change which I don't really like but you get used to it.
</p>
<img alt="A comparison between the old and new ozona r-type 5 gram packeging" height="200" src="/assets/images/blog/2025/ozonar.png" width="300"/>
<p>
Above you can see the differences between the old and new packaging
<br/> <br/>
So the flavor is a pretty decent chemical raspberry. It also has some mint in it. Very very good for beginners. I gave it to some of my friends which don't take snuff and they quite liked it (Unlike Red Bull which was somewhat too strong for them.) I personally found it mid since I like stronger snuffs. The packaging is pretty neat so I gonna talk about it. It's a 5gram metal round thingy which you rotate until it opens a hole. It kept the scent for quite a long time, it was also very convenient to use AND easy to open if you want to add a different snuff to it. Honestly I like this type of packaging most. It's nice, small, good, and simply convenient. Honestly I don't know what else to say if you are a beginner searching for some good and weak snuff then you should give Ozona R-Type snuff a shot. But if you are already a snuff user and like stronger snuffs then I would avoid it.
<br/> <br/>
And here comes the hard part. Giving it a rating. It's really hard since the taste is good but it's weak which makes it good for beginners but pretty mediocre for people who already are taking snuff and are used to stronger ones. I think it's a strong 6/10 for people who already take snuff and like something stronger and a BIG STRONG 8/10 for new snuff takers.
</p>
<br/>
<h3><a href="/blog/blog.xhtml">Back to the main page</a></h3>
</div>
<div class="footer">
Purplebored © 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body></div></content><link href="https://purplebored.pl/blog/posts/2025/snuff-review-2-ozona-r-type-snuff.xhtml"/><published>2025-05-14T00:00:00+00:00</published></entry><entry><id>https://purplebored.pl/blog/posts/template.xhtml</id><title> BLOG TITLE </title><updated>2025-09-25T19:58:02.453517+00:00</updated><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml"><body>
<div class="content2" style="text-align: center;">
<h1>=== BLOG TITLE ===</h1>
<p>
</p>
<br/>
<h3><a href="/blog/blog.xhtml">Back to the main page</a></h3>
</div>
<div class="footer">
Purplebored © 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body></div></content><link href="https://purplebored.pl/blog/posts/template.xhtml"/><published>2025-09-12T23:19:11.980358+00:00</published></entry><entry><id>https://purplebored.pl/blog/posts/2025/blog-future.xhtml</id><title> Future of my blog </title><updated>2025-09-25T19:58:02.453500+00:00</updated><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml"><body>
<div class="content2" style="text-align: center;">
<h1>=== The future of my blog ===</h1>
<p>
Alright I gonna be honest. I don't think I am going to write any blogs anymore. The truth is that I am not really good at writing them, I also have no idea about what to write!
I kinda tried to write reviews and I did not like doing it that much like even now I have no clue at all what to write I am not really good at blogs I always sucked at it my not good English skills are also not really helping this situation.
I will be not deleting my blog I will be still keeping it but for the last like few months I actually wrote nothing. Some people are born with a skill for writing long posts like this but I am sadly not one of them.
I will be of course keeping my site and still updating it but this will be probably abandoned sadly. People tell me that writing is a skill you aquaire but I don't think so I just plainly speaking suck at it :(
So yeah this is a short post but that's it and that's also one of the reasons I will be quitting writing blog posts I just can't write anything long enough. Maybe once I have some projects I will be writing about them, but for now this is it.
Big thanks to the people reading my blog (If there even are any lol) and hopefully cya when I maybe change my mind about this.
</p>
<br/>
<h3><a href="/blog/blog.xhtml">Back to the main page</a></h3>
</div>
<div class="footer">
Purplebored © 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body></div></content><link href="https://purplebored.pl/blog/posts/2025/blog-future.xhtml"/><published>2025-09-25T21:57:52.085913+00:00</published></entry></feed>

114
feeds/feed.rss Normal file
View File

@@ -0,0 +1,114 @@
<?xml version='1.0' encoding='UTF-8'?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0"><channel><title>Purplebored Blog</title><link>https://purplebored.pl</link><description>A blog about snuff reviews and other thoughts.</description><docs>http://www.rssboard.org/rss-specification</docs><generator>python-feedgen</generator><language>en</language><lastBuildDate>Thu, 25 Sep 2025 19:58:02 +0000</lastBuildDate><item><title>My review of the Minecraft Movie</title><link>https://purplebored.pl/blog/posts/2025/my-review-of-the-minecraft-movie.xhtml</link><description>&lt;body&gt;
&lt;div class="content2" style="text-align: center;"&gt;
&lt;h1&gt;=== My Review of the "Minecraft Movie" ===&lt;/h1&gt;
&lt;p&gt;
Okay so I went to the cinema to watch the Minecraft movie. Gonna be honest I am terrible at writing reviews but I gonna try my best here.
&lt;br/&gt; &lt;br/&gt;
Gonna start off by saying at the end of the day it's a kids comedy. Like if y'all want to watch it don't expect a movie with a good story and mature humor you won't get it from there but even after this I am actually happily surprised. The CGI looked way worse in the trailers, and even I got a smirk on my face from a few of the jokes. The soundtrack was also decent, and somehow the casting was also pretty alright. The story over all was sadly really predictable and the entire plot was also meh. Like I don't know what else to say it was just alright I went and saw it with my younger brother and his friend since I needed to supervise them and they liked it. The children in the cinema also liked it and were laughing at the jokes, if y'all got a young brother and care enough to go to the cinema then yeah I would say it's worth it to see, but if you want to see it by yourself then I don't think it's worth it. So overall I do not regret the money spent the movie was actually fully fine. If they actually invested into the story a bit more I would actually say it's would be pretty amazing I don't know what else to say it was a decent movie, worth it to watch with a younger sibling but not worth it to watch by yourself.
&lt;br/&gt; &lt;br/&gt;
Also funny story I overheard some kids talking about how they liked it but they wished it was a animation and not live action. So yeah even the kids believe it shouldn't have been live action LMFAO.
&lt;br/&gt;
Solid 6/10 in my opinion could be worse.
&lt;/p&gt;
&lt;br/&gt;
&lt;h3&gt;&lt;a href="/blog/blog.xhtml"&gt;Back to the main page&lt;/a&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div class="footer"&gt;
Purplebored © 2023-2025 |
&lt;a href="https://git.ari.lt/purplebored/My-Personal-Website"&gt;Source code&lt;/a&gt; |
&lt;a href="/pages/contact.xhtml"&gt;Contact Me&lt;/a&gt; |
&lt;a href="/pages/mirrors.xhtml"&gt;Tor, Ygg &amp;amp; Mirrors&lt;/a&gt; |
&lt;a href="/pages/font.xhtml"&gt;Font&lt;/a&gt; |
&lt;a href="/pages/feeds.xhtml"&gt;RSS&lt;/a&gt; |
&lt;a href="https://status.purplebored.pl"&gt; Uptime / Status&lt;/a&gt; |
&lt;/div&gt;
&lt;/body&gt;</description><guid isPermaLink="false">https://purplebored.pl/blog/posts/2025/my-review-of-the-minecraft-movie.xhtml</guid><pubDate>Mon, 07 Apr 2025 00:00:00 +0000</pubDate></item><item><title>Red Bull snuff review</title><link>https://purplebored.pl/blog/posts/2025/snuff-review-1-red-bull-snuff.xhtml</link><description>&lt;body&gt;
&lt;div class="content2" style="text-align: center;"&gt;
&lt;h1&gt;=== Snuff review 1. Red bull snuff ===&lt;/h1&gt;
&lt;p&gt;
So the Red bull snuff is one of the most popular snuffs here in Poland. It's a also a very popular first snuff for many of people. For me it was the second snuff I ever tried and here is my small review after using it for around 3 weeks:
&lt;br/&gt;
Going to start of with saying it's very strong and has a nice minty eucalyptus taste to it. Personally I am really mixed about the taste I don't think it's bad but I do think it's overrated. I saw a lot of people praising it for being the best snuff and the best snuff for beginners which I totally don't agree with. It's in my opinion too strong to beginners and there are better option. Price wise I would say it's in the mid range. I won't be telling the price in my reviews since that changes a lot with the taxes on tobacco changing a lot of the time and they differ a lot by the country. The box it comes in is a average generic Pöschl Tabak box which in my opinion sucks. The boxes tend to open in the pockets sometimes and the clips tend to break off which is really annoying. The aroma at first is amazing but it tends to go away after a while since the box it comes in isn't really "tight" I don't know how to explain it. The snuff last for quite a long while I had my 10g pack for around 3 or maybe even 4 weeks by this point. It also really works well if you have a runny nose since it clears it real good.
&lt;br/&gt; &lt;br/&gt;
To summarize: I believe that Red bull is over all good but I also believe that it is way too overrated and very much not a good snuff for beginners. Overall in my opinion it's a big and strong 8/10. Good but not perfect. If you been taking snuff for a while already and never tried it you should try it BUT if you never tried snuff then I would choose a less stronger snuff like maybe OZONA stuff or GLETSCHER PRISE.
&lt;/p&gt;
&lt;br/&gt;
&lt;h3&gt;&lt;a href="/blog/blog.xhtml"&gt;Back to the main page&lt;/a&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div class="footer"&gt;
Purplebored © 2023-2025 |
&lt;a href="https://git.ari.lt/purplebored/My-Personal-Website"&gt;Source code&lt;/a&gt; |
&lt;a href="/pages/contact.xhtml"&gt;Contact Me&lt;/a&gt; |
&lt;a href="/pages/mirrors.xhtml"&gt;Tor, Ygg &amp;amp; Mirrors&lt;/a&gt; |
&lt;a href="/pages/font.xhtml"&gt;Font&lt;/a&gt; |
&lt;a href="/pages/feeds.xhtml"&gt;RSS&lt;/a&gt; |
&lt;a href="https://status.purplebored.pl"&gt; Uptime / Status&lt;/a&gt; |
&lt;/div&gt;
&lt;/body&gt;</description><guid isPermaLink="false">https://purplebored.pl/blog/posts/2025/snuff-review-1-red-bull-snuff.xhtml</guid><pubDate>Tue, 08 Apr 2025 00:00:00 +0000</pubDate></item><item><title>Ozona R-Type snuff review</title><link>https://purplebored.pl/blog/posts/2025/snuff-review-2-ozona-r-type-snuff.xhtml</link><description>&lt;body&gt;
&lt;div class="content2" style="text-align: center;"&gt;
&lt;h1&gt;=== Snuff 2 review - Ozona R-type ===&lt;/h1&gt;
&lt;p&gt;
So the time finally came. I finished my 5grams of Ozona R-type. This was honestly a really hard snuff to review I have very mixed feelings about this. Well I am going to probably start off by saying it's very weak like probably the weakest one I tried so far. The taste is also pretty chemical but that doesn't mean it's bad it's still pretty good. I also gonna explain what the new "types" mean. Before they were called for example: Ozona Cherry, Raspberry, Orange, etc etc. But now they are called the first letter of the flavor. So Ozona R-type is Ozona Raspberry. It's a stupid and annoying change which I don't really like but you get used to it.
&lt;/p&gt;
&lt;img alt="A comparison between the old and new ozona r-type 5 gram packeging" height="200" src="/assets/images/blog/2025/ozonar.png" width="300"/&gt;
&lt;p&gt;
Above you can see the differences between the old and new packaging
&lt;br/&gt; &lt;br/&gt;
So the flavor is a pretty decent chemical raspberry. It also has some mint in it. Very very good for beginners. I gave it to some of my friends which don't take snuff and they quite liked it (Unlike Red Bull which was somewhat too strong for them.) I personally found it mid since I like stronger snuffs. The packaging is pretty neat so I gonna talk about it. It's a 5gram metal round thingy which you rotate until it opens a hole. It kept the scent for quite a long time, it was also very convenient to use AND easy to open if you want to add a different snuff to it. Honestly I like this type of packaging most. It's nice, small, good, and simply convenient. Honestly I don't know what else to say if you are a beginner searching for some good and weak snuff then you should give Ozona R-Type snuff a shot. But if you are already a snuff user and like stronger snuffs then I would avoid it.
&lt;br/&gt; &lt;br/&gt;
And here comes the hard part. Giving it a rating. It's really hard since the taste is good but it's weak which makes it good for beginners but pretty mediocre for people who already are taking snuff and are used to stronger ones. I think it's a strong 6/10 for people who already take snuff and like something stronger and a BIG STRONG 8/10 for new snuff takers.
&lt;/p&gt;
&lt;br/&gt;
&lt;h3&gt;&lt;a href="/blog/blog.xhtml"&gt;Back to the main page&lt;/a&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div class="footer"&gt;
Purplebored © 2023-2025 |
&lt;a href="https://git.ari.lt/purplebored/My-Personal-Website"&gt;Source code&lt;/a&gt; |
&lt;a href="/pages/contact.xhtml"&gt;Contact Me&lt;/a&gt; |
&lt;a href="/pages/mirrors.xhtml"&gt;Tor, Ygg &amp;amp; Mirrors&lt;/a&gt; |
&lt;a href="/pages/font.xhtml"&gt;Font&lt;/a&gt; |
&lt;a href="/pages/feeds.xhtml"&gt;RSS&lt;/a&gt; |
&lt;a href="https://status.purplebored.pl"&gt; Uptime / Status&lt;/a&gt; |
&lt;/div&gt;
&lt;/body&gt;</description><guid isPermaLink="false">https://purplebored.pl/blog/posts/2025/snuff-review-2-ozona-r-type-snuff.xhtml</guid><pubDate>Wed, 14 May 2025 00:00:00 +0000</pubDate></item><item><title> BLOG TITLE </title><link>https://purplebored.pl/blog/posts/template.xhtml</link><description>&lt;body&gt;
&lt;div class="content2" style="text-align: center;"&gt;
&lt;h1&gt;=== BLOG TITLE ===&lt;/h1&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;br/&gt;
&lt;h3&gt;&lt;a href="/blog/blog.xhtml"&gt;Back to the main page&lt;/a&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div class="footer"&gt;
Purplebored © 2023-2025 |
&lt;a href="https://git.ari.lt/purplebored/My-Personal-Website"&gt;Source code&lt;/a&gt; |
&lt;a href="/pages/contact.xhtml"&gt;Contact Me&lt;/a&gt; |
&lt;a href="/pages/mirrors.xhtml"&gt;Tor, Ygg &amp;amp; Mirrors&lt;/a&gt; |
&lt;a href="/pages/font.xhtml"&gt;Font&lt;/a&gt; |
&lt;a href="/pages/feeds.xhtml"&gt;RSS&lt;/a&gt; |
&lt;a href="https://status.purplebored.pl"&gt; Uptime / Status&lt;/a&gt; |
&lt;/div&gt;
&lt;/body&gt;</description><guid isPermaLink="false">https://purplebored.pl/blog/posts/template.xhtml</guid><pubDate>Fri, 12 Sep 2025 23:19:11 +0000</pubDate></item><item><title> Future of my blog </title><link>https://purplebored.pl/blog/posts/2025/blog-future.xhtml</link><description>&lt;body&gt;
&lt;div class="content2" style="text-align: center;"&gt;
&lt;h1&gt;=== The future of my blog ===&lt;/h1&gt;
&lt;p&gt;
Alright I gonna be honest. I don't think I am going to write any blogs anymore. The truth is that I am not really good at writing them, I also have no idea about what to write!
I kinda tried to write reviews and I did not like doing it that much like even now I have no clue at all what to write I am not really good at blogs I always sucked at it my not good English skills are also not really helping this situation.
I will be not deleting my blog I will be still keeping it but for the last like few months I actually wrote nothing. Some people are born with a skill for writing long posts like this but I am sadly not one of them.
I will be of course keeping my site and still updating it but this will be probably abandoned sadly. People tell me that writing is a skill you aquaire but I don't think so I just plainly speaking suck at it :(
So yeah this is a short post but that's it and that's also one of the reasons I will be quitting writing blog posts I just can't write anything long enough. Maybe once I have some projects I will be writing about them, but for now this is it.
Big thanks to the people reading my blog (If there even are any lol) and hopefully cya when I maybe change my mind about this.
&lt;/p&gt;
&lt;br/&gt;
&lt;h3&gt;&lt;a href="/blog/blog.xhtml"&gt;Back to the main page&lt;/a&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div class="footer"&gt;
Purplebored © 2023-2025 |
&lt;a href="https://git.ari.lt/purplebored/My-Personal-Website"&gt;Source code&lt;/a&gt; |
&lt;a href="/pages/contact.xhtml"&gt;Contact Me&lt;/a&gt; |
&lt;a href="/pages/mirrors.xhtml"&gt;Tor, Ygg &amp;amp; Mirrors&lt;/a&gt; |
&lt;a href="/pages/font.xhtml"&gt;Font&lt;/a&gt; |
&lt;a href="/pages/feeds.xhtml"&gt;RSS&lt;/a&gt; |
&lt;a href="https://status.purplebored.pl"&gt; Uptime / Status&lt;/a&gt; |
&lt;/div&gt;
&lt;/body&gt;</description><guid isPermaLink="false">https://purplebored.pl/blog/posts/2025/blog-future.xhtml</guid><pubDate>Thu, 25 Sep 2025 21:57:52 +0000</pubDate></item></channel></rss>

90
index.xhtml Normal file
View File

@@ -0,0 +1,90 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#"
xmlns:fb="https://www.facebook.com/2008/fbml" xml:lang="en"
lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=Windows-1250" />
<!-- Stuff required for embeds and propper SEO -->
<!-- ^ who gives a shit -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="og:url" content="https://purplebored.pl/" />
<meta name="og:title" content="Purplebored.pl" />
<meta name="og:description" content="Just my personal website :-)" />
<meta name="description" content="Just my personal website :-)" />
<meta name="keywords" content="purplebored, poland, polish, personal website, website, buttons, niko, self-hosted, open source, foss" />
<meta name="color-scheme" content="dark" />
<meta name="theme-color" content="black" />
<!-- End -->
<title>=Purplebored=</title>
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="icon" href="/favicon.png" type="image/png" />
</head>
<body>
<!-- Sick ascii art/logo -->
<pre class="ascii-logo">
_____ _ _ _ _
| __ \ | | | | | | | |
| |__) | _ _ __ _ __ | | ___| |__ ___ _ __ ___ __| | _ __ | |
| ___/ | | | '__| '_ \| |/ _ \ '_ \ / _ \| '__/ _ \/ _` | | '_ \| |
| | | |_| | | | |_) | | __/ |_) | (_) | | | __/ (_| |_| |_) | |
|_| \__,_|_| | .__/|_|\___|_.__/ \___/|_| \___|\__,_(_) .__/|_|
| | | |
|_| |_|
</pre>
<!--As my very creative class name may suggest this is the CSS div for my "content". Nothing special.-->
<div class="content1">
<h3>=== About Me ===</h3>
<p>
Hi, I am Purplebored, o/ also known as Niko. Right now you are
on my own little website which I call my home on the World Wide
Web!
</p>
<p>
I like making websites like this. And I am also somewhat of a
privacy advocate. I also love tobaccoo and I really like nasal snuff. I even write a little bit about it but I am still very much a snuff newbie. I speak Polish and English but I am
also learning Russian. Regarding programming I currently only know
basic HTML. From
other stuff I also know some Linux! (Not much but enough to daily
drive it)
</p>
<!-- My projects-->
<h3>=== My Projects ===</h3>
<a href="/pages/projects/irc-discord-bridge.xhtml" target="_blank">
A Discord to IRC bridge (With userbot support.).
</a>
<br />
<a href="/blog/blog.xhtml" target="_blank">
Purpleblog
</a>
<br />
<a href="/pages/guides.xhtml" target="_blank">
A list of guides on how to use XMPP, IRC, PGP, etc.
</a>
<!-- "Cool stuff" Pretty much shit which did not belong to the stuff I am hosting nor my projects-->
<h3>=== Cool Stuff ===</h3>
<a href="/pages/stuff.xhtml">Stuff I like !!</a>
<br />
<a href="/pages/buttons.xhtml">Buttons!/88X31s !!</a>
<br />
<a href="/pages/snuff.xhtml">Nasal snuff !!</a>
<br />
<a href="/pages/music.xhtml">Music I like.</a>
<br />
<a href="/pages/host.xhtml">Things I host.</a>
</div>
<div class="footer">
Purplebored &copy; 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body>
</html>
<!-- Code for this website made with passion by Purplebored. https://purplebored.pl/ <3 -->

168
pages/buttons.xhtml Normal file
View File

@@ -0,0 +1,168 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="og:url" content="https://purplebored.pl/pages/buttons.xhtml" />
<meta name="og:title" content="Buttons" />
<meta name="og:description" content="Purplebored 88x31s :-)" />
<meta name="description" content="Purplebored 88x31s :-)" />
<meta name="keywords" content="purplebored, poland, polish, personal website, website, buttons, niko, self-hosted, open source, foss, 88x31" />
<meta name="color-scheme" content="dark" />
<meta name="theme-color" content="black" />
<title>=Buttons=</title>
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="icon" href="/favicon.png" type="image/png" />
</head>
<body>
<div class="content1" style="text-align: center; margin: 0 auto">
<h3>=== Buttons ===</h3>
Ah yes 88x31 also known as buttons, a staple in personal websites
I would say. They are so cool in my opinion and I love having
them. I even have my own 88x31 which you can download
<a href="/assets/images/buttons/Purplebored_button.png" target="_blank">
Here!
</a>
<br />
(you can also just use that link instead of downloading the
button. That would be even better actually because if I update my
button it's going to automatically update on your website.)
<br />
<h4>Website 88x31s:<br /></h4>
<!-- All the website buttons -->
<!--My personal website button-->
<a href="https://purplebored.pl/" target="_blank">
<img src="/assets/images/buttons/Purplebored_button.png"
alt="My button"/>
</a>
<!--Unpato writing button-->
<a href="https://unpato.neocities.org/" target="_blank">
<img src="/assets/images/buttons/unpato.png"
alt="Unpato writing Button"/>
</a>
<!--tobskep button-->
<a href="https://tobskep.com/" target="_blank">
<img src="/assets/images/buttons/tobskep.gif"
alt="Tobskeep button."/>
</a>
<!--eclipse.cx button-->
<a href="https://eclipse.cx" target="_blank">
<img src="/assets/images/buttons/eclipsecx.png"
alt="Eclipse Comunity Button"/>
</a>
<!--aagaming button-->
<a href="https://aagaming.me/" target="_blank">
<img src="/assets/images/buttons/aagaming.png"
alt="AAgamings button." />
</a>
<!--mcneb10 button-->
<a href="https://themcgovern.net" target="_blank">
<img src="/assets/images/buttons/mcneb10.gif"
alt="Mcneb10 button." />
</a>
<!--georgemoody button-->
<a href="htttps://moody.im/" target="_blank">
<img border="1"
src="/assets/images/buttons/georgemoody.png"
alt="georgemoody button."/>
</a>
<!--Xameren button-->
<a href="https://xameren.fsky.io" target="_blank">
<img src="/assets/images/buttons/xameren.png"
alt="Xamern button." />
</a>
<!--fsky.io button-->
<a href="https://fsky.io" target="_blank">
<img src="/assets/images/buttons/fsky.png"
alt="FSKY.io button."/>
</a>
<!--ari button-->
<a href="https://ari.lt/"
title="ari-web badge"
rel="noopener noreferrer"
target="_blank">
<img src="/assets/images/buttons/ari.png"
alt="ari-web badge" />
</a>
<!--telepath button-->
<a href="https://telepath.im" target="_blank">
<img src="/assets/images/buttons/telepath.png"
alt="Telepath.im button"/>
</a>
<!--Nyx button-->
<a href="https://nyx.everypizza.im" target="_blank">
<img src="/assets/images/buttons/nyx.png"
alt="Nyx everypizza button."/>
</a>
<!-- Aleksey kon button -->
<a href="https://aleksey-kon-games.fsky.io/" target="_blank">
<img src="/assets/images/buttons/aleksey.png"
alt="aleksey kon games button" />
</a>
<!-- k327 button -->
<a href="https://k327.eu/" target="_blank">
<img src="/assets/images/buttons/k327.png"
alt="k327.eu button"/>
</a>
<!-- Trace button -->
<a href="https://vaporwavefox.neocities.org" target="_blank">
<img src="/assets/images/buttons/trace.png"
alt="Trace button"/>
</a>
<!-- Zayd button-->
<a href="https://zayd.fsky.io" target="_blank">
<img src="/assets/images/buttons/zayd.png"
alt="Zayd button" />
</a>
<!-- Authen button-->
<a href="https://authenyo.xyz" target="_blank">
<img src="/assets/images/buttons/authen.gif"
alt="Authen button" />
</a>
<!-- Midgard button (ygg)-->
<a href="http://[300:5506:25eb:d0d9::]">
<img src="/assets/images/buttons/midgard.png"
alt="Midgard button" />
</a>
<!-- End of the website buttons -->
<br />
(btw the midgard buttons links to the ygg site. So you need to have ygg setup to view it.)
<br />
<h4>Other buttons:</h4>
<!--Firefox button-->
<img src="/assets/images/buttons/firefox.gif"
alt="Tested on Firefox button" />
<!--Works on every browser button-->
<img src="/assets/images/buttons/any_browser.gif"
alt="Works on any browser button." />
<!--Made for dark mode button-->
<img src="/assets/images/buttons/dark-mode.gif"
alt="Made for darkmode button." />
<!--Runs on freeBSD button-->
<img src="/assets/images/buttons/freebsd.gif"
alt="Runs on FreeBSD button." />
<br />
<a href="https://airvpn.org/?referred_by=699005"
title="Air VPN - The air to breathe the real Internet"
target="_blank">
<img src="/assets/images/buttons/airvpn_userbar.png"
alt="Air VPN - The air to breathe the real Internet" />
</a>
<br />
<a href="/index.xhtml">Back to the main page</a>
</div>
<div class="footer">
Purplebored &copy; 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body>
<!-- Code for this website made with passion by Purplebored. https://purplebored.pl <3 -->
</html>

52
pages/contact.xhtml Normal file
View File

@@ -0,0 +1,52 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="og:url" content="https://purplebored.pl/pages/contact.xhtml" />
<meta name="og:title" content="Contact" />
<meta name="og:description" content="Purplebored contacts :-)" />
<meta name="description" content="Purplebored contacts :-)" />
<meta name="keywords" content="purplebored, poland, polish, personal website, website, buttons, niko, self-hosted, open source, foss, contact" />
<meta name="color-scheme" content="dark" />
<meta name="theme-color" content="black" />
<title>=Contact Me=</title>
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="icon" href="/favicon.png" type="image/png" />
</head>
<body>
<div class="content1" style="text-align: center; margin: 0 auto">
<h2>=== Contact Me ===</h2>
<h4>Here are some ways to get in touch with me.</h4>
Telegram: @purplebored
Matrix: purplebored:telepath.im<br />
Email: purplebored(at)posteo.com<br />
XMPP: niko(at)telepath.im<br />
<p>
Please avoid using Matrix since I don't really use it anymore and check it only a few times per week. I prefer to be contacted by XMPP or Email.
</p>
<p>
Also if you are contacting me over email or XMPP please use
PGP if you can in both cases!
<a href="/0CB52690CD644413EF66A21CAEF2F9A8C0334670.asc"
target="_blank">
You can get my public key here!
</a>
</p>
<br />
<h3><a href="/index.xhtml">Back to the main page</a></h3>
</div>
<div class="footer">
Purplebored &copy; 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body>
</html>

43
pages/feeds.xhtml Normal file
View File

@@ -0,0 +1,43 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="og:url" content="https://purplebored.pl/pages/contact.xhtml" />
<meta name="og:title" content="RSS and Atom feeds" />
<meta name="og:description" content="RSS and Atom feeds." />
<meta name="description" content="RSS and Atom feeds." />
<meta name="keywords" content="purplebored, poland, polish, personal website, website, buttons, niko, self-hosted, open source, foss, contact, feeds" />
<meta name="color-scheme" content="dark" />
<meta name="theme-color" content="black" />
<title>=Feeds=</title>
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="icon" href="/favicon.png" type="image/png" />
</head>
<body>
<div class="content1" style="text-align: center; margin: 0 auto">
<h2>=== My RSS and Atom feed for Purpleblog. ===</h2>
<p>
<a href="/feeds/feed.rss">RSS</a>
<br />
<a href="/feeds/feed.atom">Atom</a>
</p>
<br />
<img src="/assets/images/buttons/valid-atom.png" alt="Valid attom button" />
<img src="/assets/images/buttons/valid-rss.png" alt="Valid RSS button" />
<h3><a href="/">Back to the main page</a></h3>
</div>
<div class="footer">
Purplebored &copy; 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body>
</html>

40
pages/font.xhtml Normal file
View File

@@ -0,0 +1,40 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="og:url" content="https://purplebored.pl/pages/contact.xhtml" />
<meta name="og:title" content="Contact" />
<meta name="og:description" content="Purplebored contacts :-)" />
<meta name="description" content="Purplebored contacts :-)" />
<meta name="keywords" content="purplebored, poland, polish, personal website, website, buttons, niko, self-hosted, open source, foss, contact" />
<meta name="color-scheme" content="dark" />
<meta name="theme-color" content="black" />
<title>=Font=</title>
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="icon" href="/favicon.png" type="image/png" />
</head>
<body>
<div class="content1" style="text-align: center; margin: 0 auto">
<h2>=== The font I am using ===</h2>
<p>
IBM VGA 9x16 font by VileR. (I found it on 4d2.org and really liked it lol)
<a href="https://int10h.org/oldschool-pc-fonts/#-">Link</a>
</p>
<br />
<h3><a href="/">Back to the main page</a></h3>
</div>
<div class="footer">
Purplebored &copy; 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body>
</html>

56
pages/guides.xhtml Normal file
View File

@@ -0,0 +1,56 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="og:url" content="https://purplebored.pl/pages/contact.xhtml" />
<meta name="og:title" content="Contact" />
<meta name="og:description" content="Purplebored contacts :-)" />
<meta name="description" content="Purplebored contacts :-)" />
<meta name="keywords" content="purplebored, poland, polish, personal website, website, buttons, niko, self-hosted, open source, foss, contact" />
<meta name="color-scheme" content="dark" />
<meta name="theme-color" content="black" />
<title>=Purple Guides=</title>
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="icon" href="/favicon.png" type="image/png" />
</head>
<body>
<!-- Sick ascii art/logo -->
<pre class="ascii-logo2" style="text-align: center; margin: 0 auto">
_____ _ _
/ ____| (_) | |
| | __ _ _ _ __| | ___ ___
| | |_ | | | | |/ _` |/ _ \/ __|
| |__| | |_| | | (_| | __/\__ \
\_____|\__,_|_|\__,_|\___||___/
</pre>
<div class="content2" style="text-align: center; margin: 0 auto">
<h3>=== Info ===</h3>
<p>
Below youll find all the guides Ive written. Each guide is
available for download as a PDF or .docx file. Download links
are located at the top of each guide.
</p>
<h3>=== Categories: ===</h3>
<h4><a>XMPP (Coming One day.)</a></h4>
<h4><a>PGP (Coming One day.)</a></h4>
<br />
<h3><a href="/index.xhtml">Back to the home page</a></h3>
</div>
<div class="footer">
Purplebored &copy; 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body>
</html>
<!-- Code for this website made with passion by Purplebored. https://purplebored.pl <3 -->

49
pages/host.xhtml Normal file
View File

@@ -0,0 +1,49 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="og:url" content="https://purplebored.pl/pages/contact.xhtml" />
<meta name="og:title" content="Contact" />
<meta name="og:description" content="Purplebored stuff he hosts :-)" />
<meta name="description" content="Purplebored stuff he hosts :-)" />
<meta name="keywords" content="purplebored, poland, polish, personal website, website, buttons, niko, self-hosted, open source, foss, contact" />
<meta name="color-scheme" content="dark" />
<meta name="theme-color" content="black" />
<title>=Things I host:=</title>
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="icon" href="/favicon.png" type="image/png" />
</head>
<body>
<div class="content1" style="text-align: center; margin: 0 auto">
<h2>=== Things I host: ===</h2>
<a href="https://bin.purplebored.pl/" target="_blank">
My Private Pastebin instance.
</a>
(Slightly out ofdate)
<br />
Mumble - You can find it on mumble.purplebored.pl (Default port.). Simply connect with your mumble client and talk! You can also connect with ygg.
<br />
Soju (irc Bouncer) soju.purplebored.pl - For now it's for close "homies" only.
<br />
XMPP server. (Running Prosody 13.x.) - For now it's also for close "homies" only.
<a href="https://compliance.conversations.im/server/purplebored.pl/">My servers compliance. (95%)</a>
<br />
Gamja (Web IRC client.) - A web IRC client I host for my soju. <a href="https://soju.purplebored.pl/gamja">Link.</a>
<h3><a href="/">Back to the home page</a></h3>
</div>
<div class="footer">
Purplebored &copy; 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body>
</html>

69
pages/mirrors.xhtml Normal file
View File

@@ -0,0 +1,69 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="og:url" content="https://purplebored.pl/pages/contact.xhtml" />
<meta name="og:title" content="Contact" />
<meta name="og:description" content="Purplebored contacts :-)" />
<meta name="description" content="Purplebored contacts :-)" />
<meta name="keywords" content="purplebored, poland, polish, personal website, website, buttons, niko, self-hosted, open source, foss, contact" />
<meta name="color-scheme" content="dark" />
<meta name="theme-color" content="black" />
<title>=Mirrors=</title>
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="icon" href="/favicon.png" type="image/png" />
</head>
<body>
<div class="content1" style="text-align: center; margin: 0 auto">
<h2>=== Mirrors ===</h2>
<p>
Here is a list of my website mirrors.
</p>
Main URL:
<a href="https://purplebored.pl">https://purplebored.pl (Main site hosted by me)</a>
<br />
Mirror 1 URL:
<a href="https://niko.fsky.io">https://niko.fsky.io (Hosted on fsky.io)</a><br />
Ygg site:
<a href="http://[300:5506:25eb:d0d9:1000:1000:1000:1002]/">http://[300:5506:25eb:d0d9:1000:1000:1000:1002]/ (Hosted on Midgard)</a>
<br />
Ygg site 2:
<a href="http://[200:38ad:e575:f3c1:aba7:9e86:ae1e:4922]/">200:38ad:e575:f3c1:aba7:9e86:ae1e:4922 (Hosted by me.)</a>
Tor:
<a href="http://niko.fsky42e4xj4o4q7xiyxzodqvd75iwgztywxtbugdmixamrmui5l4vhid.onion/">
http://niko.fsky42e4xj4o4q7xiyxzodqvd75iwgztywxtbugdmixamrmui5l4vhid.onion/ (Hosted on fsky.io)
</a>
<br />
Tor 2:
<a href="http://purplebored.midgardmvjfdvespsrfr3fmcyjwmnqhvsmiea7wqoyrrn5rpzp6zo5ad.onion/">
purplebored.midgardmvjfdvespsrfr3fmcyjwmnqhvsmiea7wqoyrrn5rpzp6zo5ad.onion/ (Hosted on Midgard)
</a>
<br />
I2P:
<a href="http://jn5qhsi2ucq4ibpef2blesd3ygkmluafbhavk43omi3bmgity3ba.b32.i2p/">
http://jn5qhsi2ucq4ibpef2blesd3ygkmluafbhavk43omi3bmgity3ba.b32.i2p (Hosted on Midgard)
</a>
<br />
Gopher:
<a href="gopher://worlio.com/1/~purplebored/">
gopher://worlio.com/1/~purplebored/ - My gopher site not really a mirror but I am going to still list it here.
</a>
<br />
<h3><a href="/">Back to the home page</a></h3>
</div>
<div class="footer">
Purplebored &copy; 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body>
</html>

66
pages/music.xhtml Normal file
View File

@@ -0,0 +1,66 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="og:url" content="https://purplebored.pl/pages/contact.xhtml" />
<meta name="og:title" content="Music" />
<meta name="og:description" content="Purplebored favorite music :-)" />
<meta name="description" content="Purplebored favorite music :-)" />
<meta name="keywords" content="purplebored, poland, polish, personal website, website, buttons, niko, self-hosted, open source, foss, contact, music" />
<meta name="color-scheme" content="dark" />
<meta name="theme-color" content="black" />
<title>=Music=</title>
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="icon" href="/favicon.png" type="image/png" />
</head>
<body>
<div class="content1" style="text-align: center; margin: 0 auto">
<h2>=== My Favorite pieces of music. ===</h2>
<p>
Well I probably going to start off by listing my favorite tracks of all time. The order is random: (Those are jewtube links btw.)
<br />
<a href="https://www.youtube.com/watch?v=XeleGQFfbrs">My Yard - The Regular Bus / Мой Двор - Обычный Автобус, и все как обычно</a>
<br />
<a href="https://www.youtube.com/watch?v=6WyY1OAwjpY">Jacek Kaczmarski - "Szklana góra"</a>
<br />
<a href="https://www.youtube.com/watch?v=0dXTeQ8WLUs">HAPPYSAD - Od kiedy ropą</a>
<br />
<a href="https://www.youtube.com/watch?v=6kerTWSFBao">STRACHY NA LACHY - Radio Dalmacija</a>
<br />
<a href="https://www.youtube.com/watch?v=gvDKuRP8vRE">STRACHY NA LACHY - Czarny chleb i czarna kawa</a>
<br />
<a href="https://www.youtube.com/watch?v=8YKAHgwLEMg">Wilki - Urke</a>
<br />
<a href="https://www.youtube.com/watch?v=1YtRuAd7ti4">PIDŻAMA PORNO - Nikt tak pięknie nie mówił, że się boi miłości</a>
<br />
<a href="https://www.youtube.com/watch?v=lHBiAhiddJ8">Włóczęgi - Tylko we Lwowie</a>
<br />
<a href="https://www.youtube.com/watch?v=DIZ8549vE5o">Каскад - Кукушка</a>
<br />
<a href="https://www.youtube.com/watch?v=Ncfm6Fphhlo">Кино - Группа Крови</a>
<br />
<a href="https://youtu.be/SC6pqE7tKuM">Dzień Zwycięstwa - День Победы (Polish and Russian)</a>
<br />
<a href="https://www.youtube.com/watch?v=yL9FnYo7jlc">Edmund Fetting - A jednak mi żal</a>
<br />
<a href="https://www.youtube.com/watch?v=LwaDoEs0st4">JACEK KACZMARSKI - Korespondencja klasowa</a>
<br />
</p>
<br />
<h3><a href="/">Back to the main page</a></h3>
</div>
<div class="footer">
Purplebored &copy; 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body>
</html>

View File

@@ -0,0 +1,65 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="og:url" content="https://purplebored.pl/pages/projects/irc-discord-bridge.xhtml" />
<meta name="og:title" content="IRC to Discord Bridge" />
<meta name="og:description" content="A project page for the open source IRC to Discord bridge with userbot support." />
<meta name="description" content="A project page for the open source IRC to Discord bridge with userbot support." />
<meta name="keywords" content="purplebored, poland, polish, personal website, website, buttons, niko, self-hosted, open source, foss, contact, discord, irc, bridge, userbot, irc bridge, discord bridge" />
<meta name="color-scheme" content="dark" />
<meta name="theme-color" content="black" />
<title>=IRC to Discord Bridge:=</title>
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="icon" href="/favicon.png" type="image/png" />
</head>
<body>
<div class="content1" style="text-align: center; margin: 0 auto">
<h2>=== IRC to Discord bridge (With userbot support.) ===</h2>
A simple, and modern IRC to Discord userbot bridge written in Node JS used to bridge Disocrd channels and Discord groupchats.
<br />
(Also worth to explain: A userbot (Or selfbot as I sometimes refer to it.) is a bot running on a user account.)
<br />
<a href="https://foundry.fsky.io/purplebored/Discord-userbot-to-irc" target="_blank"> Source code, and instructions how to run it.</a>
<h3>Features:</h3>
<ul>
<li>Multi-Bridge Support - You can bridge multiple channels with multiple IRC rooms all with one config.</li>
<li>Reactions Bridging - Sends a message when a message was reacted to.</li>
<li>Attachments Bridging - Automatically forwards links to images and attachments from Discord messages to IRC.</li>
<li>TLS/Non-TLS IRC Support - Works with both secure (TLS) and standard IRC ports.</li>
<li>Group chat bridges - Since this all works with a selfbot it means that you can bridge a Discord group chat to a IRC room.</li>
<li>YAML Configuration - Simple and a human readable config.</li>
</ul>
<h3>Using a userbot for a bridge why?</h3>
<p>
The why is actually pretty simple I wanted to stop using discord but I still wanted to chat in a discord group chat, but no other bridge supported bridging groupchats so I decided to "vibecode" my own bridge. I also added support for channels since I wanted to host some channels too and that's how this bridge came to life.
<br />
At first it was not even meant to be open source, but after I made it decent enough I decided to open source it since I am guessing other people might need a bridge like this too!
</p>
<h3>Some project info:</h3>
This project is licensed under the <a href="https://foundry.fsky.io/purplebored/Discord-userbot-to-irc/raw/branch/main/LICENSE" target="_blank">Apache 2.0 License.</a>
<br />
This project is written in Node.js
<br />
This project is only pretty much done by me and I am terrible at JS so updates will be quite slow.
<br />
This bridge can use a userbot on the Discord side. Userbots are againsts Discord ToS. No one has been banned yet for using it but it is a posibilty.
<h3><a href="/">Back to the home page</a></h3>
</div>
<div class="footer">
Purplebored &copy; 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body>
</html>

80
pages/snuff.xhtml Normal file
View File

@@ -0,0 +1,80 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="og:url" content="https://purplebored.pl/pages/buttons.xhtml" />
<meta name="og:title" content="Nasal Snuff" />
<meta name="og:description" content="Some of my yapps about nasal snuff" />
<meta name="description" content="Some of my yapps about nasal snuff" />
<meta name="keywords" content="purplebored, poland, polish, personal website, website, buttons, niko, self-hosted, open source, foss, 88x31, tabaka, snuff, nasal snuff, tobbaco, tytoń" />
<meta name="color-scheme" content="dark" />
<meta name="theme-color" content="black" />
<title>=NASAL SNUFF=</title>
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="icon" href="/favicon.png" type="image/png" />
</head>
<body>
<div class="content1" style="text-align: center;">
<h2>=== SNUFF ===</h2>
<div class="snuff-warning">
<h4>
<strong>MINISTER ZDROWIA OSTRZEGA: UŻYWANIE TYTONIU SZKODZI ZDROWIU</strong><br />
<strong>THE MINISTER OF HEALTH WARNS: USING TOBACCO IS HARMFUL TO YOUR HEALTH</strong>
</h4>
<p>
So I am going to start off explaining what nasal snuff even is. Well, snuff is a smokeless tobacco product made from finely ground tobacco leaves. It is snuffed (snorted) into the nasal cavity, delivering nicotine and a nice flavored scent.
Snuff overall is also considered safer than smoking, BUT that does not mean snuff is healthy. Using snuff is still very harmful to your health and it's also 18+ in most countries.
</p>
<h3>List of Snuffs I tried (in order from the ones I tried first to last):</h3>
<ul>
<li><label><input type="checkbox" checked="checked" disabled="disabled" /></label> Gletscher Prise</li>
<li><label><input type="checkbox" checked="checked" disabled="disabled" /></label> Red Bull</li>
<li><label><input type="checkbox" checked="checked" disabled="disabled" /></label> Ozona R-type</li>
<li><label><input type="checkbox" checked="checked" disabled="disabled" /></label> Alpina</li>
<li><label><input type="checkbox" checked="checked" disabled="disabled" /></label> MED N.99</li>
<li><label><input type="checkbox" checked="checked" disabled="disabled" /></label> Köningsprise</li>
<li><label><input type="checkbox" checked="checked" disabled="disabled" /></label> 41 White Elephant</li>
<li><label><input type="checkbox" checked="checked" disabled="disabled" /></label> GAWITH Original Snuff</li>
<li><label><input type="checkbox" checked="checked" disabled="disabled" /></label> Ozona President snuff</li>
<li><label><input type="checkbox" checked="checked" disabled="disabled" /></label> JBR Snuff black</li>
<li><label><input type="checkbox" checked="checked" disabled="disabled" /></label> Packard's Club snuff</li>
<li><label><input type="checkbox" checked="checked" disabled="disabled" /></label> Mc Chrystal Aztec</li>
<li><label><input type="checkbox" checked="checked" disabled="disabled" /></label> Mc Chrystal Sicilian Burst</li>
<li><label><input type="checkbox" checked="checked" disabled="disabled" /></label> Bernard F Original</li>
<li><label><input type="checkbox" checked="checked" disabled="disabled" /></label> Bernad's steife prise</li>
<li><label><input type="checkbox" checked="checked" disabled="disabled" /></label> Ozona O-type</li>
</ul>
<p> How did I start taking snuff: Well it all started with me being too poor to afford tobacco to roll cigarettes. I saw a nice blue box on the shelf and asked about it. The clerk in the tobacco store explainded that it was snuff and how to take it etc etc. It was also cheap so I decided to give it a shot. Taking snuff for the first time was God damn amazing and after that I started getting more and more brands and watching content related to snuff and learning more about it. Now after taking snuff for a few months I really love it and I am even tempted to fully quit smoking and replace it with snuff. Nasal Snuff is far from a healthy alternative BUT it is better then regular smoking. It's also a lot cheaper. <br />
<br />
I also started to review some of the snuffs I tried so here is a list of the ones already reviewed and the ones I will review in the near future. <br />
Snuff reviews: </p>
<p><ul>
<li><label><input type="checkbox" checked="checked" disabled="disabled" /></label> <a href="/blog/posts/2025/snuff-review-1-red-bull-snuff.xhtml">Red Bull</a></li>
<li><label><input type="checkbox" checked="checked" disabled="disabled" /></label> <a href="/blog/posts/2025/snuff-review-2-ozona-r-type-snuff.xhtml">Ozona R-type</a></li>
</ul>
</p>
</div>
<br /><br />
<a href="/index.xhtml">Back to the home page</a>
</div>
<div class="footer">
Purplebored &copy; 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body>
<!-- Code for this website made with passion by Purplebored. https://purplebored.pl <3 -->
</html>

45
pages/stuff.xhtml Normal file
View File

@@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="og:url" content="https://purplebored.pl/pages/contact.xhtml" />
<meta name="og:title" content="Cool stuff" />
<meta name="og:description" content="Stuff Purple likes to do !!" />
<meta name="description" content="Stuff Purple likes to do !!" />
<meta name="keywords" content="purplebored, poland, polish, personal website, website, buttons, niko, self-hosted, open source, foss, contact, music" />
<meta name="color-scheme" content="dark" />
<meta name="theme-color" content="black" />
<title>=Stuff I like=</title>
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="icon" href="/favicon.png" type="image/png" />
</head>
<body>
<div class="content1" style="text-align: center; margin: 0 auto">
<h2>=== Stuff and things I like to do. ===</h2>
<p>
Well I probably going to start off by saying I really like tobacco products and especially snuff. I like snuff enough that I started writing snuff reviews lol. I also using old and obscure stuff just for fun when really bored.
<br />
I also quite like learning new languages currently learning Russian since I really like Russian music it's very fire.
<br />
Well I also like fishing I am still not very good at it and started recently but I am slowly learning !!
<br />
I also like mechanical watches and watches in general I currently daily drive a Russian Vostok amphibia and I am very happy with it. But I also own and sometimes wear a Casio F-91W.
</p>
<br />
<h3><a href="/">Back to the main page</a></h3>
</div>
<div class="footer">
Purplebored &copy; 2023-2025 |
<a href="https://git.ari.lt/purplebored/My-Personal-Website">Source code</a> |
<a href="/pages/contact.xhtml">Contact Me</a> |
<a href="/pages/mirrors.xhtml">Tor, Ygg &amp; Mirrors</a> |
<a href="/pages/font.xhtml">Font</a> |
<a href="/pages/feeds.xhtml">RSS</a> |
<a href="https://status.purplebored.pl"> Uptime / Status</a> |
</div>
</body>
</html>

View File

@@ -1,23 +0,0 @@
[tool.pyright]
pythonVersion = "3.10"
exclude = [
"venv",
"**/node_modules",
"**/__pycache__",
".git",
"src/migrations"
]
include = ["src", "scripts"]
venv = "venv"
stubPath = "src/stubs"
typeCheckingMode = "strict"
useLibraryCodeForTypes = true
reportMissingTypeStubs = true
[tool.mypy]
exclude = [
"^venv/.*",
"^node_modules/.*",
"^__pycache__/.*",
"src/migrations"
]

View File

@@ -1,9 +0,0 @@
flask
flask-csrf
flask-limiter
flask-migrate
flask-sqlalchemy
flask-wtf
portalocker
python-dotenv
pymemcache

36
robots.txt Normal file
View File

@@ -0,0 +1,36 @@
User-agent: *
Sitemap: https://purplebored.pl/sitemap.xml
# Blocks AI
User-agent: YouBot
User-agent: Omgili
User-agent: PerplexityBot
User-agent: CCBot
User-agent: facebookexternalhit
User-agent: Amazonbot
User-agent: ChatGPT-User
User-agent: ImagesiftBot
User-agent: AI2Bot
User-agent: GPTBot
User-agent: PetalBot
User-agent: Diffbot
User-agent: Bytespider
User-agent: ClaudeBot
User-agent: OAI-SearchBot
User-agent: Applebot-Extended
User-agent: cohere-ai
User-agent: Claude-Web
User-agent: ICC-Crawler
User-agent: VelenPublicWebCrawler
User-agent: Omgilibot
User-agent: anthropic-ai
User-agent: FriendlyCrawler
User-agent: Scrapy
User-agent: img2dataset
User-agent: Google-Extended
User-agent: Timpibot
User-agent: meta-externalagent
User-agent: FacebookBot
User-agent: Ai2Bot-Dolma
Disallow: /

15
sitemap.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
set -eu
main() {
echo '<?xml version="1.0" encoding="UTF-8"?>'
echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'
echo '<url><loc>https://purplebored.pl/</loc><priority>1.0</priority></url>'
find pages/ blog/ -name '*.xhtml' -not -name 'template.xhtml' | while read -r file; do
echo "<url><loc>https://purplebored.pl/${file}</loc><priority>1.0</priority></url>"
done
echo '</urlset>'
}
main >sitemap.xml

20
sitemap.xml Normal file
View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url><loc>https://purplebored.pl/</loc><priority>1.0</priority></url>
<url><loc>https://purplebored.pl/pages/mirrors.xhtml</loc><priority>1.0</priority></url>
<url><loc>https://purplebored.pl/pages/host.xhtml</loc><priority>1.0</priority></url>
<url><loc>https://purplebored.pl/pages/guides.xhtml</loc><priority>1.0</priority></url>
<url><loc>https://purplebored.pl/pages/stuff.xhtml</loc><priority>1.0</priority></url>
<url><loc>https://purplebored.pl/pages/contact.xhtml</loc><priority>1.0</priority></url>
<url><loc>https://purplebored.pl/pages/projects/irc-discord-bridge.xhtml</loc><priority>1.0</priority></url>
<url><loc>https://purplebored.pl/pages/snuff.xhtml</loc><priority>1.0</priority></url>
<url><loc>https://purplebored.pl/pages/music.xhtml</loc><priority>1.0</priority></url>
<url><loc>https://purplebored.pl/pages/feeds.xhtml</loc><priority>1.0</priority></url>
<url><loc>https://purplebored.pl/pages/font.xhtml</loc><priority>1.0</priority></url>
<url><loc>https://purplebored.pl/pages/buttons.xhtml</loc><priority>1.0</priority></url>
<url><loc>https://purplebored.pl/blog/posts/2025/snuff-review-2-ozona-r-type-snuff.xhtml</loc><priority>1.0</priority></url>
<url><loc>https://purplebored.pl/blog/posts/2025/snuff-review-1-red-bull-snuff.xhtml</loc><priority>1.0</priority></url>
<url><loc>https://purplebored.pl/blog/posts/2025/blog-future.xhtml</loc><priority>1.0</priority></url>
<url><loc>https://purplebored.pl/blog/posts/2025/my-review-of-the-minecraft-movie.xhtml</loc><priority>1.0</priority></url>
<url><loc>https://purplebored.pl/blog/blog.xhtml</loc><priority>1.0</priority></url>
</urlset>

View File

@@ -1,26 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Flask app example"""
from warnings import filterwarnings as filter_warnings
from flask import Flask
from pbpl import create_app
app: Flask = create_app(__name__)
def main() -> int:
"""entry/main function"""
app.run("127.0.0.1", 8080, True)
return 0
if __name__ == "__main__":
assert main.__annotations__.get("return") is int, "main() should return an integer"
filter_warnings("error", category=Warning)
raise SystemExit(main())

View File

@@ -1 +0,0 @@
Single-database configuration for Flask.

View File

@@ -1,50 +0,0 @@
# A generic, single database configuration.
[alembic]
# template used to generate migration files
# file_template = %%(rev)s_%%(slug)s
# set to 'true' to run the environment during
# the 'revision' command, regardless of autogenerate
# revision_environment = false
# Logging configuration
[loggers]
keys = root,sqlalchemy,alembic,flask_migrate
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = WARN
handlers = console
qualname =
[logger_sqlalchemy]
level = WARN
handlers =
qualname = sqlalchemy.engine
[logger_alembic]
level = INFO
handlers =
qualname = alembic
[logger_flask_migrate]
level = INFO
handlers =
qualname = flask_migrate
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %H:%M:%S

View File

@@ -1,113 +0,0 @@
import logging
from logging.config import fileConfig
from flask import current_app
from alembic import context
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config file for Python logging.
# This line sets up loggers basically.
fileConfig(config.config_file_name)
logger = logging.getLogger('alembic.env')
def get_engine():
try:
# this works with Flask-SQLAlchemy<3 and Alchemical
return current_app.extensions['migrate'].db.get_engine()
except (TypeError, AttributeError):
# this works with Flask-SQLAlchemy>=3
return current_app.extensions['migrate'].db.engine
def get_engine_url():
try:
return get_engine().url.render_as_string(hide_password=False).replace(
'%', '%%')
except AttributeError:
return str(get_engine().url).replace('%', '%%')
# add your model's MetaData object here
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
config.set_main_option('sqlalchemy.url', get_engine_url())
target_db = current_app.extensions['migrate'].db
# other values from the config, defined by the needs of env.py,
# can be acquired:
# my_important_option = config.get_main_option("my_important_option")
# ... etc.
def get_metadata():
if hasattr(target_db, 'metadatas'):
return target_db.metadatas[None]
return target_db.metadata
def run_migrations_offline():
"""Run migrations in 'offline' mode.
This configures the context with just a URL
and not an Engine, though an Engine is acceptable
here as well. By skipping the Engine creation
we don't even need a DBAPI to be available.
Calls to context.execute() here emit the given string to the
script output.
"""
url = config.get_main_option("sqlalchemy.url")
context.configure(
url=url, target_metadata=get_metadata(), literal_binds=True
)
with context.begin_transaction():
context.run_migrations()
def run_migrations_online():
"""Run migrations in 'online' mode.
In this scenario we need to create an Engine
and associate a connection with the context.
"""
# this callback is used to prevent an auto-migration from being generated
# when there are no changes to the schema
# reference: http://alembic.zzzcomputing.com/en/latest/cookbook.html
def process_revision_directives(context, revision, directives):
if getattr(config.cmd_opts, 'autogenerate', False):
script = directives[0]
if script.upgrade_ops.is_empty():
directives[:] = []
logger.info('No changes in schema detected.')
conf_args = current_app.extensions['migrate'].configure_args
if conf_args.get("process_revision_directives") is None:
conf_args["process_revision_directives"] = process_revision_directives
connectable = get_engine()
with connectable.connect() as connection:
context.configure(
connection=connection,
target_metadata=get_metadata(),
**conf_args
)
with context.begin_transaction():
context.run_migrations()
if context.is_offline_mode():
run_migrations_offline()
else:
run_migrations_online()

View File

@@ -1,27 +0,0 @@
"""${message}
Revision ID: ${up_revision}
Revises: ${down_revision | comma,n}
Create Date: ${create_date}
"""
from alembic import op
import sqlalchemy as sa
import flask_app
${imports if imports else ""}
# revision identifiers, used by Alembic.
revision = ${repr(up_revision)}
down_revision = ${repr(down_revision)}
branch_labels = ${repr(branch_labels)}
depends_on = ${repr(depends_on)}
def upgrade():
${upgrades if upgrades else "pass"}
def downgrade():
${downgrades if downgrades else "pass"}

View File

@@ -1,37 +0,0 @@
"""Initial migration
Revision ID: 57fa0d90dc93
Revises:
Create Date: 2025-07-30 20:21:21.163194
"""
from alembic import op
import sqlalchemy as sa
import pbpl
# revision identifiers, used by Alembic.
revision = '57fa0d90dc93'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('text_model',
sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
sa.Column('text', sa.Unicode(length=2048), nullable=False),
sa.Column('date', sa.DateTime(), nullable=False),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('id')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('text_model')
# ### end Alembic commands ###

View File

@@ -1,376 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Create flask application"""
import hashlib
import os
import re
import secrets
import sys
import time
import typing as t
from datetime import datetime, timedelta, timezone
from functools import lru_cache
from threading import Thread
import flask
import portalocker # type: ignore
from flask_wtf.csrf import CSRFProtect # type: ignore
from werkzeug.exceptions import HTTPException
from werkzeug.middleware.proxy_fix import ProxyFix
from .const import KEY_FILENAME, KEY_SIZE, POW_DIFFICULTY, SOURCE
from .models import * # To preload all models
__all__: t.Tuple[str] = ("create_app",)
INDENTATION: t.Final[re.Pattern[str]] = re.compile(r"(?m)^[ \t]+|^\s*\n")
CSS_REPLACEMENTS: t.Final[t.Dict[str, str]] = {
": ": ":",
", ": ",",
" > ": ">",
" {": "{",
" / ": "/",
" + ": "+",
}
CSS_REPLACEMENTS_RE: t.Final[re.Pattern[str]] = re.compile(
"|".join(map(re.escape, CSS_REPLACEMENTS.keys()))
)
JS_WS_BLOCK: t.Final[re.Pattern[str]] = re.compile(r"@ws.*?@endws", re.DOTALL)
@lru_cache
def unindent_css(css: str) -> str:
"""Unindent CSS"""
return CSS_REPLACEMENTS_RE.sub(
lambda m: CSS_REPLACEMENTS[m.group(0)],
INDENTATION.sub("", css),
)
@lru_cache
def unindent_js(js: str) -> str:
"""Unindent JavaScript"""
parts: t.List[str] = []
last_end: int = 0
for match in JS_WS_BLOCK.finditer(js):
before: str = js[last_end : match.start()]
before_unindented: str = INDENTATION.sub("", before)
parts.append(before_unindented)
parts.append(match.group(0) + "\n")
last_end = match.end()
after: str = js[last_end:]
after_unindented: str = INDENTATION.sub("", after)
parts.append(after_unindented)
return "".join(parts)
def assign_http(app: flask.Flask) -> flask.Flask:
"""Assign HTTP robots stuff"""
# robots
@app.route("/robots.txt", methods=["GET", "POST"])
def __robots__() -> flask.Response:
"""Robots.txt control file"""
robots: str = (
f"""User-agent: *
Disallow: {flask.url_for("static", filename="css")}
Disallow: {flask.url_for("static", filename="js")}
Sitemap: {app.config['PREFERRED_URL_SCHEME']}://{flask.request.host}/sitemap.xml"""
)
response: flask.Response = flask.Response(robots, mimetype="text/plain")
response.headers["Content-Security-Policy"] = "img-src 'self';"
return response
# sitemap
rule: flask.Rule # type: ignore
sitemap: str = (
'<?xml version="1.0" encoding="UTF-8"?>\
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'
)
def surl(loc: str) -> str:
"""sitemap url"""
u: str = "<url>"
u += f'<loc>{app.config["PREFERRED_URL_SCHEME"]}://%s{loc}</loc>'
u += "<priority>1.0</priority>"
return u + "</url>"
for rule in app.url_map.iter_rules(): # type: ignore
if rule.alias or not rule.methods or "GET" not in rule.methods: # type: ignore
continue
url: str = rule.rule # type: ignore
if ">" not in url:
sitemap += surl(url) # type: ignore
sitemap += "</urlset>"
@app.route("/sitemap.xml", methods=["GET", "POST"])
def __sitemap__() -> flask.Response:
"""Sitemap (website mapping)"""
response: flask.Response = flask.Response(
sitemap.replace("%s", flask.request.host), mimetype="application/xml"
)
response.headers["Content-Security-Policy"] = "img-src 'self';"
return response
return app
def create_app(name: str) -> flask.Flask:
"""Create flask application"""
for var in (
"DATABASE",
"LICENSE",
"NAME",
"EMAIL",
"MEMCACHED",
"SOURCE",
"OG_LOCALE",
):
if var not in os.environ or len(os.environ[var]) == 0:
print(
f"Error: Required environment variable {var} is unset", file=sys.stderr
)
sys.exit(1)
app: flask.Flask = flask.Flask(name)
if not app.debug:
app.wsgi_app = ProxyFix( # type: ignore
app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_prefix=1 # type: ignore
)
app.config["PREFERRED_URL_SCHEME"] = "http" if app.debug else "https"
# Workers support
if os.path.exists(KEY_FILENAME) and (
time.time() > os.path.getmtime(KEY_FILENAME) + 60
):
try:
with open(KEY_FILENAME, "rb") as fp:
portalocker.lock(fp, portalocker.LOCK_EX)
os.remove(KEY_FILENAME)
portalocker.unlock(fp)
except Exception:
pass
if not os.path.exists(KEY_FILENAME):
old_umask: int = os.umask(0o177)
try:
with open(KEY_FILENAME, "bx") as fc:
portalocker.lock(fc, portalocker.LOCK_EX)
fc.write(os.urandom(KEY_SIZE))
fc.flush()
portalocker.unlock(fc)
except FileExistsError:
pass
else:
def _remove_key():
time.sleep(60)
with open(KEY_FILENAME, "rb") as fp:
portalocker.lock(fp, portalocker.LOCK_EX)
if os.path.exists(KEY_FILENAME):
os.remove(KEY_FILENAME)
portalocker.unlock(fp)
Thread(target=_remove_key, daemon=True).start()
finally:
os.umask(old_umask)
with open(KEY_FILENAME, "rb") as kp:
portalocker.lock(kp, portalocker.LOCK_SH)
app.config["SECRET_KEY"] = kp.read(KEY_SIZE)
portalocker.unlock(kp)
# General config
app.config["SESSION_COOKIE_NAME"] = "__Host-session"
app.config["SESSION_COOKIE_SAMESITE"] = "strict"
app.config["SESSION_COOKIE_SECURE"] = True
app.config["SESSION_COOKIE_HTTPONLY"] = True
app.config["SQLALCHEMY_DATABASE_URI"] = os.environ["DATABASE"]
app.config["SQLALCHEMY_ENGINE_OPTIONS"] = {"pool_pre_ping": True}
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
app.config["USE_SESSION_FOR_NEXT"] = True
# Views
from .views import register_blueprints
register_blueprints(app)
# Database
from .db import db, migrate
db.init_app(app)
migrate.init_app(app, db)
# Rate limiting
from .limiter import limiter
limiter.init_app(app)
limiter.enabled = not app.debug
# CSP + CORP + rate limit
@app.before_request
@limiter.limit("")
def _() -> None:
"""Rate limit all requests"""
flask.g.csp_nonce = secrets.token_urlsafe(18)
@app.after_request
def _(response: flask.Response) -> flask.Response:
"""CSP, CORP, cache, security, and privacy"""
is_static: bool = flask.request.path.startswith(
flask.url_for("static", filename="")
)
csp_header: str = (
response.headers.get("Content-Security-Policy", "").strip().rstrip(";")
)
if is_static and "img-src" not in csp_header:
csp_header = f"{csp_header}; img-src 'self'"
if "Cross-Origin-Embedder-Policy" not in response.headers:
response.headers["Cross-Origin-Embedder-Policy"] = "require-corp"
csp_header = f"{csp_header}; default-src 'none'; base-uri 'none'"
if "form-action" not in csp_header:
csp_header = f"{csp_header}; form-action 'none'"
if not app.debug:
csp_header = f"{csp_header}; upgrade-insecure-requests"
response.headers["Content-Security-Policy"] = (
f"{csp_header.strip(';').strip()};"
)
if "Cross-Origin-Resource-Policy" not in response.headers:
response.headers["Cross-Origin-Resource-Policy"] = "same-origin"
if "X-Frame-Options" not in response.headers:
response.headers["X-Frame-Options"] = "DENY"
if "Referrer-Policy" not in response.headers:
response.headers["Referrer-Policy"] = "no-referrer"
response.headers["X-Content-Type-Options"] = "nosniff"
response.headers["X-XSS-Protection"] = "0"
response.headers["Permissions-Policy"] = (
"accelerometer=(), autoplay=(), camera=(), cross-origin-isolated=(), display-capture=(), encrypted-media=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=(), clipboard-read=(), clipboard-write=(), gamepad=(), hid=(), idle-detection=(), interest-cohort=(), serial=(), unload=()"
)
response.headers["Cross-Origin-Opener-Policy"] = "same-origin"
if is_static:
content_type: str = response.headers.get("Content-Type", "")
if "font/" in content_type:
ext: int = 60 * 60 * 24 * 30 * 6 # 6 months
else:
ext = 60 * 60 * 24 * 7 # 7 days
response.headers["Cache-Control"] = f"public, max-age={ext}"
expire_time: datetime = datetime.now(timezone.utc) + timedelta(seconds=ext)
response.headers["Expires"] = expire_time.strftime(
"%a, %d %b %Y %H:%M:%S GMT"
)
def process_resource_response(processor: t.Callable[[str], str]) -> None:
"""Process resource response"""
response.direct_passthrough = False
content: str = response.get_data(as_text=True)
modified: str = processor(content)
response.set_data(modified)
etag: str = hashlib.sha1(modified.encode("utf-8")).hexdigest()
response.set_etag(etag, weak=False)
response.make_conditional(flask.request)
if "text/css" in content_type:
process_resource_response(unindent_css)
elif "text/javascript" in content_type:
process_resource_response(unindent_js)
return response
# CSRF
CSRFProtect(app)
# Error
@app.errorhandler(HTTPException)
def _(e: HTTPException) -> flask.Response:
"""handle http errors"""
response: flask.Response = flask.make_response(
flask.render_template(
"error.j2",
code=e.code,
summary=e.name,
description=(e.description or f"HTTP error code {e.code}"),
),
)
response.headers["Content-Security-Policy"] = (
f"style-src 'self'; img-src 'self'; script-src 'nonce-{flask.g.csp_nonce}';"
)
response.status_code = e.code or 200
return response
# Template context
license: str = os.environ["LICENSE"]
author_name: str = os.environ["NAME"]
email: str = os.environ["EMAIL"]
og_locale: str = os.environ["OG_LOCALE"]
@app.context_processor # type: ignore
def _() -> t.Any:
"""Context processor"""
now: datetime = datetime.now(timezone.utc)
return {
"current_year": now.year,
"pow_difficulty": POW_DIFFICULTY,
"license": license,
"name": author_name,
"email": email,
"source_code": SOURCE,
"csp_nonce": flask.g.csp_nonce,
"locale": og_locale,
}
# Robots stuff
assign_http(app)
return app

View File

@@ -1,18 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Constants"""
import os
from typing import Final
TEXT_SIZE_MAX: Final[int] = 2048
POW_DIFFICULTY: Final[int] = 5
POW_DIFFICULTY_STR: Final[str] = "0" * POW_DIFFICULTY
POW_EXPIRES: Final[int] = 60 * 16 # 16 minutes
POW_NONCE_SIZE: Final[int] = 12
KEY_FILENAME: Final[str] = ".key"
KEY_SIZE: Final[int] = 128
SOURCE: Final[str] = os.environ.get("SOURCE", "http://127.0.0.1/")

View File

@@ -1,16 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Flask Database"""
from typing import Tuple
from flask_migrate import Migrate # type: ignore
from flask_sqlalchemy import SQLAlchemy # type: ignore
__all__: Tuple[str, str] = (
"db",
"migrate",
)
db: SQLAlchemy = SQLAlchemy()
migrate: Migrate = Migrate()

View File

@@ -1,12 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Forms"""
import typing as t
from . import prow, text
__all__: t.Tuple[str, ...] = (
"text",
"prow",
)

View File

@@ -1,64 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Proof-of-Work"""
import hashlib
import secrets
import time
import typing as t
import flask
from pbpl import const
__all__: t.Tuple[str, str] = (
"proof_of_work_protect_session",
"proof_of_work_verify_session",
)
def proof_of_work_protect_session(name: str) -> str:
"""Add a new proof-of-work session, returning a nonce"""
name = name.strip()
if not name:
raise NameError("PoW solution name cannot be empty.")
nonce: str = secrets.token_hex(const.POW_NONCE_SIZE // 2)
flask.session[f"_pow_{name}_nonce"] = nonce
flask.session[f"_pow_{name}_expires"] = time.time() + const.POW_EXPIRES
return nonce
def proof_of_work_verify_session(name: str, solution: str) -> bool:
"""Verify the proof-of-work solution using HMAC"""
if not (solution.isascii() and solution.isdigit()):
return False
nonce_key: str = f"_pow_{name}_nonce"
expires_key: str = f"_pow_{name}_expires"
if nonce_key not in flask.session or expires_key not in flask.session:
return False
nonce: str = flask.session[nonce_key]
expires: float = flask.session[expires_key]
flask.session.pop(nonce_key, None)
flask.session.pop(expires_key, None)
if len(nonce) != const.POW_NONCE_SIZE:
return False
if time.time() > expires:
return False
return (
hashlib.sha256((nonce + solution).encode("ascii"))
.hexdigest()
.startswith(const.POW_DIFFICULTY_STR)
)

View File

@@ -1,36 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Text form"""
import typing as t
from flask_wtf import FlaskForm # type: ignore
from wtforms import HiddenField, SubmitField, TextAreaField # type: ignore
from wtforms.validators import DataRequired, Length # type: ignore
from pbpl.const import TEXT_SIZE_MAX
__all__: t.Tuple[str, ...] = ("TextForm",)
class TextForm(FlaskForm):
"""Example text form"""
text = TextAreaField(
"Enter some text here",
validators=(
DataRequired(message="You must enter text"),
Length(
min=1,
max=TEXT_SIZE_MAX,
message=f"Invalid length (min=1, max={TEXT_SIZE_MAX}",
),
),
)
pow_solution = HiddenField(
"Proof of Work Solution",
validators=[DataRequired(message="Proof of work is required to submit.")],
)
form_submit = SubmitField("Submit text")

View File

@@ -1,15 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Rate limiting"""
import os
from flask_limiter import Limiter
from flask_limiter.util import get_remote_address
limiter: Limiter = Limiter(
get_remote_address,
default_limits=["125 per minute", "25 per second"],
storage_uri=f"memcached://{os.environ['MEMCACHED']}",
key_prefix="pbpl_",
)

View File

@@ -1,9 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Models"""
from typing import Tuple
from .text import TextModel
__all__: Tuple[str, ...] = ("TextModel",)

View File

@@ -1,37 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Text model"""
import datetime
import typing as t
from sqlalchemy import DateTime, Unicode
from pbpl.const import TEXT_SIZE_MAX
from pbpl.db import db
__all__: t.Tuple[str] = ("TextModel",)
class TextModel(db.Model):
"""Some text model"""
id = db.Column(
db.Integer,
unique=True,
primary_key=True,
autoincrement=True,
)
text = db.Column(
Unicode(TEXT_SIZE_MAX),
nullable=False,
)
date = db.Column(
DateTime,
default=lambda: datetime.datetime.now(datetime.timezone.utc),
nullable=False,
)
def __init__(self, text: str) -> None:
assert text and len(text) <= TEXT_SIZE_MAX
self.text = text

View File

@@ -1,19 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Views"""
from typing import Tuple
from flask import Flask
__all__: Tuple[str] = ("register_blueprints",)
def register_blueprints(app: Flask) -> Flask:
"""Assign all blueprints and their URL prefixes"""
from .home import home
app.register_blueprint(home, url_prefix="/")
return app

View File

@@ -1,261 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Blueprint"""
import re
from datetime import datetime, timedelta, timezone
from functools import wraps
from typing import Any, Callable, Final, Optional, Tuple, TypeVar, Union
from flask import Blueprint, Response, g, make_response
__all__: Tuple[str] = ("Bp",)
F = TypeVar("F", bound=Callable[..., Any])
DURATION_PATTERN: Final[re.Pattern[str]] = re.compile(
r"(?P<value>\d+)\s*(?P<unit>[dDhHmMsS])"
)
FRAME_ANCESTORS: Final[re.Pattern[str]] = re.compile(r"frame-ancestors\s+([^;]+)")
def parse_duration(duration_str: str) -> int:
"""Parse duration pattern e.g. '1d 2h 30m 15s' and return total seconds."""
duration_str = duration_str.lower().strip()
if duration_str == "0":
return 0
matches: Any = DURATION_PATTERN.findall(duration_str)
total_seconds: int = 0
for value, unit in matches:
value_int: int = int(value)
unit = unit.lower()
if unit == "d":
total_seconds += value_int * 86400
elif unit == "h":
total_seconds += value_int * 3600
elif unit == "m":
total_seconds += value_int * 60
elif unit == "s":
total_seconds += value_int
return total_seconds
class Bp(Blueprint):
"""Blueprint wrapper with utilities"""
def get(self, rule: str, ishtml: bool = False, **kwargs: Any) -> Callable[[F], F]:
"""Wrapper for GET"""
def decorator(f: F) -> F:
self.route(rule, methods=("GET",), **kwargs)(f)
if ishtml:
base_rule: str = rule.rstrip("/")
alias: bool = kwargs.pop("alias", True)
if base_rule:
self.route(
base_rule + "/", methods=("GET",), alias=alias, **kwargs
)(f)
self.route(
base_rule + ".html", methods=("GET",), alias=alias, **kwargs
)(f)
else:
self.route("/index.html", methods=("GET",), alias=alias, **kwargs)(
f
)
return f
return decorator
def post(self, rule: str, **kwargs: Any) -> Callable[[F], F]:
"""Wrapper for POST"""
def decorator(f: F) -> F:
self.route(rule, methods=("POST",), **kwargs)(f)
return f
return decorator
def csp(self, policy: Union[Callable[..., Any], str]) -> Callable[[F], F]:
"""Decorator to set Content-Security-Policy header for this route"""
if callable(policy):
csp_policy: str = getattr(policy, "_csp_policy", "")
else:
csp_policy = policy
for disallowed in ("default-src", "upgrade-insecure-requests", "base-uri"):
if disallowed in csp_policy:
raise ValueError(
f"Disallowed CSP directive {disallowed!r} should not be in custom CSP"
)
def decorator(f: F) -> F:
previous_policy = getattr(f, "_csp_policy", "")
combined_policy = ";".join(
filter(None, [previous_policy.strip(";"), csp_policy.strip(";")])
)
@wraps(f)
def wrapped(*args: Any, **kwargs: Any):
result: Any = f(*args, **kwargs)
response: Response = make_response(result)
existing_csp: str = (
response.headers.get("Content-Security-Policy", "")
.strip()
.rstrip(";")
)
final_policy: str = combined_policy
final_policy = (
final_policy.replace("$nonce", f"'nonce-{g.csp_nonce}'")
.replace("$self", "'self'")
.replace("$none", "'none'")
.replace("$internal", f"'self' 'nonce-{g.csp_nonce}'")
.replace("$wasm", "'wasm-unsafe-eval'")
.strip()
.rstrip(";")
)
full_csp: str = (
";".join(filter(None, [existing_csp, final_policy])) + ";"
)
if "frame-ancestors" in full_csp:
match = FRAME_ANCESTORS.search(full_csp)
if match:
ancestors_value = match.group(1).strip()
if ancestors_value == "'none'":
response.headers["X-Frame-Options"] = "DENY"
elif ancestors_value == "'self'":
response.headers["X-Frame-Options"] = "SAMEORIGIN"
response.headers["Content-Security-Policy"] = full_csp
return response
setattr(wrapped, "_csp_policy", combined_policy)
return wrapped # type: ignore
return decorator
def corp(
self, origin: Union[str, Callable[..., Any]], *methods: str
) -> Callable[[F], F]:
"""Decoreator to set the Cross-Origin-Resource-Policy"""
if callable(origin):
origin_str: str = getattr(origin, "_corp_origin")
methods = getattr(origin, "_corp_methods")
else:
origin_str = origin
if not methods:
raise ValueError("Must specify at least one method.")
def decorator(f: F) -> Any:
@wraps(f)
def wrapped(*args: Any, **kwargs: Any):
result: Any = f(*args, **kwargs)
response: Response = make_response(result)
response.headers["Cross-Origin-Resource-Policy"] = "cross-origin"
response.headers["Access-Control-Allow-Origin"] = origin_str
response.headers["Access-Control-Allow-Methods"] = ", ".join(methods)
return response
setattr(wrapped, "_corp_origin", origin)
setattr(wrapped, "_corp_methods", methods)
return wrapped
return decorator
def cache(
self, duration: Optional[Union[str, Callable[..., Any]]]
) -> Callable[[F], F]:
"""Decoreator to set the Cache Control"""
if callable(duration):
duration_sec: int = getattr(duration, "_duration_sec", 0)
else:
duration_sec = parse_duration(duration) if duration else 0
def decorator(f: F) -> Any:
@wraps(f)
def wrapped(*args: Any, **kwargs: Any):
result: Any = f(*args, **kwargs)
response: Response = make_response(result)
if duration_sec == 0:
response.headers["Cache-Control"] = "no-cache, must-revalidate"
response.headers["Expires"] = "Thu, 1 Jan 1970 00:00:00 GMT"
else:
response.headers["Cache-Control"] = (
f"public, max-age={duration_sec}"
)
expire_time: datetime = datetime.now(timezone.utc) + timedelta(
seconds=duration_sec
)
response.headers["Expires"] = expire_time.strftime(
"%a, %d %b %Y %H:%M:%S GMT"
)
return response
setattr(wrapped, "_duration_sec", duration_sec)
return wrapped
return decorator
def refpol(self, policy: Union[str, Callable[..., Any]]) -> Callable[[F], F]:
"""Decoreator to set the Referrer Policy"""
if callable(policy):
ref_policy: str = getattr(policy, "_ref_policy", "no-referrer")
else:
ref_policy = policy
def decorator(f: F) -> Any:
@wraps(f)
def wrapped(*args: Any, **kwargs: Any):
result: Any = f(*args, **kwargs)
response: Response = make_response(result)
response.headers["Referrer-Policy"] = ref_policy
return response
setattr(wrapped, "_ref_policy", ref_policy)
return wrapped
return decorator
def coep(self, policy: Union[str, Callable[..., Any]]) -> Callable[[F], F]:
"""Decoreator to set the Cross-Origin-Embedder-Policy"""
if callable(policy):
coep_policy: str = getattr(policy, "_coep_policy")
else:
coep_policy = policy
def decorator(f: F) -> Any:
@wraps(f)
def wrapped(*args: Any, **kwargs: Any):
result: Any = f(*args, **kwargs)
response: Response = make_response(result)
response.headers["Cross-Origin-Embedder-Policy"] = coep_policy
return response
setattr(wrapped, "_coep_policy", coep_policy)
return wrapped
return decorator

View File

@@ -1,97 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Home routes"""
import typing as t
import flask
from werkzeug.wrappers import Response
import pbpl.forms.prow as form_pow
import pbpl.forms.text as text_form
from pbpl.db import db
from pbpl.models import TextModel
from .bp import Bp
home: Bp = Bp("home", __name__)
__all__: t.Tuple[str] = ("home",)
@home.get("/", ishtml=True)
@home.csp("img-src $self; script-src $internal $wasm; style-src $internal; form-action $self; connect-src $self; manifest-src $self")
def index() -> str:
"""Home page"""
nonce: str = form_pow.proof_of_work_protect_session("home.index/text")
return flask.render_template(
"home/index.j2",
form=text_form.TextForm(),
texts=TextModel.query.all(),
pow_nonce=nonce,
)
@home.post("/")
@home.csp("img-src $self; script-src $internal; style-src $internal")
def text() -> Response:
"""Post some text"""
form: text_form.FlaskForm = text_form.TextForm()
if not form.validate_on_submit(): # type: ignore
flask.flash("Invalid form data/form", "error")
flask.abort(400)
if form.text.data is None:
flask.flash("Invalid form text", "error")
flask.abort(400)
if form.pow_solution.data is None or not form_pow.proof_of_work_verify_session(
"home.index/text",
form.pow_solution.data,
):
flask.flash("Invalid Proof-of-Work solution", "error")
flask.abort(403)
db.session.add(TextModel(text=form.text.data))
db.session.commit()
flask.flash("Your text has been saved")
return flask.redirect(flask.url_for("home.index"))
@home.get("/manifest.json")
@home.csp("manifest-src $self; img-src $self")
@home.cache("30d")
def manifest() -> t.Any:
"""Manifest file"""
return flask.jsonify( # type: ignore
{
"$schema": "https://json.schemastore.org/web-manifest-combined.json",
"short_name": "Example page",
"name": "Example page",
"description": "This is an example description",
"icons": [
{
"src": "/favicon.png",
"sizes": "256x256",
"type": "image/png",
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#fbfbfb",
"background_color": "#121212",
}
)
@home.get("/favicon.png")
@home.csp("img-src $self")
@home.cache("30d")
def favicon() -> Response:
"""Website icon"""
return flask.send_from_directory("static", "favicon.png")

View File

@@ -1,116 +0,0 @@
:root {
color-scheme: dark;
}
*,
*::before,
*::after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
scroll-behavior: smooth;
}
code,
code *,
pre,
pre * {
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
}
@font-face {
font-family: 'Clockopia';
src: url("/static/fonts/Clockopia.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'LuxiSans';
src: url("/static/fonts/luxisr.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
html {
height: 100%;
min-height: 100%;
background-color: #0e0016;
}
body {
height: auto;
min-height: 100%;
padding: 2rem;
min-height: 100vh;
font-family: 'LuxiSans', sans-serif;
}
html,
body {
line-height: 1.5;
}
ol,
ul,
ol *,
ul * {
line-height: 1.8;
}
h1 {
font-family: 'Clockopia', sans-serif;
}
.buttons {
display: flex;
flex-wrap: wrap;
gap: 6px;
justify-content: center;
margin-top: 20px;
}
.buttons img {
width: 88px;
height: 31px;
border: none;
image-rendering: pixelated;
}
code {
white-space: pre-wrap !important;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
-webkit-transition: none !important;
-o-transition: none !important;
transition: none !important;
-webkit-animation: none !important;
animation: none !important;
-webkit-animation-play-state: paused !important;
animation-play-state: paused !important;
scroll-behavior: auto !important;
}
}
#night {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #0e0016;
z-index: -9999;
}

View File

@@ -1,3 +0,0 @@
article {
text-align: center;
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

Some files were not shown because too many files have changed in this diff Show More