Signed-off-by: Ari Archer <ari@ari.lt>
This commit is contained in:
Arija A. 2024-11-27 22:47:27 +02:00
commit d70e699335
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: A50D5B4B599AF8A2
63 changed files with 4993 additions and 0 deletions

11
.editorconfig Normal file
View file

@ -0,0 +1,11 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
tab_width = 2

172
.gitignore vendored Normal file
View file

@ -0,0 +1,172 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$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
*.env
*.key
/status

662
LICENSE Normal file
View file

@ -0,0 +1,662 @@
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Project "ari.lt"
Copyright (C) 2024 Ari Archer <ari@ari.lt>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.

5
README.md Normal file
View file

@ -0,0 +1,5 @@
# New era of ari.lt
Ari.lt has become quite messy over the years, so this is meant to replace the website.
It is still a work in progress, but it's better than a mess.

6
ari-lt.env.example Normal file
View file

@ -0,0 +1,6 @@
# export DB='mysql+pymysql://user:password@127.0.0.1/arilt?charset=utf8mb4'
export DB='sqlite:///arilt.db'
export EMAIL_USER='someone@ari.lt'
export EMAIL_SERVER='mail.ari.lt'
export EMAIL_PASSWORD='...'
export ADMIN_KEY='...'

55
migrations/1.py Normal file
View file

@ -0,0 +1,55 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Migration of token => token_digest"""
import hashlib
import os
from warnings import filterwarnings as filter_warnings
from sqlalchemy import MetaData, Table, create_engine
from sqlalchemy.engine import Engine
from sqlalchemy.orm import Session as SessionType
from sqlalchemy.orm import sessionmaker
from sqlalchemy.sql import Select, text
def main() -> int:
"""entry / main function"""
engine: Engine = create_engine(os.environ["DB"])
Session: SessionType = sessionmaker(bind=engine) # type: ignore
metadata: MetaData = MetaData()
print("Migrating token_digest...")
with Session() as session: # type: ignore
session.execute(text("ALTER TABLE comment ADD COLUMN token_digest tinyblob")) # type: ignore
metadata.clear()
comment_table = Table("comment", metadata, autoload_with=engine)
with Session() as session: # type: ignore
with session.begin(): # type: ignore
comments = session.execute(Select(comment_table)).all() # type: ignore
for comment in comments: # type: ignore
token_digest: bytes = hashlib.sha3_256(comment[-2].encode()).digest() # type: ignore
session.execute( # type: ignore
comment_table.update().where(comment_table.c.id == comment.id).values(token_digest=token_digest) # type: ignore
)
with Session() as session: # type: ignore
session.execute(text("ALTER TABLE comment DROP COLUMN token")) # type: ignore
session.execute(text("ALTER TABLE comment ADD COLUMN score INTEGER DEFAULT 0")) # type: ignore
print("token_digest has been migrated.")
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())

21
pyproject.toml Normal file
View file

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

13
requirements.txt Normal file
View file

@ -0,0 +1,13 @@
flask
types-flask
flask-sqlalchemy
crc4
validators
markdown
jinja2
MarkupSafe
bleach
web-mini
flask-limiter
flask-ishuman
pymemcache

17
run.sh Executable file
View file

@ -0,0 +1,17 @@
#!/bin/sh
set -u
main() {
kill -9 $(pgrep python3) || true
kill -9 $(pgrep gunicorn) || true
kill -9 $(pgrep memcached) || true
memcached -d -p 41923 -m 1024
source ari-lt.env
cd src
python3 -m pip install gunicorn
python3 -m gunicorn -b 127.0.0.1:17312 -w 4 main:app &
}
main "$@"

179
src/aw/__init__.py Normal file
View file

@ -0,0 +1,179 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""ari.lt"""
import datetime
import os
import re
import sys
from base64 import b64encode
from functools import lru_cache
from typing import Any
import flask
import web_mini
from werkzeug.middleware.proxy_fix import ProxyFix
from . import util
@lru_cache
def min_css(css: str) -> str:
"""minify css"""
return web_mini.css.minify_css(css)
def assign_http(app: flask.Flask) -> flask.Flask:
"""assign http file stuff"""
# robots
@app.route("/robots.txt", methods=["GET", "POST"])
def __robots__() -> flask.Response:
"""favicon"""
robots: str = (
f"User-agent: *\nSitemap: {app.config['PREFERRED_URL_SCHEME']}://{app.config['DOMAIN']}/sitemap.xml\nDisallow: /vote/*/*\n"
)
return flask.Response(robots, mimetype="text/plain")
# sitemap
rule: flask.Rule
pat: re.Pattern[str] = re.compile(r"<.+?:(.+?)>")
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"]}://{app.config["DOMAIN"]}{loc}</loc>'
u += "<priority>1.0</priority>"
return u + "</url>"
sitemap += surl("/robots.txt")
for rule in app.url_map.iter_rules():
url: str = pat.sub(r"\1", rule.rule)
sitemap += surl(url)
@app.route("/sitemap.xml", methods=["GET", "POST"])
def __sitemap__() -> flask.Response:
"""sitemap"""
return flask.Response(sitemap + "</urlset>", mimetype="application/xml")
return app
def create_app(name: str) -> flask.Flask:
"""create ari.lt app"""
for var in ("DB", "EMAIL_USER", "EMAIL_SERVER", "EMAIL_PASSWORD"):
if var not in os.environ:
print(f"Environment variable {var} is unset.", file=sys.stderr)
sys.exit(1)
app: flask.Flask = flask.Flask(name)
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1) # type: ignore
app.config["PREFERRED_URL_SCHEME"] = "http" if app.debug else "https"
app.config["DOMAIN"] = "ari.lt"
app.config["SECRET_KEY"] = os.urandom(4096)
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["DB"]
app.config["SQLALCHEMY_ENGINE_OPTIONS"] = {"pool_pre_ping": True}
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
app.config["CAPTCHA_PEPPER_FILE"] = "captcha.key"
app.config["CAPTCHA_EXPIRY"] = 60 * 10 # 10 minutes
app.config["CAPTCHA_CHARSET"] = "abdefghmnqrtyABDEFGHLMNRTY2345689#@%?!"
app.config["CAPTCHA_RANGE"] = (4, 6)
app.config["USE_SESSION_FOR_NEXT"] = True
from .c import c
c.init_app(app)
from .models import Counter, db
with app.app_context():
db.init_app(app)
db.create_all()
if db.session.query(Counter).count() < 1:
print("Creating a website counter...")
db.session.add(Counter(int(input("Count: "))))
db.session.commit()
from .views import views
app.register_blueprint(views, url_prefix="/")
from .limiter import limiter
limiter.init_app(app)
app.jinja_env.filters["markdown"] = util.markdown_to_html # type: ignore
web_mini.compileall()
@app.after_request
def _(response: flask.Response) -> flask.Response:
"""minify resources and add headers"""
if not app.debug:
response.headers["Content-Security-Policy"] = "upgrade-insecure-requests"
response.headers["Strict-Transport-Security"] = (
"max-age=63072000; includeSubDomains; preload"
)
response.headers["X-Frame-Options"] = "SAMEORIGIN"
response.headers["X-Content-Type-Options"] = "nosniff"
response.headers["X-Permitted-Cross-Domain-Policies"] = "none"
if response.direct_passthrough:
return response
if response.content_type == "text/css; charset=utf-8":
minified_data: str = min_css(response.get_data(as_text=True))
else:
return response
return app.response_class( # type: ignore
response=minified_data,
status=response.status,
headers=dict(response.headers),
mimetype=response.mimetype,
)
@app.context_processor # type: ignore
def _() -> Any:
"""Context processor"""
y: int = datetime.datetime.now(datetime.timezone.utc).year # type: ignore
return {
"current_year": y,
"ari_age": int((datetime.datetime.now() - datetime.datetime(2007, 9, 10)).days // 365.25), # type: ignore
"programming_exp": y - 2016,
"python_exp": y - 2016,
"c_exp": y - 2020,
"b64encode": b64encode,
}
return assign_http(app)

7
src/aw/c.py Normal file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""captcha"""
from flask_ishuman import IsHuman
c: IsHuman = IsHuman()

30
src/aw/const.py Normal file
View file

@ -0,0 +1,30 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Constants"""
from typing import Final, FrozenSet
HUGEINT_MAX: Final[int] = (10**65) - 1
USERNAME_SIZE: Final[int] = 64
NAME_SIZE: Final[int] = 256
WEBSITE_SIZE: Final[int] = 256
EMAIL_CT_SIZE: Final[int] = 256
COMMENT_SIZE: Final[int] = 1024
ALLOWED_TAGS: Final[FrozenSet[str]] = frozenset(
(
"em",
"strong",
"a",
"code",
"pre",
"blockquote",
"p",
"ul",
"ol",
"li",
"br",
)
)

27
src/aw/email.py Normal file
View file

@ -0,0 +1,27 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""email"""
import os
import smtplib
from email.mime.text import MIMEText
def sendmail(to: str, subject: str, content: str) -> None:
"""send mail to an address"""
msg: MIMEText = MIMEText(content)
msg["Subject"] = f"[Ari-web] {subject}"
msg["From"] = os.environ["EMAIL_USER"]
msg["To"] = to
server: smtplib.SMTP = smtplib.SMTP(os.environ["EMAIL_SERVER"], 587)
server.ehlo()
server.starttls()
server.login(os.environ["EMAIL_USER"], os.environ["EMAIL_PASSWORD"])
server.send_message(msg)
server.quit()

12
src/aw/limiter.py Normal file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""limiter"""
from flask_limiter import Limiter
from flask_limiter.util import get_remote_address
limiter: Limiter = Limiter(
get_remote_address,
default_limits=["10000 per day", "1500 per hour", "50 per minute"],
storage_uri="memcached://127.0.0.1:41923",
)

142
src/aw/models.py Normal file
View file

@ -0,0 +1,142 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""DB Models"""
import datetime
import hashlib
import string
import typing as t
from decimal import Decimal
from secrets import SystemRandom
import crc4
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import DECIMAL, DateTime, Dialect, TypeDecorator, Unicode
from . import const
db: SQLAlchemy = SQLAlchemy()
rand: SystemRandom = SystemRandom()
def gen_token() -> str:
"""Generate a token"""
return "".join(rand.choices(string.ascii_letters + string.digits, k=32))
class HugeUInt(TypeDecorator): # type: ignore
"""huge int type, 0 to (10**64)-1"""
impl: t.Any = DECIMAL
def load_dialect_impl(self, dialect: Dialect) -> t.Any:
"""load dialect impl"""
return dialect.type_descriptor(DECIMAL(65, 0)) # type: ignore
def process_bind_param(
self,
value: t.Optional[t.Any],
dialect: Dialect,
) -> t.Optional[int]:
"""process binding"""
assert dialect is dialect
if value is not None:
if value < 0 or value > const.HUGEINT_MAX:
raise ValueError("HugeUInt out of range [0;HUGEINT_MAX]")
else:
return int(value)
else:
return None
def process_result_value(
self,
value: t.Optional[t.Any],
dialect: Dialect,
) -> t.Optional[Decimal]:
"""process dialect"""
assert dialect is dialect
return Decimal(value) if value is not None else None
class Counter(db.Model):
"""Counter"""
id: int = db.Column(
db.Integer,
unique=True,
primary_key=True,
)
count: int = db.Column(HugeUInt())
def __init__(self, count: int = 0) -> None:
assert count >= 0 and count <= const.HUGEINT_MAX, "count out of range"
self.count: int = count
def inc(self) -> "Counter":
"""increment and return self"""
self.count += 1
db.session.commit()
return self
@staticmethod
def first() -> "Counter":
"""get counter"""
return db.session.query(Counter).first() # type: ignore
class Comment(db.Model):
"""Comment"""
id: int = db.Column(
db.Integer,
unique=True,
primary_key=True,
)
name: str = db.Column(Unicode(const.NAME_SIZE))
website: t.Optional[str] = db.Column(db.String(const.WEBSITE_SIZE), nullable=True)
email_ct: bytes = db.Column(db.LargeBinary(length=const.EMAIL_CT_SIZE))
key: bytes = db.Column(db.LargeBinary(length=32))
comment: str = db.Column(Unicode(const.COMMENT_SIZE))
confirmed: bool = db.Column(db.Boolean, default=False)
posted: datetime.datetime = db.Column(DateTime, nullable=False)
token_digest: bytes = db.Column(db.LargeBinary(length=32))
score: int = db.Column(
db.Integer,
default=0,
)
def __init__(
self,
name: str,
website: t.Optional[str],
email: str,
comment: str,
token: str,
) -> None:
assert len(name) <= const.NAME_SIZE, "Name too long"
assert len(website or "") <= const.WEBSITE_SIZE, "Website too long"
assert len(email) <= const.EMAIL_CT_SIZE, "Email too long"
assert len(comment) <= const.COMMENT_SIZE, "Comment too long"
self.score: int = 0
self.name: str = name
self.website: t.Optional[str] = website
self.key: bytes = rand.randbytes(32)
self.email_ct: bytes = crc4.rc4(email.encode(), self.key) # type: ignore
self.comment: str = comment
self.confirmed: bool = False
self.posted: datetime.datetime = datetime.datetime.now(datetime.timezone.utc)
self.token_digest: bytes = hashlib.sha3_256(token.encode()).digest()
self.score: int = 0

55
src/aw/mp.py Normal file
View file

@ -0,0 +1,55 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Multiprocessing helpers"""
import os
import pickle
import typing as t
from collections import UserDict
class FSDict(UserDict[t.Hashable, t.Any]):
"""Filesystem-based dict."""
def __init__(self, filename: str, d: t.Optional[t.Dict[t.Hashable, t.Any]] = None):
super().__init__()
self.filename: str = filename
self.data: t.Dict[t.Hashable, t.Any] = d if d else {}
if not os.path.exists(self.filename):
self.save_data()
self.last_modified: float = self.get_last_modified()
self.load_data()
def get_last_modified(self) -> float:
"""Return the last modified time of the JSON file."""
return os.path.getmtime(self.filename)
def load_data(self) -> None:
"""Load data from the JSON file."""
with open(self.filename, "rb") as fp:
self.data = pickle.load(fp)
def save_data(self) -> None:
"""Save current data to the JSON file."""
with open(self.filename, "wb") as fp:
pickle.dump(self.data, fp)
def __getitem__(self, key: t.Hashable) -> t.Any: # type: ignore
current_modified: float = self.get_last_modified()
if current_modified != self.last_modified:
self.load_data()
self.last_modified = current_modified
return super().__getitem__(key) # type: ignore
def __setitem__(self, key: t.Hashable, value: t.Any) -> None:
super().__setitem__(key, value) # type: ignore
self.save_data()

17
src/aw/routing.py Normal file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""routing"""
from typing import Any
from flask import Blueprint
class Bp(Blueprint):
def get(self, rule: str, **kwargs: Any) -> Any:
"""wrapper for GET"""
return self.route(rule=rule, methods=("GET",), **kwargs)
def post(self, rule: str, **kwargs: Any) -> Any:
"""wrapper for POST"""
return self.route(rule=rule, methods=("POST",), **kwargs)

67
src/aw/util.py Normal file
View file

@ -0,0 +1,67 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""utilities"""
from html import escape as html_escape
import bleach
from markdown import markdown
from markupsafe import Markup
from . import const
def markdown_to_html(text: str) -> Markup:
"""Convert Markdown text to safe HTML"""
return Markup(
bleach.clean(
markdown(text, extensions=("extra", "smarty")),
tags=const.ALLOWED_TAGS,
attributes={
"*": ["href", "title"],
"a": ["href"],
},
protocols={"http", "https"},
)
)
def text2svg(
text: str,
fill: str = "#fff",
font: str = "sans-serif",
size: float = 16,
baseline: float = 1,
padding: float = 1,
ratio: float = 1, # usually 2 for monospace
) -> str:
"""convert count to svg
fill -- text colour
font -- font family
size -- font size in pixels
baseline -- baseline offset
padding -- padding of characters
ratio -- character ratio
embedding :
<img
id="my-stuff"
src="..."
style="display:inline;height:1em;vertical-align:top"
alt="my stuff :3"
/>
"""
fill = html_escape(fill)
font = html_escape(font)
svg: str = (
f'<svg xmlns="http://www.w3.org/2000/svg" width="{len(text) + padding * ratio}ch" height="{size}" font-size="{size}">'
)
svg += f'<text x="50%" y="{size - baseline}" text-anchor="middle" fill="{fill}" font-family="{font}">{html_escape(text)}</text>'
svg += "</svg>"
return svg

481
src/aw/views.py Normal file
View file

@ -0,0 +1,481 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""views"""
import datetime
import hashlib
import os
import typing as t
import flask
import validators
from flask_limiter.util import get_remote_address
from werkzeug.wrappers import Response
from . import email, models, mp, util
from .c import c
from .limiter import limiter
from .routing import Bp
views: Bp = Bp("views", __name__)
status: mp.FSDict = mp.FSDict(
"status",
{
"status": "<i>No status</i>",
"last_updated": datetime.datetime.now(datetime.timezone.utc),
},
)
@views.get("/status")
def get_status() -> t.Any:
"""Get status"""
return flask.jsonify( # type: ignore
{
"status": status["status"], # type: ignore
"last_updated": status["last_updated"].timestamp(), # type: ignore
}
)
@views.get("/matrix", alias=True)
@views.get("/coc.txt", alias=True)
@views.get("/coc", alias=True)
@views.get("/guidelines.txt", alias=True)
@views.get("/guidelines", alias=True)
@views.get("/tos", alias=True)
@views.get("/tos.txt", alias=True)
@views.get("/privacy/", alias=True)
@views.get("/privacy", alias=True)
@views.get("/legal/", alias=True)
@views.get("/legal")
def legal() -> t.Any:
"""Get general guidelines for ari.lt"""
return flask.render_template("legal.j2", visitor=models.Counter.first().inc().count)
@views.post("/status")
def set_status() -> Response:
"""Set status"""
if (
"status" in flask.request.form
and flask.request.headers.get("X-Admin-Key", None) == os.environ["ADMIN_KEY"]
):
status["status"] = str(flask.request.form["status"]) # type: ignore
status["last_updated"] = datetime.datetime.now(datetime.timezone.utc) # type: ignore
return flask.jsonify( # type: ignore
{
"status": status["status"], # type: ignore
"last_updated": status["last_updated"].timestamp(), # type: ignore
}
)
else:
flask.abort(401)
@views.get("/index.html", alias=True)
@views.get("/")
def index() -> str:
"""Home page"""
return flask.render_template(
"index.j2",
visitor=models.Counter.first().inc().count,
comments=models.Comment.query.filter_by(confirmed=True).order_by(
models.Comment.posted.desc() # type: ignore
),
status=status,
comment=flask.request.args.get("gb"),
)
@views.get("/confirm/<int:comment_id>/<string:token>/", alias=True)
@views.get("/confirm/<int:comment_id>/<string:token>")
def confirm(comment_id: int, token: str):
"""confirm publishing of a comment"""
comment: models.Comment = models.Comment.query.filter_by(
id=comment_id,
token_digest=hashlib.sha3_256(token.encode("ascii", errors="ignore")).digest(),
confirmed=False,
).first_or_404()
comment.confirmed = True
models.db.session.commit()
email.sendmail(
"ari@ari.lt",
f"Comment #{comment.id} on the guestbook",
f"""Hi!
New comment on the guestbook for you to check out.
ID: #{comment.id}
Name: {comment.name}
Website: {comment.website}
Comment:
```
{comment.comment}
```
Deletion token:
{token}""",
)
flask.flash(f"Comment #{comment.id} confirmed.")
return flask.redirect(flask.url_for("views.index"))
@views.get("/delete/<int:comment_id>/<string:token>/", alias=True)
@views.get("/delete/<int:comment_id>/<string:token>")
def delete(comment_id: int, token: str):
"""delete a comment"""
comment: models.Comment = models.Comment.query.filter_by(
id=comment_id,
token_digest=hashlib.sha3_256(token.encode("ascii", errors="ignore")).digest(),
).first_or_404()
models.db.session.delete(comment)
models.db.session.commit()
flask.flash(f"Comment #{comment.id} deleted.")
return flask.redirect(flask.url_for("views.index"))
@views.post("/")
@limiter.limit("3 per day") # Limit by IP
@limiter.limit(
"3 per day", key_func=lambda: str(flask.request.form.get("email"))
) # Limit by email
def comment():
"""publish a comment"""
for field in "name", "email", "comment", "code":
if field not in flask.request.form:
flask.abort(400)
if not c.verify(flask.request.form["code"]): # type: ignore
flask.abort(403)
if not validators.email(flask.request.form["email"]):
flask.abort(400)
if (
"website" in flask.request.form
and flask.request.form["website"]
and not validators.url(flask.request.form["website"])
):
flask.abort(400)
try:
token: str = models.gen_token()
comment: models.Comment = models.Comment(
flask.request.form["name"], # type: ignore
flask.request.form.get("website", None), # type: ignore
flask.request.form["email"], # type: ignore
flask.request.form["comment"], # type: ignore
token,
)
except Exception:
flask.abort(400)
models.db.session.add(comment)
models.db.session.commit()
try:
email.sendmail(
flask.request.form["email"], # type: ignore
f"Email confirmation for guestbook comment #{comment.id}",
f"""Hello!
You (or someone) have commented on the {flask.request.url} guestbook. If it was you, please confirm your email address below. Otherwise - you may ignore this email or delete the comment by visiting the "delete" URL below.
The comment content includes your email (which will be listed publicly), as well as:
Name: {comment.name}
Website: {comment.website or "<none>"}
Comment:
```
{comment.comment}
```
Visit the following URL to *confirm* the comment:
{flask.request.url.rstrip("/")}{flask.url_for("views.confirm", comment_id=comment.id, token=token)}
Or you may *delete* the comment (even if you haven't confirmed it yet) by going to:
{flask.request.url.rstrip("/")}{flask.url_for("views.delete", comment_id=comment.id, token=token)}
You may delete the comment at any point.
If clicking the link does not work, try pasting it into your browser or running `curl`/`wget`/`axel`/... on it :)
Please do not reply to this email and if you have any questions - email Ari Archer <ari@ari.lt> with the PGP key 4FAD63E936B305906A6C4894A50D5B4B599AF8A2.""",
)
except Exception:
models.db.session.delete(comment)
models.db.session.commit()
flask.abort(400)
flask.flash("Check your mailbox.")
return flask.redirect(flask.url_for("views.index"))
@views.get("/manifest.json")
def manifest() -> t.Any:
"""Manifest file"""
return flask.jsonify( # type: ignore
{
"$schema": "https://json.schemastore.org/web-manifest-combined.json",
"short_name": "Ari::web -> Index",
"name": "Ari::web -> Index",
"description": "Personal website of Ari Archer. Providing free and open source services for everyone.",
"icons": [{"src": "/favicon.ico", "sizes": "128x128", "type": "image/png"}],
"start_url": ".",
"display": "standalone",
"theme_color": "#fbfbfb",
"background_color": "#000000",
}
)
@views.get("/page/<path:p>")
def page(p: str) -> Response:
"""Page renderer"""
return flask.redirect(f"/{p}")
@views.get("/LICENSE", alias=True)
@views.get("/license")
def license() -> flask.Response:
"""License: AGPL-3.0-or-later"""
try:
with open("../LICENSE", "r") as fp:
return flask.Response(fp.read(), mimetype="text/plain")
except Exception:
with open("LICENSE", "r") as fp:
return flask.Response(fp.read(), mimetype="text/plain")
@views.get("/git", defaults={"_": ""})
@views.get("/git/", defaults={"_": ""})
@views.get("/git/<path:_>")
def git(_: str) -> Response:
"""Git source code"""
return flask.redirect(
f"/lh/ari.lt/{flask.request.full_path[4:]}",
code=302,
)
@views.get("/favicon.ico")
def favicon() -> Response:
"""Website icon"""
return flask.send_from_directory("static/favicons", "ari-web-ukraine.ico")
@views.get("/counter.svg")
def counter() -> flask.Response:
"""counter"""
r = flask.Response(
util.text2svg(
text=str(models.Counter.first().inc().count),
fill=flask.request.args.get("fill", "#fff"),
font=flask.request.args.get("font", "sans-serif"),
size=float(flask.request.args.get("size", 16)),
baseline=float(flask.request.args.get("baseline", 1)),
padding=float(flask.request.args.get("padding", 1)),
ratio=float(flask.request.args.get("radio", 1)),
),
mimetype="image/svg+xml",
)
r.headers["Access-Control-Allow-Origin"] = "*"
r.headers["Access-Control-Allow-Methods"] = "GET, POST, OPTIONS, HEAD"
r.headers["Expires"] = "Thu, 01 Jan 1970 00:00:00 GMT"
r.headers["Cache-Control"] = (
"max-age=0, no-cache, must-revalidate, proxy-revalidate"
)
return r
@views.get("/badge.png")
def badge() -> Response:
"""Website badge"""
r: Response = flask.send_from_directory("static/badges", "badge.png")
r.headers["Access-Control-Allow-Origin"] = "*"
r.headers["Access-Control-Allow-Methods"] = "GET, POST, OPTIONS, HEAD"
return r
@views.get("/badge-yellow.png")
def badge_yellow() -> Response:
"""Website badge"""
r: Response = flask.send_from_directory("static/badges", "badge-yellow.png")
r.headers["Access-Control-Allow-Origin"] = "*"
r.headers["Access-Control-Allow-Methods"] = "GET, POST, OPTIONS, HEAD"
return r
@views.get("/badge.txt")
def badge_txt() -> Response:
"""Website badge"""
r: Response = flask.send_from_directory("static/badges", "badge.txt")
r.headers["Access-Control-Allow-Origin"] = "*"
r.headers["Access-Control-Allow-Methods"] = "GET, POST, OPTIONS, HEAD"
return r
@views.get("/captcha.png")
def captcha() -> Response:
"""CAPTCHA"""
return flask.Response(c.new().rawpng(), mimetype="image/png")
@views.get("/xmr")
def xmr() -> Response:
"""Monero address"""
return flask.redirect(
"https://trocador.app/anonpay/?ticker_to=xmr&network_to=Mainnet&address=451VZy8FPDXCVvKWkq5cby3V24ApLnjaTdwDgKG11uqbUJYjxQWZVKiiefi4HvFd7haeUtGFRBaxgKNTr3vR78pkMzgJaAZ&donation=True&name=Ari+Archer&description=Donate+to+ari-web&email=donation@ari.lt&bgcolor="
)
@views.get("/oxmr")
def oxmr() -> Response:
"""Monero address (Onion)"""
return flask.redirect(
"http://trocadorfyhlu27aefre5u7zri66gudtzdyelymftvr4yjwcxhfaqsid.onion/anonpay/?ticker_to=xmr&network_to=Mainnet&address=451VZy8FPDXCVvKWkq5cby3V24ApLnjaTdwDgKG11uqbUJYjxQWZVKiiefi4HvFd7haeUtGFRBaxgKNTr3vR78pkMzgJaAZ&donation=True&name=Ari+Archer&description=Donate+to+ari-web&email=donation@ari.lt&bgcolor="
)
@views.get("/ltc")
def ltc() -> Response:
"""Litecoin address (Bech32)"""
return flask.redirect(
"https://trocador.app/anonpay/?ticker_to=ltc&network_to=Mainnet&address=ltc1qfmx6hvyfrphsp0uu29fjwzrqdpt8vse8p5xxh3&donation=True&name=Ari+Archer&description=Donate+to+ari-web&email=ari@ari.lt&bgcolor="
)
@views.get("/oltc")
def oltc() -> Response:
"""Litecoin address (Bech32) (Onion)"""
return flask.redirect(
"http://trocadorfyhlu27aefre5u7zri66gudtzdyelymftvr4yjwcxhfaqsid.onion/anonpay/?ticker_to=ltc&network_to=Mainnet&address=ltc1qfmx6hvyfrphsp0uu29fjwzrqdpt8vse8p5xxh3&donation=True&name=Ari+Archer&description=Donate+to+ari-web&email=ari@ari.lt&bgcolor="
)
@views.get("/canary")
def canary():
"""Warrant Canary"""
return flask.Response(
"""Last Updated: November 19th, 2024 (2024-11-19)
As of the date above by knowledge of the Authorative Party of ari.lt (Ari Archer <ari@ari.lt>), ari.lt has not received any National Security Letters (NSLs), Foreign Intelligence Surveillance Act (FISA) warrants, or any other similar legal requests that would prevent us from disclosing this information.""",
mimetype="text/plain",
)
@views.get("/casey")
def casey():
"""Open letter to my best friend"""
return flask.render_template("casey.j2")
@views.get("/mp")
def mp():
"""Music playlist"""
return flask.redirect(
"https://www.youtube.com/playlist?list=PL7UuKajElTaChff3BkcJE6620lSuSUaDC"
)
@views.get("/dotfiles", defaults={"_": ""})
@views.get("/dotfiles/", defaults={"_": ""})
@views.get("/dotfiles/<path:_>")
def dotfiles(_: str) -> Response:
"""Dotfiles"""
return flask.redirect(
f"https://git.ari.lt/ari/dotfiles-cleaned/{flask.request.full_path[9:]}",
code=302,
)
@views.get("/gh", defaults={"_": ""})
@views.get("/gh/", defaults={"_": ""})
@views.get("/gh/<path:_>")
def gh(_: str) -> Response:
"""Main git account"""
return flask.redirect(
f"https://git.ari.lt/ari/{flask.request.full_path[3:]}",
code=302,
)
@views.get("/lh", defaults={"_": ""})
@views.get("/lh/", defaults={"_": ""})
@views.get("/lh/<path:_>")
def lh(_: str) -> Response:
"""Main git organization account"""
return flask.redirect(
f"https://git.ari.lt/ari.lt/{flask.request.full_path[3:]}",
code=302,
)
@views.get("/gpg", alias=True)
@views.get("/gpg/", alias=True)
@views.get("/pgp", alias=True)
@views.get("/pgp/", alias=True)
@views.get("/4FAD63E936B305906A6C4894A50D5B4B599AF8A2.asc/", alias=True)
@views.get("/4FAD63E936B305906A6C4894A50D5B4B599AF8A2.asc")
def pgp() -> flask.Response:
"""Public OpenPGP key"""
return flask.send_file("static/4FAD63E936B305906A6C4894A50D5B4B599AF8A2.asc")
@views.get("/thanks/", alias=True)
@views.get("/thanks")
def thanks() -> str:
"""Thanks page"""
return flask.render_template("thanks.j2")
@views.get("/vote/<string:mode>/<int:cid>")
@limiter.limit(
"1 per day",
key_func=lambda: f"{get_remote_address()}{flask.request.view_args['cid']}",
)
def vote(mode: str, cid: int):
"""vote for a comment"""
if mode != "up" and mode != "down":
flask.abort(404)
comment: models.Comment = models.Comment.query.filter_by(
id=cid,
confirmed=True,
).first_or_404()
comment.score += 1 if mode == "up" else -1
models.db.session.commit()
flask.flash(f"Voted {mode} for comment {comment.id}.")
return flask.redirect(flask.url_for("views.index", gb=comment.id))

26
src/main.py Normal file
View file

@ -0,0 +1,26 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""ari.lt"""
from warnings import filterwarnings as filter_warnings
from flask import Flask
from aw 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

@ -0,0 +1,54 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: 4FAD 63E9 36B3 0590 6A6C 4894 A50D 5B4B 599A F8A2
Comment: Ari Archer (Ari Archer's GPG key pair) <ari@ari.lt>
xsFNBGGRbl4BEADDr+J9MKZLpaBBJUnv6UJU4WeplHaSTEUU5250TUtF4rl5frdv
VcCuM8RjghIhf+WfZyifD2OGXWd7Mmxx8luDVoYLpUtEir3M0GqeWyyUJI+euNNC
Nu7nGSullIta0xb09pST1epS2OEVmIG45YJKOuVmBogjld4miXX+tyUyVpukpgoK
6ixd3KhB2e944dED2sNPi4Gh1bqu0Na9fHf6osak5QRZ0SvEoDTZs711LHfd1pBA
aY5WO625Lx+jvWNkK70BglKqSTriZE780S7amw+x+O53cpM799Suc+7nl8PPT5C8
V+g1H6xES2DDCbpIw8yXfQk9dN+xVfnGOWgsI6gLjCNtBmDB5WSYhSsUYvOSKi6y
D8bcy4NXkZD2443kVDEBP4OxWAZT9fXKRN2G6h9c6XPZ2Cbr8hiiBogVsvpGK22H
6pf/53zgod6PSJ/3GxnHVARNZt0qdif/TpWmjBCjSQt++aouQuivkdKD4jKbZGZg
gIx+gnBQyRs4UB8+xRQNoLb/P2zVFAmGCa4ksXBbPVj6sO7BZp9NpYRXdq4zQ63x
/gKW0higCfnRoNAaSumn3wuj+OGmWYTh6XZSQ6qE/25aN3HLKVcljFK6VPLV55aw
+XZAUNKzgG6GCZCTv2gavfSJJjwE/EO6ckcv+tJ/ulEnGo/pGQszGH0pPwARAQAB
zTNBcmkgQXJjaGVyIChBcmkgQXJjaGVyJ3MgR1BHIGtleSBwYWlyKSA8YXJpQGFy
aS5sdD7CwZEEEwEIADsWIQRPrWPpNrMFkGpsSJSlDVtLWZr4ogUCZd5LcwIbAwUL
CQgHAgIiAgYVCgkICwIEFgIDAQIeBwIXgAAKCRClDVtLWZr4ogJXD/9zSv8oKfOo
EqlreluHHl1uFy44JA/1L/hks4+wGy32iCpey9f3dLLUWWAGqnbouvxImvKcduNE
hCs4xGBCYMTrGwBLcuBJ3/rEqZcf5nUvX91L29uafiMs/Vdsyhl+vdkZnZMCHYJ/
k7tz7K34ZFFgWWrurZrDTE/HsmYnoyayGcvNqvP5ry9giEU+4nbQX5r+FZTgD6Aa
AD+lCtPjmChUi8BHVGqN8LBkCGwlmCkUWcKCDBNpEGV2TiBqwbLVK7UOtKIxBCL6
TeWBfFkTAt8dicX/Y9cQdENMZF5btOfYlB72kM54MZFX3OeJT2zRrl3Zyj7OsXPM
IyDBXHkiouFY3nwqmvU4e6tJ68OA7igRjw6l6KqdtsJIUkg6b80tQJyILBkFxfUR
Slmc85O1bxIzkSrSe/xQjtGPIFtX9z9M5Y29EUrQA5Kkwqjm18jY/q67KZsLCCYP
HKGYsQK8ATTXBu1oFF+j3U4XAXBjZQykuweqaG6ia2IxsNIO3s/jpwomPcqdMmK7
yknXWLw30QjYI61J3CAyhZSe55ygsUtj50fs1mAAIiJa7Q1hLxGBZkx5pWZ9v65q
dajDoNM7NlXyLqc8Ip3n79ewxNduefdCIXtDbXKjzFPCxJundLRJ7QGsDvUkw1J+
XsnPppvn8ZGNq/5tW0zoN9AjJU40xUkmKs7BTQRhkW5eARAApX+rTwmC18YlSOGx
BHxNN74/FOHBcImvvud8xZEWHYzaZNwELji0CqaUDY+0qkeKEPi3qCy+r1uKs+bM
ENCg6EMVTbgNaYaViat8ZW+oDWLwRJRFPrI/ALByDi0CxJ9zws9V46fiM+K7B2xa
VUxJErLPWfDzc8PeKNYEul3LzHTmi2R2sbd3K/9P/5j0MiUiZSO+piyZGKbcP0pI
rm1elPvbP15U0YDuh2KcqDLNwgKAUxopmevu6DeN9BzaeSZhX1ixBOZMsCT1zXdO
VLIPZ+9IZJTiJTO+zihzRvyu0P1K+w2yRk7p2oHNgvLWl8cTyaWPAIzFhWfeSEkt
rsUVA2lFdXv1hDFLR/L6tz18fuvUoTrBSqrL2WSYjoTCyC8fyRJFRquqJ+38n3Kv
tNHvwrZQaNLziH8JqJxVrCnLm9LsGWjdb8tc2xMV8kmfbPIUu4WrbGEy6H92VvV5
0sE7HluHWCLeshl/OQIi1ECD5yTdcniH0hJXLO28yZydl8i4ft4lF9WF6nZD/xpy
ZsqgFS3e3rbGJnmO5NMWgng3uNv2pAH/N9xe7e9npVT5qI6NhQ6Wyf4Ujkqp9Bb7
gmHAPrtx8F5KU0opDnwPA+bJhZplGbDCE6bvGII469+aGYDi4ldFx2oPrYx2u8lm
W4X2lrHbBHrB6GHs+8d8/nyx11MAEQEAAcLBdgQYAQgAIBYhBE+tY+k2swWQamxI
lKUNW0tZmviiBQJhkW5eAhsMAAoJEKUNW0tZmviii8kP/12/xEoiPIGL2bhOS9RU
6eAESrl6nMfQlN6p65blVu0l5Zo5XLMRAqO6LhBt3OsdBl6zjHdHeAoTnmBqhyVl
wWMtyxs1KFEBzgzVEgq1Be3BFeSYu7jJA1XdJ4xOY70kJuYD5O8agCt5AsvF3Oj3
44bskb+A5SKi7UpYnnhOukNjrjF1rMWg8FEK2DBQiDjaIBtn8hLrpb8S4V7vhac/
cCmrUjDRQH4y5J3atlhKnpsQehpgfWI/5fq8m/fG0exoQfjtbfA/B1IvPpaJly0v
vNBDU+Y6jCX99CGxmU/IkGN/jeo+mqlVpE9Z4pBfI6PVjRJLztEQF7SLlqk1fM5N
2XEcijZpUWZLWF6VP6FGL6Vji94MBHqh1fZyAMjTcIf7rDC1SwYHwRn2F/g1kCHu
UEKZDgH8VcNmdJH98H4GdTru8DYV3ozF2ka7c12qpgmsUmMgkFJ2/nU4W9MTUr7Y
pjNvWLppgLdp7GEpg9E7JUdrMjCN+aZuKwVryUZohmTaRQEUjKkrWnTJ2iSt1oub
lqipwox5nmtZ2Ys1KBulkheaojLxMCCMlog/gJDjfkj+mbnoBGkLDbH0zaRmRp64
RkuPuqecrfZg7+UaZWabDGygu7rvO0T94AmDYPjAoYsrkjP19Rv/ozOV/1qvVipg
Rw0eY9UCvFf6RCIXT3ZOBR1V
=1eAh
-----END PGP PUBLIC KEY BLOCK-----

Binary file not shown.

After

Width:  |  Height:  |  Size: 883 B

BIN
src/static/badges/badge.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View file

@ -0,0 +1,12 @@
.;l.
';..,lxOx'
.:dxl.lxOOOx,..... b. .o
'dkOkxdxkOOOkxxxxxddl; ok
.:loxOOOxlcoOOOOkxxxxxdc. .::c. ,c:c c: :, l. ': ;::. xX;:c,
.,,'.cOOO: ;OOOkd'..... co cO xM'' 0k.==.lK .Nd Kl k0..K kM,.,X.
dOOO;..dOOOkxlccc:;'. kc :K xX 0k.==. Od0,ooO NO; kM 0,
.,;lOOOOxxkOOOOkxc:;,.. o::\ :o lc .k: .k. 'o-:/ cd:;lo
.;cccxOOOk',dkOOOx:
dOOOo .dxOOko. https://ari.lt/
dkdc. .ooo:'.
''. ..

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

169
src/static/css/base.css Normal file
View file

@ -0,0 +1,169 @@
:root {
color-scheme: dark;
--red: #ff5147;
--white: #fbfbfb;
--green: #50C878;
}
*,
*::before,
*::after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
scroll-behavior: smooth;
color: var(--white);
}
code,
code *,
pre,
pre * {
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
}
html {
height: 100%;
min-height: 100%;
background-color: #090909;
}
textarea {
background-color: #111;
border: none;
padding: 0.5em;
resize: vertical;
min-height: 3em;
}
body {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
height: auto;
min-height: 100%;
margin: auto;
padding: 0;
max-width: 1600px;
text-rendering: optimizeSpeed;
line-height: 1.5;
}
code {
white-space: pre-wrap !important;
}
h1 {
text-align: center;
}
article {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
padding: 2rem;
}
main {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
padding: 1em;
}
footer,
footer * {
text-align: center;
opacity: 0.8;
}
li {
margin: 0.5em 0;
}
table,
table * {
text-align: justify;
}
.table > table {
margin-left: auto;
margin-right: auto;
}
.table {
overflow-x: auto;
}
table {
border-spacing: 0.5rem;
}
a {
color: var(--red);
font-style: italic;
text-decoration: none;
}
input[type="checkbox"] {
cursor: pointer;
}
textarea {
cursor: text;
}
a:hover {
text-decoration: underline;
}
.mob {
display: none;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
-webkit-animation-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
-webkit-animation-iteration-count: 1 !important;
animation-iteration-count: 1 !important;
-webkit-transition-duration: 0.01ms !important;
-o-transition-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
@media only screen and (max-width: 1250px) {
.mob {
display: initial;
}
}

228
src/static/css/index.css Normal file
View file

@ -0,0 +1,228 @@
*,
*::before,
*::after {
font-family: Hack, hack, sans-serif;
}
.split {
display: -ms-grid;
display: grid;
-ms-grid-columns: 3fr 0.5em 1fr;
grid-template-columns: 3fr 1fr;
grid-gap: 0.5em;
-webkit-box-align: stretch;
-ms-flex-align: stretch;
align-items: stretch;
height: 100%;
}
.split > * {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
padding: 2em;
height: 100%;
}
.esplit {
-ms-grid-columns: 1fr 1fr;
grid-template-columns: 1fr 1fr;
}
.split > :first-child {
position: relative;
overflow: hidden;
text-align: justify;
}
.split > :first-child::before {
content: "";
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
border-right: 2px solid var(--red);
-webkit-animation: grow 0.5s forwards;
animation: grow 0.5s forwards;
pointer-events: none;
}
canvas#particles {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
pointer-events: none;
}
form {
background-color: #030303;
width: 100%;
padding: 1em;
margin: 1em;
border-bottom: 1px solid var(--red);
}
form > button {
background-color: #111;
border: none;
padding: 0.5em;
width: 100%;
cursor: pointer;
}
.form-group {
display: -ms-grid;
display: grid;
-ms-grid-columns: 8rem 1rem auto;
grid-template-columns: 8em auto;
grid-gap: 1rem;
margin: 0.4em;
}
.form-group * {
border: none;
padding: 0.3em;
}
.form-group > :last-child {
background-color: #111;
resize: vertical;
min-height: 3em;
}
#comments > div {
background-color: #111;
padding: 0.5em;
margin: 0.5em;
width: 100%;
}
.captcha {
display: -ms-grid;
display: grid;
place-items: center;
margin: 0.5em;
}
.captcha > img {
display: block;
cursor: pointer;
}
.icon {
display: inline-block;
width: 30px;
height: 30px;
background: black;
mask-size: cover;
background: var(--white);
}
.up {
mask: url(/static/svg/up.svg);
}
.down {
mask: url(/static/svg/down.svg);
}
.up:hover,
.up:focus {
background: var(--green);
}
.down:hover,
.down:focus {
background: var(--red);
}
.score {
text-align: center;
display: absolute;
}
.score > div {
margin: 0.2em;
}
#comments > * {
display: flex;
align-items: center;
justify-content: space-between;
}
@-webkit-keyframes grow {
from {
-webkit-transform: scaleY(0);
transform: scaleY(0);
}
to {
-webkit-transform: scaleY(1);
transform: scaleY(1);
}
}
@keyframes grow {
from {
-webkit-transform: scaleY(0);
transform: scaleY(0);
}
to {
-webkit-transform: scaleY(1);
transform: scaleY(1);
}
}
@media only screen and (max-width: 1250px) {
.split {
-ms-grid-columns: 1fr;
grid-template-columns: 1fr;
-ms-grid-rows: auto 0.5em auto;
grid-template-rows: auto auto;
-webkit-box-align: unset;
-ms-flex-align: unset;
align-items: unset;
}
.split > *:nth-child(1) {
-ms-grid-row: 1;
-ms-grid-column: 1;
}
.split > *:nth-child(2) {
-ms-grid-row: 3;
-ms-grid-column: 1;
}
.split > :first-child {
-webkit-box-ordinal-group: 3;
-ms-flex-order: 2;
order: 2;
}
.split > :last-child {
-webkit-box-ordinal-group: 2;
-ms-flex-order: 1;
order: 1;
}
.split > :last-child > *:not(div),
.split > :first-child::before {
display: none;
}
.split > :last-child {
word-break: break-all;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

47
src/static/fonts/Hack.css Normal file
View file

@ -0,0 +1,47 @@
@font-face {
font-family: Hack;
font-weight: 400;
font-style: normal;
src:
local("Hack Nerd Font Regular"),
local("Hack Regular"),
url(/static/fonts/hack-regular.woff2) format("woff2"),
url(/static/fonts/hack-regular.woff) format("woff");
font-display: swap;
}
@font-face {
font-family: Hack;
font-weight: 700;
font-style: normal;
src:
local("Hack Nerd Font Bold"),
local("Hack Bold"),
url(/static/fonts/hack-bold.woff2) format("woff2"),
url(/static/fonts/hack-bold.woff) format("woff");
font-display: swap;
}
@font-face {
font-family: Hack;
font-weight: 400;
font-style: italic;
src:
local("Hack Nerd Font Italic"),
local("Hack Italic"),
url(/static/fonts/hack-italic.woff2) format("woff2"),
url(/static/fonts/hack-italic.woff) format("woff");
font-display: swap;
}
@font-face {
font-family: Hack;
font-weight: 700;
font-style: italic;
src:
local("Hack Nerd Font Bold Italic"),
local("Hack Bold Italic"),
url(/static/fonts/hack-bolditalic.woff2) format("woff2"),
url(/static/fonts/hack-bolditalic.woff) format("woff");
font-display: swap;
}

45
src/static/fonts/LICENSE Normal file
View file

@ -0,0 +1,45 @@
The work in the Hack project is Copyright 2018 Source Foundry Authors and licensed under the MIT License
The work in the DejaVu project was committed to the public domain.
Bitstream Vera Sans Mono Copyright 2003 Bitstream Inc. and licensed under the Bitstream Vera License with Reserved Font Names "Bitstream" and "Vera"
### MIT License
Copyright (c) 2018 Source Foundry Authors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
### BITSTREAM VERA LICENSE
Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is a trademark of Bitstream, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions:
The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces.
The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words "Bitstream" or the word "Vera".
This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Bitstream Vera" names.
The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself.
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
Except as contained in this notice, the names of Gnome, the Gnome Foundation, and Bitstream Inc., shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from the Gnome Foundation or Bitstream Inc., respectively. For further information, contact: fonts at gnome dot org.

3
src/static/fonts/README Normal file
View file

@ -0,0 +1,3 @@
Hack typeface: https://github.com/source-foundry/Hack
License: https://github.com/source-foundry/Hack/blob/master/LICENSE.md
https://blog.ari.lt/content/fonts/LICENSE

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

188
src/static/js/particles.js Normal file
View file

@ -0,0 +1,188 @@
/*
* @licstart The following is the entire license notice for the JavaScript code in this file.
*
* Copyright (C) 2024 Ari Archer
*
* This file is part of ari.lt.
*
* The JavaScript code in this file is free software: you can redistribute it
* and/or modify it under the terms of the GNU Affero General Public License
* (AGPL) as published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version. The code is distributed WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
*
* As additional permission under AGPL version 3 section 7, you may distribute non-source
* (e.g., minimized or compacted) forms of that code without the copy of the AGPL normally
* required by section 4, provided you include this license notice and a URL through which
* recipients can access the Corresponding Source.
*
* @licend The above is the entire license notice for the JavaScript code in this file.
*/
"use strict";
function debounce(func, wait, immediate) {
let timeout;
return function () {
let context = this,
args = arguments;
let later = function () {
timeout = null;
if (!immediate) func.apply(context, args);
};
let call_now = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (call_now) func.apply(context, args);
};
}
document.addEventListener("DOMContentLoaded", function () {
const canvas = document.createElement("canvas");
canvas.id = "particles";
document.body.prepend(canvas);
const ctx = canvas.getContext("2d");
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
let particles = [];
const particle_density = 4e-5;
let num_particles;
const particle_size = 2;
const avoidance_radius = 64;
const connection_radius = 192;
const damping = 0.993;
const collision_damping = 0.8;
const drift_strength = 0.1;
let mouse = {
x: -1,
y: -1,
};
let animation_frame_id = null;
function update_pointer(e) {
if (e.touches) {
mouse.x = e.touches[0].clientX;
mouse.y = e.touches[0].clientY;
} else {
mouse.x = e.clientX;
mouse.y = e.clientY;
}
}
window.addEventListener("mousemove", update_pointer);
window.addEventListener("touchmove", update_pointer);
window.addEventListener(
"resize",
debounce(() => {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
cancelAnimationFrame(animation_frame_id);
init();
animate();
}, 250),
);
class Particle {
constructor() {
this.reset();
}
reset() {
this.x = Math.random() * canvas.width;
this.y = Math.random() * canvas.height;
this.velocity = {
x: (Math.random() - 0.5) * 4,
y: (Math.random() - 0.5) * 4,
};
}
update() {
this.velocity.x += (Math.random() - 0.5) * drift_strength;
this.velocity.y += (Math.random() - 0.5) * drift_strength;
if (this.x <= 0 || this.x >= canvas.width) {
this.velocity.x *= -collision_damping;
this.x = Math.max(Math.min(this.x, canvas.width), 0);
}
if (this.y <= 0 || this.y >= canvas.height) {
this.velocity.y *= -collision_damping;
this.y = Math.max(Math.min(this.y, canvas.height), 0);
}
let dx = mouse.x - this.x;
let dy = mouse.y - this.y;
let distance = Math.sqrt(dx * dx + dy * dy);
if (distance < avoidance_radius && distance > 0) {
this.velocity.x -= (dx / distance) * 0.5;
this.velocity.y -= (dy / distance) * 0.5;
}
this.velocity.x *= damping;
this.velocity.y *= damping;
this.x += this.velocity.x;
this.y += this.velocity.y;
}
draw() {
ctx.beginPath();
ctx.arc(this.x, this.y, particle_size, 0, Math.PI * 2);
ctx.fillStyle = "rgba(255, 81, 71, 0.5)";
ctx.fill();
}
}
function draw_connections() {
particles.forEach((particle, idx) => {
for (let i = idx + 1; i < particles.length; i++) {
let other_particle = particles[i];
let dx = other_particle.x - particle.x;
let dy = other_particle.y - particle.y;
let distance = Math.sqrt(dx * dx + dy * dy);
if (distance < connection_radius) {
ctx.strokeStyle = `rgba(255, 81, 71, ${1 - distance / connection_radius})`;
ctx.lineWidth = 0.5;
ctx.beginPath();
ctx.moveTo(particle.x, particle.y);
ctx.lineTo(other_particle.x, other_particle.y);
ctx.stroke();
}
}
});
}
function init() {
particles = [];
num_particles = Math.floor(
particle_density * canvas.width * canvas.height,
);
num_particles = Math.min(num_particles, 1024);
for (let i = 0; i < num_particles; i++) {
particles.push(new Particle());
}
}
function animate() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
particles.forEach((particle) => {
particle.update();
particle.draw();
});
draw_connections();
animation_frame_id = requestAnimationFrame(animate);
}
init();
animate();
});

62
src/static/js/rc4.js Normal file
View file

@ -0,0 +1,62 @@
/*
* @licstart The following is the entire license notice for the JavaScript code in this file.
*
* Copyright (C) 2024 Ari Archer
*
* This file is part of ari.lt.
*
* The JavaScript code in this file is free software: you can redistribute it
* and/or modify it under the terms of the GNU Affero General Public License
* (AGPL) as published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version. The code is distributed WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
*
* As additional permission under AGPL version 3 section 7, you may distribute non-source
* (e.g., minimized or compacted) forms of that code without the copy of the AGPL normally
* required by section 4, provided you include this license notice and a URL through which
* recipients can access the Corresponding Source.
*
* @licend The above is the entire license notice for the JavaScript code in this file.
*/
"use strict";
function rc4(b64_ct, b64_key) {
let ciphertext = base64_to_array_buffer(b64_ct);
let key = base64_to_array_buffer(b64_key);
let S = Array(256);
let j = 0,
temp;
for (let i = 0; i < 256; ++i) S[i] = i;
for (let i = 0; i < 256; ++i) {
j = (j + S[i] + key[i % key.length]) % 256;
temp = S[i];
S[i] = S[j];
S[j] = temp;
}
let i = 0;
j = 0;
let decrypted = new Uint8Array(ciphertext.length);
for (let y = 0; y < ciphertext.length; y++) {
i = (i + 1) % 256;
j = (j + S[i]) % 256;
temp = S[i];
S[i] = S[j];
S[j] = temp;
decrypted[y] = ciphertext[y] ^ S[(S[i] + S[j]) % 256];
}
return new TextDecoder().decode(decrypted);
}
function base64_to_array_buffer(base64) {
let bin = window.atob(base64);
let bytes = new Uint8Array(bin.length);
for (let idx = 0; idx < bin.length; ++idx) bytes[idx] = bin.charCodeAt(idx);
return bytes;
}

BIN
src/static/legal.sig Normal file

Binary file not shown.

239
src/static/legal.txt Normal file
View file

@ -0,0 +1,239 @@
Legal information of Ari-web
This is the legal information of ari-web which covers topics such as logging policy, privacy policy, data control, data control compliance, as well as other legal aspects when it comes to using ari-web services. By using or requesting to use any ari-web services you agree to the legal framework outlined in this document, and agree to keep yourself updated with or without notice.
This document serves as an agreement between you and Ari-web parties, regarding the use and management of Ari-web's services. It outlines the expectations, responsibilities, and limitations for both parties.
Visitor: 1609880
Created at: 2024-11-25 (YYYY-MM-DD)
Last updated: 2024-11-26 (YYYY-MM-DD)
OpenPGP signture of this document by the Authoritative party's OpenPGP key: legal.sig (Note: Only the text content found in legal.txt was signed. Use that text-only static copy of this document to verify the signature.)
# Involved Parties
Ari-web, albeit mainly a single-person curated project by the authority party, has multiple members separated into three authority layers: Authoritative Party (the party/-ies who make and finalize decisions as well as handling most of the project), Members (which may have the say in Authoritative Party's decisions as well as have volunteer responsibilities on the project), and Hosters (which may use or host services on Ari-web managed servers as per decision of the Authoritative Party).
Full list of the parties involved:
Authoritative Party: Arija A. (Ari Archer)
Email: ari@ari.lt
Matrix: @ari:ari.lt
XMPP/Jabber: ari@ari.lt
Fediverse: @ari@ak.ari.lt
Contact form: https://ari.lt/#gb
OpenPGP key ID: 4FAD63E936B305906A6C4894A50D5B4B599AF8A2
Ari-web Members
Zayd (administrates and moderates Akkoma)
IRC: zayd on libera.chat
Session (not checked often): 05d790add6647a049f58ce81c80aacc476859880af911cad105cf34fb8757b8872
Signal: https://signal.me/#eu/CDgDVDNMuKpx2BxAwHIcMq2iR3G-gw2XbKOOMm5BAg4XnhVXqHhKtJPvBXCDpwnu
Matrix: @zayd:imagisphe.re
XMPP/Jabber: zayd@telepath.im
Telegram (avoid unless needed): @nsa_employee
Website: https://zayd.fsky.io/
Joseph Winkie (A.K.A. jjj333_p) (moderates parts of Matrix, helps to collect spam for Ari-web email spam protection, moderates XMPP)
Signal: @jjj333_p.69
Telegram: @jjj333_p_1325
Matrix: @jjj333:pain.agency, @jjj333_p_1325:envs.net, @jjj333_p_1325:matrix.org, and more alternative accounts on their website
Phone: +1 (740) 481 1253
XMPP: jjj333@pain.agency
Snapchat: @jjj333_p
Email: jjj333.p.1325@gmail.com
Fediverse: @jjj333_p@ak.ari.lt
Twitter/X: @Jjj333P
Website: https://pain.agency/
LDA (moderates parts of Matrix)
Matrix: @lda:a.freetards.xyz, @fourier:ari.lt
Discord (avoid): ldasux
Fediverse: @lda@masto.doskel.net
XMPP: lda["at&t" without the "&t"]freetards.xyz
Website: https://freetards.xyz/
Morguldir (moderates parts of Matrix)
Matrix: @morguldir:sulian.eu, @morguwuldir:uwu.sulian.eu
Website: https://sulian.eu/
Ari-web Hosters
Alyssa/T1nklas/Al (hosted/semi-managed email Hoster)
Email: alyssa@t1nklas.lt
Fediverse: @lyra@crumb.lt
Website: https://t1nklas.lt/
Lenvx (hosted/semi-managed email Hoster)
Email: hi@lenvx.dev
Fediverse (inactive): @lonely@ak.ari.lt
Website: https://lenvx.dev/
Cubiq (Managed db.cubiq.dev Hoster)
Twitter/X: @CubiqNation
Instagram: @tennajivniblazenztgm
LinkedIn: @jakub-lajsek
Email: jlajsek@gmail.com
Website: https://cubiq.dev/
Collectively, we are called Ari-web. You are an outside party using our free (libre and gratis) and open source services.
# Liability Disclaimer
Ari-web disclaims all liability for any damages, data loss, dissatisfaction, or any other legal liability. You, as an individual user, are solely responsible for your actions, their consequences, and protecting yourself as well as your privacy and security.
In no event shall ari-web be liable for any indirect, special, incidental, or consequential damages related to your use of its services.
# Privacy and Data Protection
Ari-web will make reasonable efforts to protect your privacy unless circumstances call for access termination, transfer, or limitation with or without notice, such as in cases of legal compliance or suspected misuse of services. Ari-web reserves the right to manage your access at its discretion.
# Modifications and Exceptions
Ari-web reserves the right to modify these terms at any time without prior notice. Exceptions to these terms may be granted by the Authoritative party in writing with a digital signature, at their discretion.
# Servers
Processing server 0 (mail.ari.lt)
IPv4: 153.92.126.2
IPv6: 2a0e:dc0:2:11f1::/64 (Primary: 2a0e:dc0:2:11f1::1)
Location: Stockholm, Sweden
ISP: HostHatch
Hardware: 4 AMD EPYC cores (2 dedicated, 2 fair-shared), 16 GB of DDR4 RAM, 75 GB of NVMe storage, 4 TB of network bandwidth
Purpose: Processing of all requests, traffic, and hosting as well as processing of data and services.
Access: Only explicitly allowed traffic is allowed, exposed traffic is rate limited and sometimes strongly authenticated where needed.
Storage server 0 (cdn.ari.lt)
IPv4: 176.126.70.97
Location: Stockholm, Sweden
ISP: HostHatch
Hardware: 1 vCPU core, 1024 MB of RAM, 1000 GB of HDD storage + 20 GB NVMe storage, 2500 GB of network bandwidth.
Purpose: Storing data
Access: Cut off from the rest of the internet except rate limited and strongly autheticated port 22 traffic for SSH.
# Transparency
Ari-web is committed to providing the utmost transparency in its operations and services wherever possible. This commitment includes, but is not limited to, clear communication regarding the use of data, service functionality, and any changes to terms or policies. While Ari-web strives to maintain this level of transparency, it acknowledges that certain circumstances may limit the extent of disclosure. Users are encouraged to reach out with any questions or concerns regarding transparency in the services provided. Ari-web will do their best to notify of changes of ToS, but it is your responsibility to keep up with the changes.
# Services
This table lists all self-hosted software (semi-)open for the public that people are welcome to use.
Service Description Link
Matrix homeserver Semi-open registration, contact register@ari.lt for an account. matrix.ari.lt
XMPP/Jabber server Semi-open registration, contact register@ari.lt for an account. lh/xmpp
Forgejo git forge instance Open registration. git.ari.lt
Email server hosting Mailcow Contact domains@ari.lt for custom domains (aggressive policy). mail.ari.lt (register here) Hosted domains: ari.lt, t1nklas.lt, lenvx.dev, cubiq.dev
Roundcube webmail Only for semi-managed Ari-web email users rc.ari.lt
Akkoma fediverse instance Open registration. ak.ari.lt
SchildiChat & Cinny Matrix web clients Web clients for Matrix. schildi.ari.lt & cinny.ari.lt
PrivateBin instance Private public encrypted pastebin. pb.ari.lt
Private PocketBase instance Private database storage for Github: TheCubiq db.cubiq.dev
Forgejo instance for kappach.at Git forge instance of KappaChat - An extensible Matrix client written in C. git.kappach.at
# Community standards
Abide by International, United States of America, Lithuanian, and Swedish Laws
Maintain a Healthy Environment
Uphold Human Decency. This includes:
Tolerance.
Ensuring non-discrimination. This covers racism, homophobia, transphobia, sexism, xenophobia, fatphobia, and other negative attitudes.
Avoiding the spread of misinformation and disinformation.
Being responsible and accountable for your actions.
Prohibit the spread of Child Sexual Abuse Material (CSAM), which includes forms such as Lolicon and Shotacon. Additionally, avoid any discussions that might imply a positive view of CSAM or related content.
Respecting other users.
Adhering to other generally accepted norms of behaviour.
Do not share anyone's personal information without their explicit consent (also known as Doxing) - respect privacy of everyone.
Do not engage in activities that infringe on the intellectual property rights of others.
No Spam.
No Harassment or Stalking. Engaging in harassment or stalking of other users is strictly prohibited.
Avoid Harmful Behaviors - do not partake in actions that could harm individuals, jurisdictions, or systems.
Sending sexually explicit or suggestive messages is not allowed.
Follow Admin Guidelines - any behaviour deemed abusive by the administrators will be considered a violation of these guidelines.
# Compliance
Ari-web is committed to complying with the General Data Protection Regulation (GDPR) (as well as COPPA (Children's Online Privacy Protection Rule) if you live in the U.S.) and the Digital Millennium Copyright Act (DMCA).
It adheres to the principles outlined in the GDPR, ensuring that all personal data is processed lawfully, fairly, and transparently. I collect and process personal data only for specified, legitimate purposes and ensure that such data is accurate, up-to-date, and retained only as long as necessary for those purposes. Users have rights regarding their personal data, including access, rectification, and erasure, which we honor in accordance with GDPR requirements.
It also respects intellectual property rights and complies with the provisions of the DMCA. We have implemented procedures to address any claims of copyright infringement and provide a mechanism for copyright holders to report alleged infringements. We take such claims seriously and will respond promptly to any notices of claimed infringement.
If you see any resource violating the law, GDPR, or DMCA, contact the Authoritative party with all information and full paths and URLs/URIs of the violating content. Without sufficient information, the Authoritative party cannot do anything about the violations.
By using our services, you acknowledge our commitment to these regulations and understand that we will take all necessary steps to ensure compliance with the law, GDPR, and DMCA.
Per GDPR, you are required to be at least the age of digital consent in your jurisdiction to use our services, or have your legal guardians consent to allow digital processing of your data.
Send any DMCA complaints or requests to dmca@ari.lt, any GDPR-related messages to gdpr@ari.lt, and any COPPA-related issues to coppa@ari.lt.
# Logging, privacy, and data processing
By using our services, you agree that any data you send to Ari-web servers to be processed, stored, logged, and served. We reserve to change these policies at any point for genuine interest which includes service functionality, moderation, administration, or allowing extra features with or without prior notice.
You reserve the right to request mass data deletion of any data logged or stored, even if GDPR does not apply in your jurisdiction by simply sending a request to gdpr@ari.lt. Logs are mainly collected for moderation and service stability ensurance.
Service Logged information Stored information Notes
All Your IP address (logs are rotated every 64 days), access URI, authentication attempts, timestamp, response code, and parameters Your IP address (temporarily for up to a week in-memory), all data you sent to be processed and expect it to be stored (such as comments, messages, files, ...), cookies You are responsible for your own privacy by using client-side encryption. Data on Ari-web is mninimally processed, and even though we strive for best privacy and security, we place the responsibility of true privacy so only you see your data by using client-side encryption on you. (See OpenPGP). Your IP may be stored indefinitely if we notice large amount of potentially abusive traffic from you to block your IP address. Most logs are rotated every 64 days.
Computing (access to the server's compute resources) Everything you do on the system is logged, including file access, login attempts, and resource usage as well as the normal logs as described above ("All"). Stored information is all information you may put on the server, which includes (but is not limited to) files, logs, software, and code. These assets will not be served unless you choose to serve them yourself, in which case, you should request the Authoritative party to allow you to use certain ports and for them to be open to the open internet. You are responsible for ensuring your own privacy and not compromising the security of the compute resources, although, it will and is monitored to ensure best practices are being followed. You are responsible for managing your own resource usage without abusing them as well as adhering to Ari-web policies and initiating your own. You may not distribute or even read data or configuration that is not meant for you.
Matrix (matrix.ari.lt) Error reporting information with nonidenfiable or minimally idenfiable information. All Matrix rooms and events as well as files to be stored, federated or not. Federates the aforementioned events to other servers out of our control due to the nature of the mash nature of the Matrix protocol.
XMPP/Jabber (ari.lt ports 5222, 5269, 5223, 5270, and 5281) Client/server events (federated or not), including (but not limited to) connections and error reporting information. All XMPP events and multi-user chats as well as files to be stored, federated or not. XMPP has a unique way of storing various events, therefore, you are strongly encouraged to use private-only MUCs (multi-user chats) on muc.ari.lt with encryption with OMEMO or OpenPGP.
Git forge (Forgejo at git.ari.lt) Any events or actions taken by You on git Forge, including authenticating, creating repositories, organisations, using runners (actions), deleting repositories, commits, etc. All repositories (private and public) and their data as well as metadata, user profile data, authentication data, prefrences, blocked users, avatars, descriptions, emails, organizations, etc. Git forge is meant to store data like a versioned file store of sort (i.e. Git VCS), therefore, all you send there will be served, to public or not (depending on your prefrences).
Email mailboxes of Ari-web email using Mailcow (mail.ari.lt) All actions performed on email are agressively logged. This includes: Email subject, email headers, rSpamD scan result, ClamAV antivirus results, access and authentication of both email and web UI, sent and received mail, IP address spam statistics, mailbox spam statistics, email (and its body) spam statistics (fuzzy hashes and scores mainly). This ensures full stability and deliverability of the email server. All data related to your email is stored. This includes: IP address, email body, attachments, headers, spam scores and metadata, email threads, WebUI accounts (and their associated data), etc. Even though we try to ensure best security of emails as well as secure access and storage, you are responsible for ensuring your total privacy. We are NOT allowed to invade your privacy unless circumstances call for it, although, to be safe, we suggest public key encryption to be used. See Termination, Limitation, and Transfer for more details.
Semi-managed email using custom domains using Mailcow (goes to mail.ari.lt) All data related to email mailboxes is logged as described above. Although, email hosting with custom domains comes with its own caviates as well, for instance, you may be requested to add DMARC reports support to your domain. All administrator actions will also be logged and stored relating to your custom domain like login attempts, change of settings and rules as well as related events. Mailbox information is stored as described above. Administrator information is stored similarly to mailbox WebUI accounts, including authentication information and various domain-related information such as logs and private keys (like DKIM). You, as the domain administrator, are required to ensure best security practices when using Ari-web email and to not violate the described terms in this document. Your violation of these terms will be considered a breach, therefore, your access will be terminated with notice.
PrivateBin (pb.ari.lt) Logs your paste ID, although, does not log the private key used for encrypting the paste. Encrypted paste information is stored on the paste as sent by the client. When reporting a paste for violating content, please provide us with as much information as possible about the paste, including its ID and private key (all in the URL, which you can just supply to us).
RoundCube webmail (rc.ari.lt) Logs error information. Stores your sessions as well as your password in an encrypted format as well as user prefrences, identities, and other related webmail data.
Matrix clients (schildi.ari.lt and cinny.ari.lt) All data and processing happens client-side.
Akkoma/fediverse instance (ak.ari.lt) All actions taken by administrators are logged as well as errors / warnings / faults related to various parts of the applications. Stores all data sent to the server, federated or not, such as user-generated content (posts, dms), descriptions, content warnings, avatars, alt texts, interractions, tags, avatars, uploads, etc. and federates them to other servers out of our control due to the nature of the mash nature of the ActivityPub protocol.
# Service availability
Ari-web tries to provide the best uptime, although, there is zero guarantee on any sort of service availability in percentage. You get what you get essentially. Although, expect minor downtime monthly or bimonthly for maintenence tasks such as a maintenence reboot or a configuration change. This assumption is not to be construed as a guarantee.
Ari-web disclaims any liability for service interruptions or downtime, and users acknowledge that they are using the services at their own risk.
# Termination, Limitation, and Transfer
Ari-web reserves the right to terminate, limit, or transfer services, infrastructure, or general access in certain circumstances, as outlined below:
Termination or Limitation of Services: ari-web may terminate or limit services if Ari-web deems the service too difficult to control or moderate, or if a constant pattern of violations or one extreme and severe violation is detected. For individuals, services may be terminated without notice if they continue to violate the terms of service or engage in behaviour that Ari-web considers unacceptable. Such decisions will be based on the outlines in this document as well as Ari-web interpretation of this document and their own discretion.
Transfer of Services: Ari-web will only transfer access to services in two scenarios:
User-Requested Transfer: Upon proof of identity, a user may request a transfer of their service to another party.
Legal Compliance Transfer: The Authoritative party may be required by law to transfer access to a user's service, with or without notice, to legal authorities.
In both cases, the Authoritative party reserves the right to make the final determination regarding the transfer of services based on their interpretation of the law and the circumstances surrounding the request.
Users acknowledge and agree that the Authoritative party's decisions regarding service termination, limitation, and transfer are final and not subject to appeal or legal action.
# Governing law
Ari-web and its services are subject to international laws as well as the laws of the United States of America, Lithuania, and Sweden. Users acknowledge that these jurisdictions govern the use of ari-web services and any disputes that may arise in connection with them. This statement is intended to clarify the legal framework applicable to the services offered by ari-web and does not create any binding obligations beyond this acknowledgment.
We are also subject to the terms of HostHatch which you can read at:
https://hosthatch.com/terms-of-service
https://hosthatch.com/acceptable-use-policy
https://hosthatch.com/privacy-policy
# Affiliations
Any member (volunteer) considered an Ari-web member (volunteer) is affiliated with Ari-web in a way where they are related and working on making Ari-web a better place for everyone at their own discretion. Furthermore, Ari-web as a non-legally-formed organization of individuals, cannot be affiliated with any legal entities. Affiliations are handled by the Authoritative party inidividually, and all benifits from that affiliation will be used at the Authoritative party's discretion whether it be by using it to support Ari-web, other projects, or for personal use.
All affiliate content on Ari-web share a part of the Ari-web license set, which usually includes copyright to the Authoritative party provided by licenses such as MIT, GPL, AGPL, BSD, or CC-BY-SA, or no copyright at all as provided by public domain licenses such as Unlicense, CC0, or WTFPL. Ari-web shalt never produce proprietary assets licensed under a proprietary license with greatly restricts others' ability to copy, modify, publish, use, compile, or distribute parts or full of it in source code form.
# Data scraping
You shall not scrape any data from Ari-web for unethical, wasteful, or abusive scraping purposes. For example, any scraping of data for training corporate AI models or Large Language Models using our Data and/or User Content in any way is prohibited and not deemed acceptable. You may scrape data solely for the purpose of indexing to improve searchability or for the development of client applications that utilize Ari-web services, as well as for education or entertainment purposes that would be considered reasonable and okay in most other applications, so long as it does not violate privacy, freedom, or rights of others and complies to our terms.
Should you fail to comply to these policies, you hereby acknowledge and agree that in situations where data scraping is found to be a breach of these terms, you agree to pay a fee of 1 euro per byte (8 bits) of digital data scraped from Ari-web, directly to the Authoritative Party, after which the finances will be treated and used donations - to support Ari-web, the Authoritative party, and also giving back to the people who's content was stolen. This clause is designed to prevent unethical and wasteful practices that not only harm the environment but also infringe upon the rights of our users and our organization.
If you are unsure whether or not you may scrape data for a certain purpose on Ari-web, you should contact scraping@ari.lt with your enquiries listing what purpose the data will be scraped for, what data will be scraped, and what you promise to do to protect the rights of others with your data scraping acts.
# Finances
Ari-web is fully funded by the Authoritative party and volunteer donations by Cryptocurrency. This includes:
Personal finances (out of pocket)
Monero (XMR) donations: 451VZy8FPDXCVvKWkq5cby3V24ApLnjaTdwDgKG11uqbUJYjxQWZVKiiefi4HvFd7haeUtGFRBaxgKNTr3vR78pkMzgJaAZ (/xmr (AnonPay), /oxmr (AnonPay onion)) (OpenAlias: xmr@ari.lt)
A QR code to a Monero Cryptowallet address.
Litecoin (LTC) donations: ltc1qfmx6hvyfrphsp0uu29fjwzrqdpt8vse8p5xxh3 (/ltc (AnonPay), /oltc (AnonPay onion)) (OpenAlias: ltc@ari.lt)
A QR code to a Litecoin Cryptowallet address.
Nobody shall ever, unless a change of status in Ari-web, be forced to pay for a publicly available service to use it unless it is by their own discretion through direct (monetary, which are logged in a public donation log) or indirect (code and help) donations.
Ari-web, as a project almost exclussively out of the Authoritative party's pocket, costs as follows:
Purpose Payment model Annual cost
Processing server 0 (mail.ari.lt) Quarterly ($45/qr) $180
Storage server 0 (cdn.ari.lt) Quarterly ($15/qr) $60
Domain (ari.lt) Annual ($12.58/yr) ~$13
Total ~$253 ±$20 (for misc. costs and taxes)
These costs do not include labour costs as well as various mishaps. We spend a lot of effort and time trying to maintain Ari-web a clean, nice, and stable place as much as it is in our power, while maintaining best security and community.
By continuing to use ari-web's services, you agree to be bound by these terms and acknowledge Ari-web's right to enforce them as needed. You understand and accept that Ari-web is not a legal entity or company, but rather a service provided by a random person. As such, the terms outlined in this document are non-binding and subject to change without notice.
Ari-web reserves the right to enforce these terms as deemed necessary, but makes no guarantees regarding the consistency or enforceability of the policies described herein. Users are advised to use Ari-web's services at their own risk and discretion with common sense.
By continuing to access and use Ari-web services, you signify your understanding and acceptance of these terms. If you do not agree with the terms, you are advised to discontinue using Ari-web services immediately and/or request a permenant data deletion by sending a request to bye@ari.lt.
meow :3
The source code and all content, except the Nerd Hack font (see Nerd Hack font license), are licensed under the AGPL-3.0-or-later by Ari Archer <ari@ari.lt> as a part of the ari-web project. Copyright 2020-2024.

298
src/static/old-tos.txt Normal file
View file

@ -0,0 +1,298 @@
The ARI.LT Terms of Service
Author: Ari Archer <ari@ari.lt> at 2024-08-21
Last modified: 2024-11-13
License: The Unlicense
By using the services provided by ari-web, including but not limited to XMPP, Matrix, Vikunja, email,
and email hosting, you agree to the following terms and conditions which apply since the last modification:
0. Definitions
* The Authoritative party: Refers to the owner of ari.lt which funds, manages, administrates, authorises, and moderates whole of ari.lt and its services.
* Ari-web (ari-web): Refers to all volunteers working with/on ari.lt, referring to people authorised to do so by the Authoritative party. This encompasses the Authoritative party as well.
* Hosters: Any people, not specifically a part of ari-web, who may host services on ari-web servers or use managed services relating to ari-web.
* User: Any person using ari-web services.
1. Parties
* The Authoritative party: Ari Archer
* Email: ari@ari.lt
* Matrix: @ari:ari.lt
* XMPP/Jabber: ari@ari.lt
* Fediverse: @ari@ak.ari.lt
* Form: https://ari.lt/#gb (public guestbook, which goes directly to the party
* Public GPG key: https://ari.lt/4FAD63E936B305906A6C4894A50D5B4B599AF8A2.asc (signature 4FAD63E936B305906A6C4894A50D5B4B599AF8A2)
* Other ari-web members
* Zayd (administrates Akkoma (Fediverse))
* IRC: zayd on libera.chat
* Session (not checked often): 05d790add6647a049f58ce81c80aacc476859880af911cad105cf34fb8757b8872
* Signal: https://signal.me/#eu/CDgDVDNMuKpx2BxAwHIcMq2iR3G-gw2XbKOOMm5BAg4XnhVXqHhKtJPvBXCDpwnu
* Matrix: @zayd:imagisphe.re
* XMPP: zayd@telepath.im
* Telegram (avoid unless needed): https://t.me/nsa_employee
* Website: https://wanderer.envs.net/
* Joseph Winkie AKA jjj333_p (moderates parts of Matrix)
* Signal: @jjj333_p.69
* Telegram: @jjj333_p_1325
* Matrix: @jjj333:pain.agency, @jjj333_p_1325:envs.net, @jjj333_p_1325:matrix.org, and more alternative accounts on their website
* Phone: +1 (740) 481 1253
* XMPP: jjj333@pain.agency
* Snapchat: @jjj333_p
* Email: jjj333.p.1325@gmail.com
* Fediverse: @jjj333_p@ak.ari.lt
* Twitter/X: @Jjj333P
* Website: https://pain.agency/
* LDA (moderates parts of Matrix)
* Matrix: @lda:a.freetards.xyz, @fourier:ari.lt
* Discord (avoid): ldasux
* Fediverse: @lda@ak.ari.lt
* XMPP: lda["at&t" without the "&t"]freetards.xyz
* Website: https://freetards.xyz/
* Morguldir (moderates parts of Matrix)
* Matrix: @morguldir:sulian.eu, @morguwuldir:uwu.sulian.eu
* Website: https://sulian.eu/
* Hosters
* Alyssa/T1nklas/Al (hosted/managed email Hoster)
* Email: alyssa@t1nklas.lt
* Fediverse: @lyra@crumb.lt
* Website: https://t1nklas.lt/
* Lenvx (hosted/managed email Hoster)
* Email: hi@lenvx.dev
* Fediverse (inactive): @lonely@ak.ari.lt
* Website: https://lenvx.dev/
* Cubiq (hosts db.cubiq.dev)
* Twitter/X: @CubiqNation
* Instagram: @tennajivniblazenztgm
* LinkedIn: @jakub-lajsek
* Email: jlajsek@gmail.com
2. Purpose
This document serves as a non-legally binding agreement between you, the User, ari-web, and the Authoritative party,
regarding the use and management of ari-web's services. It outlines the expectations, responsibilities,
and limitations for both parties.
3. User Agreement
By using ari-web's services, you acknowledge and agree to the terms outlined in this document.
You understand that exceptions authorized by the Authoritative party in writing with a digital signature may apply,
with or without notice, depending on the circumstances and opinion of the Authoritative party.
4. Liability Disclaimer
Ari-web disclaims all liability for any damages, data loss, dissatisfaction, or any other legal liability.
You, as an individual user, are solely responsible for your actions, their consequences, and protecting yourself
as well as your privacy and security.
5. Privacy and Data Protection
The Authoritative party will make reasonable efforts to protect your privacy unless circumstances call for access termination,
transfer, or limitation with or without notice, such as in cases of legal compliance or suspected misuse of services.
6. Modifications and Exceptions
The Authoritative party reserves the right to modify these terms at any time without prior notice.
Exceptions to these terms may be granted by the Authoritative party in writing with a digital signature, at their discretion.
7. Limitation of Liability
In no event shall ari-web be liable for any indirect, special, incidental, or consequential damages related to your use of its services.
8. Servers
* Processing server 0
* IPv4: 153.92.126.2
* IPv6: 2a0e:dc0:2:11f1::/64 (Primary 2a0e:dc0:2:11f1::1)
* Location: Stockholm, Sweden
* Hosting provider: HostHatch
* Hardware: 4 AMD EPYC cores (2 dedicated, 2 fair-shared), 16 GB of DDR4 RAM, 75 GB of NVMe storage, 4 TB of network bandwidth
* Purpose: Processing of all requests, traffic, and hosting as well as processing of data and services.
* Access: Only explicitly allowed traffic is allowed, exposed traffic is rate limited and sometimes strongly authenticated where needed.
* Storage server 0
* IPv4: 176.126.70.97
* Location: Stockholm, Sweden
* Hosting provider: HostHatch
* Hardware: 1 vCPU core, 1024 MB of RAM, 1000 GB of HDD storage + 20 GB NVMe storage, 2500 GB of network bandwidth.
* Purpose: Storing data
* Access: Cut off from the rest of the internet except rate limited and strongly autheticated port 22 traffic for SSH.
8. Transparency
The Authoritative party is committed to providing the utmost transparency in its operations and services wherever possible.
This commitment includes, but is not limited to, clear communication regarding the use of data, service functionality, and
any changes to terms or policies. While the Authoritative party strives to maintain this level of transparency,
it acknowledges that certain circumstances may limit the extent of disclosure. Users are encouraged to reach out with any
questions or concerns regarding transparency in the services provided. Ari-web will do their best to nodify of changes
of ToS, but it is your responsibility to keep up with the changes.
9. Services
Ari-web provides the following services:
* Matrix homeserver at matrix.ari.lt running Dendrite (contact the Authoritative party for registration)
* XMPP/Jabber server at most standard ports of this protocol on ari.lt servers running Prosody (contact the Authoritative party for registration)
* Git Forge instance at https://git.ari.lt/ running Forgejo (open registration, requires email)
* Email mailboxes on ari.lt (contact the Authoritative party for registration)
* Email hosting on ari.lt servers (only possible if the Authoritative party and the User have established trust)
* Vikunja at https://vi.ari.lt/ (open registration, requires an email)
* PrivateBin at https://pb.ari.lt/ (free encrypted pastebin, nobody can see the contents of your paste without knowing the secret key)
* Akkoma (Fediverse) instance at https://ak.ari.lt/ (federated social network)
Other hosted services by others:
* https://db.cubiq.dev/ pocketbase hosting (private)
* https://t1nklas.lt/ email hosting
* https://lenvx.dev/ email hosting
* https://git.kappach.at/ Forgejo hosting
* More to come...
10. Community standards
You are expected to comply with the following standards while using ari.lt and ari-web related services:
1. Abide by United States of America, Lithuanian, and Swedish Laws
2. Maintain a Healthy Environment
3. Uphold Human Decency. This includes:
- Tolerance.
- Ensuring non-discrimination. This covers racism, homophobia, transphobia, sexism, xenophobia, fatphobia, and other negative attitudes.
- Avoiding the spread of misinformation and disinformation.
- Being responsible and accountable for your actions.
- Prohibit the spread of Child Sexual Abuse Material (CSAM), which includes forms such as Lolicon and Shotacon. Additionally, avoid any discussions that might imply a positive view of CSAM or related content.
- Respecting other users.
- Adhering to other generally accepted norms of behaviour.
4. Do not share anyone's personal information without their explicit consent (also known as Doxing) - respect privacy of everyone.
5. Do not engage in activities that infringe on the intellectual property rights of others.
6. No Spam.
7. No Harassment or Stalking. Engaging in harassment or stalking of other users is strictly prohibited.
8. Avoid Harmful Behaviors - do not partake in actions that could harm individuals, jurisdictions, or systems.
9. Sending sexually explicit or suggestive messages is not allowed.
10. Follow Admin Guidelines - any behaviour deemed abusive by the administrators will be considered a violation of these guidelines.
11. Compliance
Ari-web is committed to complying with the General Data Protection Regulation (GDPR) and the Digital Millennium Copyright Act (DMCA).
It adheres to the principles outlined in the GDPR, ensuring that all personal data is processed lawfully, fairly, and transparently.
I collect and process personal data only for specified, legitimate purposes and ensure that such data is accurate, up-to-date, and
retained only as long as necessary for those purposes. Users have rights regarding their personal data, including access,
rectification, and erasure, which we honor in accordance with GDPR requirements.
It also respects intellectual property rights and complies with the provisions of the DMCA. We have implemented procedures to
address any claims of copyright infringement and provide a mechanism for copyright holders to report alleged infringements.
We take such claims seriously and will respond promptly to any notices of claimed infringement.
If you see any resource violating the law, GDPR, or DMCA, contact the Authoritative party with all information and full paths
and URLs/URIs of the violating content. Without sufficient information, the Authoritative party cannot do anything about
the violations.
By using our services, you acknowledge our commitment to these regulations and understand that we will take all necessary steps
to ensure compliance with the law, GDPR, and DMCA.
12. Privacy and Logging
This describes how Privacy and Logging work on all ari-web provided services. By using the services I provide, you agree with these terms
and policies, and acknowledge the fact that it won't be public unless it is obviously made to be public (for instance, in case of Git forge public repositories).
No private data (such as email data) will be released or even exported or read without a serious need to do so (for example, need to comply with law enforcement
or back email data up to avoid data loss).
* Website: Your IP is stored temporarily in memory for rate limiting purposes. Nothing is logged.
* Matrix homeserver: All data you sent to the Matrix homeserver is stored (including, but not limited to:
sessions (including their IPs) for as long as you don't log out, media (for as long as needed), ciphertext
of messages in encrypted rooms and plaintext ones in non-encrypted rooms, profile pictures, and
generally decentralised Matrix events). For maximum privacy, it is recommended you use encrypted rooms,
so the Authoritative party may not see your messages. This data is required for ensuring security and usability
of the service and you can delete this data by deleting events yourself and deactivating your account.
For full data deletion only on ari.lt, due to how the Matrix protocol works, contact the Authoritative party,
which will delete it manually from the database only for ari.lt (as other servers may still have this data due
to the decentralised nature of Matrix). Non-identifiable errors on the server are logged for a period of time.
You may request deletion of these logs at any point without deleting your account.
* XMPP/Jabber server: All data you sent to the XMPP/Jabber server is stored (including, but not limited to muti-user-chat
(MUC) state, non-encrypted media, and message ciphertext). For maximum privacy, it is recommended you use encrypted MUCs,
so the Authoritative party may not see your messages in any way. This data is required for ensuring security and usability
of the service and you can delete this data by deleting events yourself and deactivating your account. For full
data deletion only on ari.lt, due to how the XMPP/Jabber protocol works, contact the Authoritative party, which will delete
it manually from the database only for ari.lt (as other servers may still have this data due to the decentralised nature of XMPP/Jabber).
Nothing personal is truly logged except non-identifiable Prosody errors.
* Git forge: All data you store and send there, including private repositories, is stored on the server unencrypted alongside all
user profile data, such as email, avatar, description, email, password hashes, git commits, public GPG and SSH keys,
2-factor-authentication (2FA), preferences, blocked users, organizations, etc. This data can be deleted by you deleting your
account. Your IP address and what endpoints it is hitting is logged in memory for a period of time until it is either restarted,
cleared, or overwritten. You may request deletion of these logs at any point without deleting your account.
* Email mailboxes: They log the following information for security, moderation, legal, diagnostic, and functionality purposes:
Your IP address(es), Login/logout (authentication) attempts, Rate limit triggers, Origin and target of e-mails, Email subject
matter and spam score. Some of these logs are purely in memory, though some (last two) are stored for a prologed period of time
for diagnostic, moderation, and legal purposes. You may request deletion of these logs at any point without deleting your mailbox.
All data you send and recevie to it is stored on the server in an encrypted and compressed format, though that does not mean that the
plain text is unrecoverable as the secret keys are stored on the server as well. It is your responsiblity to ensure privacy yourself
by using encryption such as RSA or GPG.
* Email hosting: Same logging policy applies to email hosting as email mailboxes, except with the addition of DMARC reports which show errors
and deliverability problems in certain email servers if you choose the DMARC policies the Authoritative party recommends. All data you send
and recevie to it is stored on the server in an encrypted and compressed format, though that does not mean that the plain text is unrecoverable
as the secret keys are stored on the server as well. It is your responsiblity to ensure privacy yourself by using encryption such as RSA or GPG.
* Vikunja: Similarly to Git forge, Vikunja stores your IP and endpoints you access in it temporarily in memory. You may request the deletion of
these logs at any point without the deletion of your account. All data you store in Vikuja is stored in plain text, unless otherwise encrypted by you.
* PrivateBin: Does not log anything and ari-web in no capacity can see you IP address or the contents of your pastes without the secret key.
Knowing the ID will only allow the deletion of content, but not modification or decryption.
* Akkoma server: All data you sent to the Akkoma server is stored (including, but not limited to:
sessions for as long as you don't log out, media (for as long as needed), plaintext posts and user-generated content,
profile pictures, and generally decentralised Activitypub protocol events). This data is required for ensuring security
and usability of the service and you can delete this data by deleting events yourself and deleting your account.
No major logs are stored, except in-memory error logs.
* Other services: The Hosters are the ones who are responsible for handling the privacy and logging aspect of them.
Ari-web only provides the infrastructure for them, but it is not responsible for anything relating to them, except
having the ability to limit, transfer, or terminate access to the said infrastructure.
13. Service Availability
Ari-web does not provide any guarantees regarding service availability or uptime. Users and hosts of ari-web services are permitted
to assume a maximum of 95% yearly uptime; however, this assumption is not to be construed as a guarantee.
The Authoritative party disclaims any liability for service interruptions or downtime, and users acknowledge that they are using
the services at their own risk. This statement does not create any contractual obligation or liability on the part of ari-web
regarding service performance.
You may check the uptime of whole of ari-web at https://status.ari.lt/ which is hosted by https://fsky.io/.
14. Termination, Limitation, and Transfer
Ari-web reserves the right to terminate, limit, or transfer services, infrastructure, or general access in certain circumstances, as outlined below:
Termination or Limitation of Services: ari-web may terminate or limit services if the Authoritative party deems the service too difficult to control or moderate,
or if a constant pattern of violations or one extreme and severe violation is detected. For individuals, services may be terminated without notice if they continue
to violate the terms of service or engage in behavior that the Authoritative party considers unacceptable. Such decisions will be based on the Authoritative party's
interpretation of this document and their own discretion.
Transfer of Services: Ari-web will only transfer access to services in two scenarios:
* User-Requested Transfer: Upon proof of identity, a user may request a transfer of their service to another party.
* Legal Compliance Transfer: The Authoritative party may be required by law to transfer access to a user's service, with or without notice, to legal authorities.
In both cases, the Authoritative party reserves the right to make the final determination regarding the transfer of services based on their interpretation
of the law and the circumstances surrounding the request.
Users acknowledge and agree that the Authoritative party's decisions regarding service termination, limitation, and transfer are final and not subject
to appeal or legal action.
15. Governing law
Ari-web and its services are subject to the laws of the United States of America, Lithuania, and Sweden.
Users acknowledge that these jurisdictions govern the use of ari-web services and any disputes that may arise in connection with them.
This statement is intended to clarify the legal framework applicable to the services offered by ari-web and does not create any
binding obligations beyond this acknowledgment.
---
By continuing to use ari-web's services, you agree to be bound by these terms and acknowledge the Authoritative party's right
to enforce them as needed. This document serves as a general guide for accessing and using ari-web's services and is not
intended to be a legally binding contract.
You understand and accept that ari-web is not a legal entity or company, but rather a service provided by a random person.
As such, the terms outlined in this document are non-binding and subject to change without notice.
The Authoritative party reserves the right to enforce these terms as deemed necessary, but makes no guarantees regarding
the consistency or enforceability of the policies described herein. Users are advised to use ari-web's services at their
own risk and discretion.
By continuing to access and use ari-web's services, you signify your understanding and acceptance of these non-binding
terms of service. If you do not agree with the terms, you are advised to discontinue using ari-web's services immediately.

BIN
src/static/qr.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

122
src/static/svg/ari.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 73 KiB

5
src/static/svg/down.svg Normal file
View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="30" height="30" viewBox="0 0 100 100" class="down">
<polygon points="10,10 90,10 50,90" fill="none" stroke="black" stroke-width="3"/>
</svg>

After

Width:  |  Height:  |  Size: 387 B

5
src/static/svg/up.svg Normal file
View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="30" height="30" viewBox="0 0 100 100" class="up">
<polygon points="50,10 90,90 10,90" fill="none" stroke="black" stroke-width="3" />
</svg>

After

Width:  |  Height:  |  Size: 386 B

58
src/templates/base.j2 Normal file
View file

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ari::web -&gt; {% block title %}Untitled{% endblock %}</title>
<link rel="icon" href="{{ url_for("views.favicon") }}" sizes="128x128" type="image/vnd.microsoft.icon" />
<meta name="description" content="{% block description %}Description of an untitled page.{% endblock %}" />
<meta
name="keywords"
content="ari archer, ari, archer, arija, arija a, ari-web, aw, open source, foss, developer, open source developer, website, python, c, blog, agpl, gpl, dev, lithuania, {% block keywords %}test{% endblock %}"
/>
<meta
name="robots"
content="follow, index, max-snippet:-1, max-video-preview:-1, max-image-preview:large"
/>
<meta property="og:type" content="{% block type %}website{% endblock %}" />
<meta name="color-scheme" content="dark" />
<meta name="theme-color" content="{% block colour %}#121212{% endblock %}" />
<meta name="foss:src" content="{{ url_for("views.git") }}" />
<meta name="license" content="AGPL-3.0-or-later" />
<link rel="manifest" href="{{ url_for("views.manifest") }}" />
<link rel="stylesheet" href="{{ url_for("static", filename="css/base.css") }}" type="text/css" referrerpolicy="no-referrer" />
{% block head %}{% endblock %}
</head>
<body>
{% block body %}{% endblock %}
<article>
<header>{% block header %}{% endblock %}</header>
<main>
{% with messages = get_flashed_messages(with_categories=True) %}
{% if messages %}
<details open>
<summary>messages from the server</summary>
{% for category, message in messages %}
<div><b>[{{ category | escape }}] {{ message | escape }}</b></div>
{% endfor %}
</details>
{% endif %}
{% endwith %}
{% block main %}{% endblock %}
</main>
<footer>
<p>meow :3</p>
<i>The <a target="_blank" href="{{ url_for('views.git') }}">source code</a> and all content, except the Nerd Hack font (see <a target="_blank" href="{{ url_for("static", filename="fonts/LICENSE") }}">Nerd Hack font license</a>), are licensed under the <a target="_blank" href="https://www.gnu.org/licenses/agpl-3.0.en.html">AGPL-3.0-or-later</a> by Ari Archer &lt;<a target="_blank" href="mailto:ari@ari.lt">ari@ari.lt</a>&gt; as a part of the <a href="{{ url_for("views.badge") }}" target="_blank">ari-web</a> project. Copyright 2020-{{ current_year }}.</i>
</footer>
</article>
</body>
</html>

136
src/templates/casey.j2 Normal file
View file

@ -0,0 +1,136 @@
{% extends "base.j2" %}
{% block title %}Index{% endblock %}
{% block description %}Dear Casey,{% endblock %}
{% block keywords %}open letter, casey{% endblock %}
{% block head %}
<link rel="stylesheet" href="{{ url_for("static", filename="fonts/Hack.css") }}" type="text/css" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="{{ url_for("static", filename="css/index.css") }}" type="text/css" referrerpolicy="no-referrer" />
<script type="text/javascript">
<!--//--><![CDATA[//><!--
/**
* @licstart The following is the entire license notice for the JavaScript
* code in this page.
*
* Copyright (C) 2024 Ari Archer
*
* The JavaScript code in this page is free software: you can redistribute
* it and/or modify it under the terms of the GNU Affero General Public License
* (AGPL) as published by the Free Software Foundation, either version 3
* of the License, or (at your option) any later version. The code is
* distributed WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the AGPL
* for more details.
*
* As additional permission under AGPL version 3 section 7, you may
* distribute non-source (e.g., minimized or compacted) forms of that code
* without the copy of the AGPL normally required by section 4, provided
* you include this license notice and a URL through which recipients can
* access the Corresponding Source.
*
* @licend The above is the entire license notice for the JavaScript code
* in this page.
*/
//--><!]]>
</script>
<script src="{{ url_for("static", filename="js/particles.js") }}" referrerpolicy="no-referrer" defer></script>
<script src="{{ url_for("static", filename="js/rc4.js") }}" referrerpolicy="no-referrer" defer></script>
{% endblock %}
{% block header %}
<h1>Dear Casey,</h1>
{% endblock %}
{% block main %}
<p>
i hope this open letter brings a smile to your face, as i
sit here, i am overwhelmed with the gratitude i feel towards
our friendship with have created over the past 5 years, you
have been there for me always, as if you were onlinne mother
and providing support for me that i cherish so deeply and am
very thankful for
</p>
<p>
our inside jokes and shared moments, experiences, etc have
truly been the highlight of my life, they are reminders of
the bond that we've created over the time we've been friends
for, they remind me of the tears and laughs we've had
together and reminds me of how much time we've spent
together,, i still remember the time we connected, purely by
chance seemingly xD, when i still used to use facebook and
my fb acc got hacked, at the time i was in some lgbt support
group and i wanted to add one person from that group, i
guess i must've mixed you up with someone from that group
and added you instead xDDD, well, little did i know that
this would blossom into a such a beautiful and meaningful
relationship xD
</p>
<p>
i remember one other thing related to facebook, when u
helped me to create a fake straight-looking facebook account
xD, because my mother kept on incisting on getting my social
media and stuff, i remember u helping me set up a password
on every app so if she tries to take my phone again and look
through it she couldn't do shit xD, you helped me to express
myself authentically without any fear of repercussions, you
have such an incredible character and a generous heart and i
dont think i will ever be able to repay for you for such
noble acts
</p>
<p>
as time passes, i realize how much you have impacted my life
and,, not only have you been an emotional pillar, but you've
also helped me understand and see the world of adulthood,
for example i remember the time when i was confused about
taxes and u explained it to me xDD, never have i thought i'd
be sitting and asking people about 'what are taxes like
actually xD', your wisdom has become invaluable to me, its
kinda sweet but bitter, bittersweet i think would b the best
word to describe it abt how i feel abt u getting older, its
nice that you're growing and developing an independent life
and going off studying in another country, but the thought
of never being able to meet you fills me with regret and
sadness, i hope i get to meet you before you move, i
remember the time when i felt bad abt meeting u on easter,
that honestly is one of my top regrets because
hjfewhewfihwiuehf xD, but i very much do cherish moments
we've spent together no matter the distance
</p>
<p>
ive recently noticed that i havent expressed my love for you
as i should have, recalling our conversations,, while i
think you understand how much i appriciate you and how much
i cherish you and all that, i think i should be more
explicit with my platonic towards you, this is why i begun
saying words 'i love you' more, as i can't show it much by
actions, i wish we lived closer to one another to see one
another more frequently, so i could express my love in other
ways, but for now i'm basically left with words, and that's
what i'm trying to do, your presence in my life is a gift
and i am eternally grateful to be a part of yours <3
</p>
<p>
thank you for being an amazing friend that you are, your
support, understanding and guidance have made a profound
impact on me,, whether we're laughing or having
heart-to-heart conversations, every moment with you is a
treasure, i am honored to call you my best friend
</p>
<p>with all my love and gratitude and everything there is,</p>
<p>ari</p>
<p>2023/12/02</p>
{% endblock %}

532
src/templates/index.j2 Normal file
View file

@ -0,0 +1,532 @@
{% extends "base.j2" %}
{% block title %}Index{% endblock %}
{% block description %}Ari-web: A personal website of a Lithuanian open source developer Ari Archer (Arija A.) who provides different free, private, and open source services for others.{% endblock %}
{% block keywords %}ari::web, services, foss services, homepage, portfolio, resume, matrix, says, https, email, guestbook{% endblock %}
{% block head %}
<link rel="stylesheet" href="{{ url_for("static", filename="fonts/Hack.css") }}" type="text/css" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="{{ url_for("static", filename="css/index.css") }}" type="text/css" referrerpolicy="no-referrer" />
<script type="text/javascript">
<!--//--><![CDATA[//><!--
/**
* @licstart The following is the entire license notice for the JavaScript
* code in this page.
*
* Copyright (C) 2024 Ari Archer
*
* The JavaScript code in this page is free software: you can redistribute
* it and/or modify it under the terms of the GNU Affero General Public License
* (AGPL) as published by the Free Software Foundation, either version 3
* of the License, or (at your option) any later version. The code is
* distributed WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the AGPL
* for more details.
*
* As additional permission under AGPL version 3 section 7, you may
* distribute non-source (e.g., minimized or compacted) forms of that code
* without the copy of the AGPL normally required by section 4, provided
* you include this license notice and a URL through which recipients can
* access the Corresponding Source.
*
* @licend The above is the entire license notice for the JavaScript code
* in this page.
*/
//--><!]]>
</script>
<script src="{{ url_for("static", filename="js/particles.js") }}" referrerpolicy="no-referrer" defer></script>
<script src="{{ url_for("static", filename="js/rc4.js") }}" referrerpolicy="no-referrer" defer></script>
{% if comment is not none %}<script async>"use strict";const s=new URLSearchParams(window.location.search),h=parseInt(s.get("gb"));if(!isNaN(h)){window.location.hash=`#gb-${h}`,s.delete("gb");let t=s.toString();"?"===t&&(t=""),window.history.replaceState({},"",`${window.location.pathname}${t}${window.location.hash}`)}</script>{% endif %}
{% endblock %}
{% block header %}
<h1>Ari.lt: Free and open source world of Ari Archer.</h1>
<nav class="mob">
<div align="center">
<details>
<summary>Navigation</summary>
<ul>
<li>Availability hours: <a href="#hours">#hours</a></li>
<li>Affiliate links: <a href="#af">#af</a></li>
<li>Pages and redirects: <a href="#pages">#pages</a></li>
<li>Links: <a href="#links">#links</a></li>
<li>Self-hosted services list: <a href="#services">#services</a></li>
<li>Guestbook: <a href="#gb">#gb</a></li>
</ul>
</details>
</div>
</nav>
{% endblock %}
{% block main %}
<div class="split">
<div>
<p>Welcome to my website, visitor <b>{{ visitor }}</b>!</p>
<blockquote>
Before I start explaining who I am, if you're here on this page because of one of the users
using ari-web services and you want to report abuse, please contact me using one of the
contacts listed on this page (such as the <a href="mailto:ari@ari.lt">ari@ari.lt</a> email).
You may also leave a comment on <a href="#gb">the guestbook</a>.
</blockquote>
<p>
My name is <b>Ari Archer</b> also known as <b>Arija A.</b>, but most commonly referred to as
<b>Ari</b>. I am a <b>{{ ari_age }} year old</b>, neurodivergent, transgender, open source developer from Lithuania who does
fun stuff in primarily <a target="_blank" rel="noopener noreferrer" href="https://en.wikipedia.org/wiki/Python_(programming_language)">Python</a> (~<b>{{ python_exp }}</b> years)
and <a target="_blank" rel="noopener noreferrer" href="https://en.wikipedia.org/wiki/C_(programming_language)">C (89, 99)</a> (~<b>{{ c_exp }}</b> years).
</p>
<p>
I've picked up programming at first in Python, writing various programs on my phone, and later on discovering a community
where I could share my code. At the time I didn't have access to a computer, so I used to play around with
basic <a target="_blank" rel="noopener noreferrer" href="https://en.wikipedia.org/wiki/JavaScript">JavaScript</a> on my local library computers.
At around 2019 I got access to a personal computer, which is where my main <a target="_blank" rel="noopener noreferrer" href="https://en.wikipedia.org/wiki/Free_and_open-source_software">FOSS</a> journey started -
exploring more technologies and understanding them more in-depth, not being limited by a locked down phone.
</p>
<p>
I hated the limiting feeling of being on <a target="_blank" rel="noopener noreferrer" href="https://en.wikipedia.org/wiki/Microsoft_Windows">Microsoft Windows</a> 10
very limiting, so soon after getting a personal computer I installed a free and open source <a target="_blank" rel="noopener noreferrer" href="https://en.wikipedia.org/wiki/Linux">Linux</a>
kernel distribution - and I've never went back to Windows ever since then. <i>Democracy, freedom, shareability</i>
and <i>customization</i> ("hackability") are huge values for me.
</p>
<p>
Technology is a big part of my life, and I am way past the stage where I find <i>just</i> technology fascinating -
I find various problems and their optimal solutions very interesting and I like to come up with my own - even if
it's "<a target="_blank" rel="noopener noreferrer" href="https://en.wikipedia.org/wiki/Reinventing_the_wheel">reinventing the wheel</a>" or "impractical" -
I like to dig deep into it and understand how it works at its core, rather than relying on high-level features of an
abstraction stack. I was always a person like this, not specifically in technology - I was always the nerdy science kid -
but everywhere.
</p>
<p>
Even though I'd consider technology, problem solving, and computer programming a big part of my life, I
also enjoy a couple of more things. Such as:
</p>
<ul>
<li>Exploring various social issues (wars, injustice, freedom of people, abuse, discrimination, environmental problems, ...)</li>
<li>Cooking - I really enjoy putting together a healthy, vegan dish, which's recipe I can share with others.</li>
<li>And also <a href="https://blog.ari.lt/">blogging</a>, as archiving things and <i>thoughts</i> has been a huge part of my life since forever.</li>
</ul>
<p>
But generally, I am pretty much open to try <i>everything at least once</i> if I have the time and energy to do so.
</p>
<p>
People often describe my personality as kind, accepting, open-minded, and nonjudgmental due to the way I interact
with the world and people - I am always accepting of people no matter what they've gone through or are
going through. They also see my logical side and describe me as <i>intelligent, analytical</i>, and <i>creative</i>
because of how I tend to approach various logical problems. Though, this side of me can sometimes be
overpowered by my emotional side if I lose control of my emotions.
</p>
</div>
<div>
<div align="center">
<img src="{{ url_for("static", filename="svg/ari.svg") }}" alt="A illustration (sketch) of Ari Archer with medium length red-black split dyed hair" width="196" />
</div>
<ul>
<li>Name: Arija A. (Ari Archer)</li>
<li>Pronouns: She/Her</li>
<li>Age: {{ ari_age }} years old.</li>
<li>Education: High school (ongoing).</li>
<li>Country: Lithuania (Lietuva).</li>
<li>Languages: Lithuanian (native, {{ ari_age }}y), English (B2, {{ ari_age - 8 }}y), German (basic, 4y - not taking it since age 16 (11th grade), rarely using it casually).</li>
<li>Programming Experience: {{ programming_exp }} years ({{python_exp }}y in Python, {{ c_exp }}y in C).</li>
<li>Skills: Backend web development in Python using Flask, basic front-end development (HTML, JS, CSS, basic SCSS) and SEO (search engine optimization), software and library development in C and Python, Linux and intermediate Linux systems administration, technical documentation and specifications. I also possess mediocre skills in C++ and JavaScript, as well as the Git VCS. I believe that I have a grasp of security principles, databases, and basic containerization and virtualization.</li>
<li>Learning: Better communication skills, self-improvement, working on mental health and emotional grounding.</li>
<li>Personality: Recognised as kind, open-minded, intelligent, analytical, non-Judgmental, chill, anxious, generous, introverted, independent, caring, helpful, and supportive by people in my life.</li>
<li>
Contacts
<ul>
<li>Git forge: <a target="_blank" rel="noopener noreferrer" href="https://git.ari.lt/ari">ari@git.ari.lt</a></li>
<li>GitHub: <a target="_blank" rel="noopener noreferrer" href="https://github.com/TruncatedDinoSour">TruncatedDinoSour</a></li>
<li>GitHub organization: <a target="_blank" rel="noopener noreferrer" href="https://github.com/ari-lt">ari-lt</a> (<a href="mailto:org@ari.lt">org@ari.lt</a>)</li>
<li>Git forge organization: <a target="_blank" rel="noopener noreferrer" href="https://git.ari.lt/ari.lt">ari.lt@git.ari.lt</a> (<a href="mailto:org@ari.lt">org@ari.lt</a>)</li>
<li>Matrix: <a target="_blank" rel="noopener noreferrer" href="https://matrix.to/#/@ari:ari.lt">@ari:ari.lt</a></li>
<li>XMPP/Jabber: <a target="_blank" rel="noopener noreferrer" href="xmpp:ari@ari.lt">ari@ari.lt</a></li>
<li>Fediverse: <a target="_blank" rel="noopener noreferrer" href="https://ak.ari.lt/ari">@ari@ak.ari.lt</a></li>
<li>E-Mail: <a href="mailto:ari@ari.lt">ari@ari.lt</a> (OpenPGP: <a target="_blank" rel="noopener noreferrer" href="{{ url_for("views.pgp") }}">4FAD63E936B305906A6C4894A50D5B4B599AF8A2</a>)</li>
<li>Gravatar: <a target="_blank" rel="noopener noreferrer" href="https://gravatar.com/arijaa">arijaa</a></li>
</ul>
</li>
</ul>
<blockquote>
"Talk is cheap. Show me the code."
</blockquote>
<pre> - Linus Torvalds, creator of Linux</pre>
</div>
</div>
<p>
This is a brief description of me as a person, I probably cannot fit all of it in a single page. I do hope that
this is a good introduction to what I do, what skills I posses.
</p>
<div align="center" id="status">
<div><b>*** Current status ***</b></div>
<br />
<div>{{ status["status"] }}</div>
<br />
<div>Last updated: <b>{{ status["last_updated"] }}</b></div>
</div>
<h2 id="hours"><a href="#hours">#</a> Availability hours</h2>
<p>
If you are contacting me, I am the most available during these times
due to education and personal time management. You can expect
an average response time of 1-4 hours (usually):
</p>
<div class="table">
<table>
<tr>
<th>Time</th>
<th>Availability</th>
</tr>
<tr>
<td>Working Days (Monday to Friday)</td>
<td>12:00 UTC to 20:00 UTC (8 hours)</td>
</tr>
<tr>
<td>Saturdays</td>
<td>10:00 UTC to 16:00 UTC (6 hours)</td>
</tr>
<tr>
<td>Sundays</td>
<td>15:00 UTC to 19:00 UTC (4 hours)</td>
</tr>
</table>
</div>
<p>
I'd appreciate anyone contacting me about serious things to respect my schedule and understand
that this is not the only thing I do, therefore, delays in response times are expected :)
</p>
<h2 id="af"><a href="#af">#</a> Affiliate links</h2>
<p>
If you want to support me as well as possibly getting discounts feel free to use these links!
</p>
<ul>
<li><a href="https://hostinger.com/" target="_blank" rel="noopener noreferrer">Hostinger</a> (20% off for you, I get 20% commission, VPS/web hosting only): <a target="_blank" rel="noopener noreferrer" href="https://hostinger.lt?REFERRALCODE=1ARIJA45">https://hostinger.lt?REFERRALCODE=1ARIJA45</a> (use code <code>1ARIJA45</code>)</li>
<li><a href="https://hosthatch.com/" target="_blank" rel="noopener noreferrer">HostHatch</a> (I get a small comission and you can support me this way): <a target="_blank" rel="noopener noreferrer" href="https://cloud.hosthatch.com/a/4328">https://cloud.hosthatch.com/a/4328</a></li>
</ul>
<h2 id="pages"><a href="#pages">#</a> Pages and redirects</h2>
<div class="split esplit">
<div>
<ul>
<li><a href="/">The home page of Ari.lt</a></li>
<li><a href="{{ url_for("views.canary") }}">Warrant canary of Ari.lt</a></li>
<li><a href="{{ url_for("views.casey") }}">Open letter to my best friend, Casey</a></li>
<li><a target="_blank" rel="noopener noreferrer" href="{{ url_for("views.mp") }}">Music playlist (YouTube)</a></li>
<li><a target="_blank" rel="noopener noreferrer" href="{{ url_for("views.dotfiles") }}">My dotfiles (redirect)</a></li>
<li><a target="_blank" rel="noopener noreferrer" href="{{ url_for("views.gh") }}">My main Git account (redirect)</a></li>
<li><a target="_blank" rel="noopener noreferrer" href="{{ url_for("views.lh") }}">Main Ari.lt organization (redirect)</a></li>
<li><a href="{{ url_for("views.legal" ) }}">Legal framework of ari.lt</a></li>
</ul>
</div>
<div>
<p>
Ari.lt includes multiple pages and redirects which include various information. This is a manually collected list
of some important pages. If you want a <i>full</i> list of all pages see the <a href="/sitemap.xml">sitemap.xml</a>
which has all possible pages on this site in an XML format - mainly used by indexers.
</p>
<p>
Ari.lt is still in the middle of migration to full-featured self-hosting, so some stuff might break
or change with time, although I try to keep backwards compatibility possible.
</p>
</div>
</div>
<h2 id="links"><a href="#links">#</a> Links</h2>
<p>
Many of my links, social media, etc. can be found at:
</p>
<div class="mob">
<h3>Contacts</h3>
<ul>
<li>Git: <a target="_blank" rel="noopener noreferrer" href="https://git.ari.lt/ari">ari@git.ari.lt</a></li>
<li>GitHub: <a target="_blank" rel="noopener noreferrer" href="https://github.com/TruncatedDinoSour">TruncatedDinoSour</a></li>
<li>GitHub organization: <a target="_blank" rel="noopener noreferrer" href="https://github.com/ari-lt">ari-lt</a> (<a href="mailto:org@ari.lt">org@ari.lt</a>)</li>
<li>Git forge organization: <a target="_blank" rel="noopener noreferrer" href="https://git.ari.lt/ari.lt">ari.lt@git.ari.lt</a> (<a href="mailto:org@ari.lt">org@ari.lt</a>)</li>
<li>Matrix: <a target="_blank" rel="noopener noreferrer" href="https://matrix.to/#/@ari:ari.lt">@ari:ari.lt</a></li>
<li>XMPP/Jabber: <a target="_blank" rel="noopener noreferrer" href="xmpp:ari@ari.lt">ari@ari.lt</a></li>
<li>Fediverse: <a target="_blank" rel="noopener noreferrer" href="https://ak.ari.lt/ari">@ari@ak.ari.lt</a></li>
<li>E-Mail: <a href="mailto:ari@ari.lt">ari@ari.lt</a> (OpenPGP: <a target="_blank" rel="noopener noreferrer" href="{{ url_for("views.pgp") }}">4FAD63E936B305906A6C4894A50D5B4B599AF8A2</a>)</li>
<li>Gravatar: <a target="_blank" rel="noopener noreferrer" href="https://gravatar.com/arijaa">arijaa</a></li>
</ul>
</div>
<h3>Status</h3>
<ul>
<li>
Status: <img src="https://status.ari.lt/api/badge/11/status" loading="lazy" alt="Status of ARI.LT OpenBadge" /> (<a href="https://status.ari.lt/" title="Visit status.ari.lt" aria-label="Visit status.ari.lt" rel="noopener noreferrer" target="_blank">https://status.ari.lt/</a> hosted by <a href="https://fsky.io/" title="Visit FSKY" aria-label="Visit FSKY" rel="noopener noreferrer" target="_blank">FSKY</a>)
</li>
</ul>
<h3>Webrings</h3>
<ul>
<li>Bucket webring (<a target="_blank" href="https://webring.bucketfish.me/" rel="noopener noreferrer">https://webring.bucketfish.me/</a>): <a target="_blank" href="https://webring.bucketfish.me/redirect.html?to=prev&name=ari%20dot%20lt" rel="noopener noreferrer">previous</a> &lt;= <a target="_blank" href="https://webring.bucketfish.me/redirect.html?to=random&name=ari%20dot%20lt" rel="noopener noreferrer">random</a> =&gt; <a target="_blank" href="https://webring.bucketfish.me/redirect.html?to=next&name=ari%20dot%20lt" rel="noopener noreferrer">next</a></li>
<li>Retronaut webring (<a target="_blank" href="https://webring.dinhe.net/" rel="noopener noreferrer">https://webring.dinhe.net/</a>): <a target="_blank" href="https://webring.dinhe.net/prev/https://ari.lt/" rel="noopener noreferrer">previous</a> &lt;= <a target="_blank" href="https://webring.dinhe.net/random" rel="noopener noreferrer">random</a> =&gt; <a target="_blank" href="https://webring.dinhe.net/next/https://ari.lt/" rel="noopener noreferrer">next</a></li>
<li>Fediring (<a target="_blank" href="https://fediring.net/" rel="noopener noreferrer">https://fediring.net/</a>): <a target="_blank" href="https://fediring.net/previous?host=ari.lt" rel="noopener noreferrer">previous</a> &lt;= <a target="_blank" href="https://fediring.net/random?host=ari.lt" rel="noopener noreferrer">random</a> =&gt; <a target="_blank" href="https://fediring.net/next?host=ari.lt" rel="noopener noreferrer">next</a></li>
</ul>
<h3>Badges</h3>
<p>
Click on any of the badges to visit the website associated with it :)
</p>
<ul>
<li>
Normal: <a href="https://ari.lt/" title="ari-web badge" aria-label="Visit ari-web" rel="noopener noreferrer"> <img src="{{ url_for("views.badge") }}" loading="lazy" alt="ari-web badge" height="31" width="88" role="presentation" /> </a>
<ul>
<li>
<b>Embed:</b> <textarea style="width:50%" readonly>&lt;a href="https://ari.lt/" title="ari-web badge" aria-label="Visit ari-web" rel="noopener noreferrer"&gt; &lt;img src="https://ari.lt{{ url_for("views.badge") }}" loading="lazy" alt="ari-web badge" height="31" width="88" role="presentation" /&gt; &lt;/a&gt;</textarea>
</li>
</ul>
</li>
<li>
Yellow: <a href="https://ari.lt/" title="ari-web badge" aria-label="Visit ari-web" rel="noopener noreferrer"> <img src="{{ url_for("views.badge_yellow") }}" loading="lazy" alt="ari-web badge" height="31" width="88" role="presentation" /> </a> (this badge was designed by <a href="https://tobskep.com/?from=ari.lt">Tobskep (tobskep.net)</a>)
<ul>
<li>
<b>Embed:</b> <textarea style="width:50%" readonly>&lt;a href="https://ari.lt/" title="ari-web badge" aria-label="Visit ari-web" rel="noopener noreferrer"&gt; &lt;img src="https://ari.lt{{ url_for("views.badge_yellow") }}" loading="lazy" alt="ari-web badge" height="31" width="88" role="presentation" /&gt; &lt;/a&gt;</textarea>
</li>
</ul>
</li>
<li>
Text: <a href="{{ url_for("views.badge_txt") }}">badge.txt</a>.
</li>
<li>
QR code (thanks to <a href="https://research.swtch.com/qr/draw/" rel="noopener noreferrer" target="_blank">https://research.swtch.com/qr/draw/</a>):
<div style="margin-top:1em">
<a href="{{ url_for("static", filename="qr.png") }}"> <img src="{{ url_for("static", filename="qr.png") }}" loading="lazy" alt="QR code leading to https://ari.lt/" height="192" width="192" /> </a>
</div>
</li>
</ul>
<p>And also, cool people:</p>
<ul>
<li>LDA: <a href="https://freetards.xyz/?from=ari.lt" title="LDA's badge" aria-label="Visit LDA's website" rel="noopener noreferrer"> <img src="https://freetards.xyz/88x31.png" loading="lazy" alt="Freetards badge" height="31" width="88" role="presentation" /> </a></li>
<li>DOSKEL: <a href="https://doskel.net/?from=ari.lt" title="DOSKEL's badge" aria-label="Visit DOSKEL's website" rel="noopener noreferrer"> <img src="https://doskel.net/button.png" loading="lazy" alt="Doskel.net's badge" height="31" width="88" role="presentation" /> </a></li>
<li>Grybas: <a href="https://xdd.lt/?from=ari.lt" title="Grybas' badge" aria-label="Visit Grybas' website" rel="noopener noreferrer"> <img src="https://xdd.lt/gryb4s_ari.png" loading="lazy" alt="xdd.lt badge" height="31" width="88" role="presentation" /> </a></li>
<li>T1nklas: <a href="https://t1nklas.lt/?from=ari.lt" title="T1nklas' badge" aria-label="Visit T1nklas' website" rel="noopener noreferrer"> <img src="https://t1nklas.lt/images/badge.png" loading="lazy" alt="T1nklas.lt's badge" height="31" width="88" role="presentation" /> </a></li>
<li>Mcneb10: <a href="https://themcgovern.net/?from=ari.lt" title="Mcneb10's badge" aria-label="Visit Mcneb10's website" rel="noopener noreferrer"> <img src="https://themcgovern.net/badges/mcneb10_ymo.gif" loading="lazy" alt="themcgovern.net's badge" height="31" width="88" role="presentation" /> </a></li>
<li>Xameren: <a href="https://xameren.fsky.io/?from=ari.lt" title="Xameren's badge" aria-label="Visit Xameren's website" rel="noopener noreferrer"> <img src="https://xameren.fsky.io/assets/88x31/xameren.png" loading="lazy" alt="xameren,fsky.io's badge" height="31" width="88" role="presentation" /> </a></li>
<li>Georgemoody: <a href="https://tilde.town/~georgemoody/?from=ari.lt" title="Georgemoody's badge" aria-label="Visit georgemoody's website" rel="noopener noreferrer"> <img src="https://tilde.town/~georgemoody/files/button.png" loading="lazy" alt="georgemoody's badge" height="31" width="88" role="presentation" /> </a></li>
</ul>
<h3>Activity</h3>
<ul>
<li>Source code of the website: <a target="_blank" rel="noopener noreferrer" href="{{ url_for("views.git") }}">{{ url_for("views.git") }}</a></li>
<li>Blog: <a target="_blank" rel="noopener noreferrer" href="https://blog.ari.lt/">blog.ari.lt</a></li>
</ul>
<h3>Projects</h3>
<ul>
<li>Ari.lt - an open source website by ari archer: <a target="_blank" rel="noopener noreferrer" href="https://github.com/ari-lt">ari-lt GitHub organization</a></li>
<li>Baz - a fast, easy, simple and lightweight plugin manager for GNU bash: <a target="_blank" rel="noopener noreferrer" href="https://github.com/TruncatedDinoSour/baz">TruncatedDinoSour/baz</a></li>
<li>Kos - A simple SUID tool written in C++: <a target="_blank" rel="noopener noreferrer" href="https://github.com/TruncatedDinoSour/kos">TruncatedDinoSour/kos</a></li>
<li>Armour - password securing, management and generation library with a custom database format: <a target="_blank" rel="noopener noreferrer" href="https://github.com/TruncatedDinoSour/armour">TruncatedDinoSour/armour</a></li>
<li>Fa - stack based, reverse polish notation low-level programming language that transpiles down to assembly: <a target="_blank" rel="noopener noreferrer" href="https://github.com/TruncatedDinoSour/fa">TruncatedDinoSour/fa</a></li>
</ul>
<p>
Note that these are not the only projects I've ever worked on. These are a few
highlights that I find neat personally for differnt reasons. There don't showcase all
of my abilities, although these are practical examples of things I work on
sometimes.
</p>
<h3>Support</h3>
<p>See <a href="{{ url_for("views.thanks") }}">{{ url_for("views.thanks") | escape }}</a> for a list of all donations!</p>
<p>You can also donate here (Monero I tend to hold on to for now. Litecoin, though, I can use through BitPay to pay for servers!):</p>
<ul>
<li>
Monero (XMR) wallet address: <a href="monero:451VZy8FPDXCVvKWkq5cby3V24ApLnjaTdwDgKG11uqbUJYjxQWZVKiiefi4HvFd7haeUtGFRBaxgKNTr3vR78pkMzgJaAZ?recipient_name=Ari%20Archer&tx_description=Donate%20to%20ari-web">451VZy8FPDXCVvKWkq5cby3V24ApLnjaTdwDgKG11uqbUJYjxQWZVKiiefi4HvFd7haeUtGFRBaxgKNTr3vR78pkMzgJaAZ</a> (<a target="_blank" rel="noopener noreferrer" href="{{ url_for("views.xmr") }}">{{ url_for("views.xmr") | escape }} (AnonPay)</a>, <a target="_blank" rel="noopener noreferrer" href="{{ url_for("views.oxmr") }}">{{ url_for("views.oxmr") | escape }} (AnonPay onion)</a>) (OpenAlias: <code>xmr@ari.lt</code>)
<div style="margin-top:1em">
<a href="{{ url_for("static", filename="crypto/monero.png") }}"> <img src="{{ url_for("static", filename="crypto/monero.png") }}" loading="lazy" alt="A QR code to a Monero Cryptowallet address." height="192" width="192" /> </a>
</div>
</li>
<li>
Litecoin (LTC) wallet address: <a href="litecoin:ltc1qfmx6hvyfrphsp0uu29fjwzrqdpt8vse8p5xxh3?message=Donate%20to%20ari-web&time=1731763810">ltc1qfmx6hvyfrphsp0uu29fjwzrqdpt8vse8p5xxh3</a> (<a target="_blank" rel="noopener noreferrer" href="{{ url_for("views.ltc") }}">{{ url_for("views.ltc") | escape }} (AnonPay)</a>, <a target="_blank" rel="noopener noreferrer" href="{{ url_for("views.oltc") }}">{{ url_for("views.oltc") | escape }} (AnonPay onion)</a>) (OpenAlias: <code>ltc@ari.lt</code>)
<div style="margin-top:1em">
<a href="{{ url_for("static", filename="crypto/litecoin.png") }}"> <img src="{{ url_for("static", filename="crypto/litecoin.png") }}" loading="lazy" alt="A QR code to a Litecoin Cryptowallet address." height="192" width="192" /> </a>
</div>
</li>
</ul>
<h2 id="services"><a href="#services">#</a> Services</h2>
<p>
This table lists all self-hosted software (semi-)open for the public that people are welcome to use.
</p>
<div class="table">
<table>
<tr>
<th>Service</th>
<th>Description</th>
<th>Link</th>
</tr>
<tr>
<td>Matrix homeserver</td>
<td>Semi-open registration, contact <a href="mailto:register@ari.lt">register@ari.lt</a> for an account.</td>
<td><a href="https://matrix.ari.lt/" target="_blank" rel="noopener noreferrer">matrix.ari.lt</a></td>
</tr>
<tr>
<td>XMPP/Jabber server</td>
<td>Semi-open registration, contact <a href="mailto:register@ari.lt">register@ari.lt</a> for an account.</td>
<td><a href="{{ url_for("views.lh", _="xmpp") }}" target="_blank" rel="noopener noreferrer">lh/xmpp</a></td>
</tr>
<tr>
<td>Forgejo git forge instance</td>
<td>Open registration.</td>
<td><a href="https://git.ari.lt/" target="_blank" rel="noopener noreferrer">git.ari.lt</a></td>
</tr>
<tr>
<td>Email server hosting <a href="https://mailcow.email/" target="_blank" rel="noopener noreferrer">Mailcow</a></td>
<td>Contact <a href="mailto:domains@ari.lt">domains@ari.lt</a> for custom domains (aggressive policy).</td>
<td><a href="https://mail.ari.lt/" target="_blank" rel="noopener noreferrer">mail.ari.lt</a> (<a href="https://mail.ari.lt/signup" target="_blank" rel="noopener noreferrer">register here</a>) Hosted domains: <b>ari.lt, t1nklas.lt, lenvx.dev, cubiq.dev</b></td>
</tr>
<tr>
<td>Roundcube webmail</td>
<td>Only for semi-managed Ari-web email users</td>
<td><a href="https://rc.ari.lt/" target="_blank" rel="noopener noreferrer">rc.ari.lt</a></td>
</tr>
<tr>
<td>Akkoma fediverse instance</td>
<td>Open registration.</td>
<td><a href="https://ak.ari.lt/" target="_blank" rel="noopener noreferrer">ak.ari.lt</a></td>
</tr>
<tr>
<td>SchildiChat &amp; Cinny Matrix web clients</td>
<td>Web clients for Matrix.</td>
<td><a href="https://schildi.ari.lt/" target="_blank" rel="noopener noreferrer">schildi.ari.lt</a> &amp; <a href="https://cinny.ari.lt/" target="_blank" rel="noopener noreferrer">cinny.ari.lt</a></td>
</tr>
<tr>
<td>PrivateBin instance</td>
<td>Private public encrypted pastebin.</td>
<td><a href="https://pb.ari.lt/" target="_blank" rel="noopener noreferrer">pb.ari.lt</a></td>
</tr>
<tr>
<td>Private PocketBase instance</td>
<td>Private database storage for <a href="https://github.com/TheCubiq/" target="_blank" rel="noopener noreferrer">Github: TheCubiq</a></td>
<td><a href="https://db.cubiq.dev/" target="_blank" rel="noopener noreferrer">db.cubiq.dev</a></td>
</tr>
<tr>
<td>Forgejo instance for <a href="https://kappach.at/" target="_blank" rel="noopener noreferrer">kappach.at</a></td>
<td>Git forge instance of KappaChat - An extensible Matrix client written in C.</td>
<td><a href="https://git.kappach.at/" target="_blank" rel="noopener noreferrer">git.kappach.at</a></td>
</tr>
</table>
</div>
<h2 id="gb"><a href="#gb">#</a> Guestbook</h2>
<p>
If you want to interact with the community feel free to leave your comments here!
You will require an email address so to prevent spam and scams, although, to protect
<i>you</i> from spam and scam emails, I have implemented measures to not store your
email address as plain text. Press 'show email' to show the email address on any given
comment.
</p>
<p>
<b>TL;DR;</b> your email is stored and can be seen publicly. <b>Please check your mailbox to confirm your email after commenting.</b>
</p>
<form method="post">
<div class="form-group">
<label for="name">Name:</label>
<input required type="text" id="name" name="name" placeholder="Cool Person" />
</div>
<div class="form-group">
<label for="website">Website (optional):</label>
<input type="url" id="website" name="website" placeholder="https://example.com/" />
</div>
<div class="form-group">
<label for="email">Email:</label>
<input required type="email" id="email" name="email" placeholder="me@example.com" />
</div>
<div class="form-group">
<label for="comment">Comment (<a href="https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet" target="_blank" rel="noopener noreferrer">markdown</a>):</label>
<textarea required type="text" id="comment" name="comment" placeholder="Hello! I like your website - &lt;https://ari.lt/&gt;."></textarea>
</div>
<div class="captcha">
<img loading="lazy" width="240" height="90" src="{{ url_for("views.captcha") }}?new" onclick="this.src=this.src+Math.floor(1000*Math.random())" alt="An image CAPTCHA" />
<i>Click the image above to reload and get a new CAPTCHA.</i>
</div>
<div class="form-group">
<label for="captcha">CAPTCHA:</label>
<input required type="text" id="code" name="code" placeholder="Enter the CAPTCHA code above." />
</div>
<div class="form-group">
<label for="agree">Email Policy Agreement:</label>
<input required type="checkbox" id="agree" name="agree" />
</div>
<button type="submit">Comment</button>
</form>
<div align="center">
<i>Report any impersonation, illegal/graphic content, and/or anything disturbing to the owner of this website: Ari Archer.</i>
</div>
<div id="comments">
{% for comment in comments %}
<div id="gb-{{ comment.id }}">
<div>
<p><a href="#gb-{{ comment.id }}">#{{ comment.id }}:</a> <span>{{ comment.name | escape }}</span> {% if comment.website %}(<a href="{{ comment.website }}" rel="noopener noreferrer" target="_blank">{{ comment.website | escape }}</a>){% endif %} &lt;<i><a href="mailto:" style="color:#aaa" onclick="this.innerText=rc4('{{ b64encode(comment.email_ct).decode() }}','{{ b64encode(comment.key).decode() }}');this.href+=this.innerText;this.onclick=null;this.style='';return!!0">show email</a></i>&gt; at <time>{{ comment.posted }} UTC</time> says...</p>
<div>{{ comment.comment | markdown }}</div>
</div>
<div class="score">
<a href="{{ url_for("views.vote", mode="up", cid=comment.id) }}"><span class="up icon"></span></a> <div style="color:{% if comment.score < 0 %}var(--red){% elif comment.score == 0 %}{% else %}var(--green){% endif %}">{% if comment.score > 0 %}+{% endif %}{{ comment.score }}</div> <a href="{{ url_for("views.vote", mode="down", cid=comment.id) }}"><span class="down icon"></span></a>
</div>
</div>
{% endfor %}
</div>
{% endblock %}

688
src/templates/legal.j2 Normal file
View file

@ -0,0 +1,688 @@
{% extends "base.j2" %}
{% block title %}Legal{% endblock %}
{% block description %}Legal information of ari-web.{% endblock %}
{% block keywords %}ari::web, services, foss services, homepage, portfolio, resume, matrix, says, https, email, guestbook, legal, privacy policy, privacy, logging, gdpr, dmca, anti-ai policies{% endblock %}
{% block head %}
<link rel="stylesheet" href="{{ url_for("static", filename="fonts/Hack.css") }}" type="text/css" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="{{ url_for("static", filename="css/index.css") }}" type="text/css" referrerpolicy="no-referrer" />
<script type="text/javascript">
<!--//--><![CDATA[//><!--
/**
* @licstart The following is the entire license notice for the JavaScript
* code in this page.
*
* Copyright (C) 2024 Ari Archer
*
* The JavaScript code in this page is free software: you can redistribute
* it and/or modify it under the terms of the GNU Affero General Public License
* (AGPL) as published by the Free Software Foundation, either version 3
* of the License, or (at your option) any later version. The code is
* distributed WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the AGPL
* for more details.
*
* As additional permission under AGPL version 3 section 7, you may
* distribute non-source (e.g., minimized or compacted) forms of that code
* without the copy of the AGPL normally required by section 4, provided
* you include this license notice and a URL through which recipients can
* access the Corresponding Source.
*
* @licend The above is the entire license notice for the JavaScript code
* in this page.
*/
//--><!]]>
</script>
<script src="{{ url_for("static", filename="js/particles.js") }}" referrerpolicy="no-referrer" defer></script>
{% endblock %}
{% block header %}
<h1>Legal information of Ari-web</h1>
{% endblock %}
{% block main %}
<p>
This is the legal information of ari-web which covers topics such as logging policy,
privacy policy, data control, data control compliance, as well as other legal aspects
when it comes to using ari-web services. By using or requesting to use any ari-web services
you agree to the legal framework outlined in this document, and agree to keep yourself updated
with or without notice.
</p>
<p>
This document serves as an agreement between you and Ari-web parties, regarding the use and management of Ari-web's services.
It outlines the expectations, responsibilities, and limitations for both parties.
</p>
<ul>
<li>Visitor: {{ visitor }}</li>
<li>Created at: 2024-11-25 (YYYY-MM-DD)</li>
<li>Last updated: 2024-11-26 (YYYY-MM-DD)</li>
<li>
OpenPGP signture of this document by the <a href="{{ url_for("views.pgp") }}">Authoritative party's OpenPGP key</a>: <a href="{{ url_for("static", filename="legal.sig") }}">legal.sig</a>
(Note: Only the text content found in <a href="{{ url_for("static", filename="legal.txt") }}">legal.txt</a> was signed. Use that text-only static copy of this document to verify the signature.)
</li>
</ul>
<h2 id="parties"><a href="#parties">#</a> Involved Parties</h2>
<p>
Ari-web, albeit mainly a single-person curated project by the authority party,
has multiple members separated into three authority layers: Authoritative Party
(the party/-ies who make and finalize decisions as well as handling most of the project),
Members (which may have the say in Authoritative Party's decisions as well as have
volunteer responsibilities on the project), and Hosters (which may use or host services
on Ari-web managed servers as per decision of the Authoritative Party).
</p>
<p>
Full list of the parties involved:
</p>
<ul>
<li>
Authoritative Party: Arija A. (Ari Archer)
<ul>
<li>Email: <a href="mailto:ari@ari.lt">ari@ari.lt</a></li>
<li>Matrix: <a href="https://matrix.to/#/@ari:ari.lt">@ari:ari.lt</a></li>
<li>XMPP/Jabber: <a href="xmpp:ari@ari.lt">ari@ari.lt</a></li>
<li>Fediverse: <a href="https://ak.ari.lt/ari">@ari@ak.ari.lt</a></li>
<li>Contact form: <a href="https://ari.lt/#gb">https://ari.lt/#gb</a></li>
<li>OpenPGP key ID: <a href="https://ari.lt/4FAD63E936B305906A6C4894A50D5B4B599AF8A2.asc">4FAD63E936B305906A6C4894A50D5B4B599AF8A2</a></li>
</ul>
</li>
<li>
Ari-web Members
<ul>
<li>
Zayd (administrates and moderates Akkoma)
<ul>
<li>IRC: zayd on libera.chat</li>
<li>Session (not checked often): 05d790add6647a049f58ce81c80aacc476859880af911cad105cf34fb8757b8872</li>
<li>Signal: <a href="https://signal.me/#eu/CDgDVDNMuKpx2BxAwHIcMq2iR3G-gw2XbKOOMm5BAg4XnhVXqHhKtJPvBXCDpwnu">https://signal.me/#eu/CDgDVDNMuKpx2BxAwHIcMq2iR3G-gw2XbKOOMm5BAg4XnhVXqHhKtJPvBXCDpwnu</a></li>
<li>Matrix: <a href="https://matrix.to/#/@zayd:imagisphe.re">@zayd:imagisphe.re</a></li>
<li>XMPP/Jabber: <a href="xmpp:zayd@telepath.im">zayd@telepath.im</a></li>
<li>Telegram (avoid unless needed): <a href="https://t.me/nsa_employee">@nsa_employee</a></li>
<li>Website: <a href="https://zayd.fsky.io/">https://zayd.fsky.io/</a></li>
</ul>
</li>
<li>
Joseph Winkie (A.K.A. jjj333_p) (moderates parts of Matrix, helps to collect spam for Ari-web email spam protection, moderates XMPP)
<ul>
<li>Signal: <a href="https://signal.me/#eu/r55YrtN-TA9jTN90X9S0uxwAG7h1gi9m6qnwFQfyy4klBJaNwMZMI6wNBqUHsbWq">@jjj333_p.69</a></li>
<li>Telegram: <a href="https://t.me/jjj333_p_1325">@jjj333_p_1325</a></li>
<li>Matrix: @jjj333:pain.agency, @jjj333_p_1325:envs.net, @jjj333_p_1325:matrix.org, and more alternative accounts on <a href="https://pain.agency/">their website</a></li>
<li>Phone: +1 (740) 481 1253</li>
<li>XMPP: <a href="xmpp:jjj333@pain.agency">jjj333@pain.agency</a></li>
<li>Snapchat: <a href="https://t.snapchat.com/nmgUTzne">@jjj333_p</a></li>
<li>Email: <a href="mailto:jjj333.p.1325@gmail.com">jjj333.p.1325@gmail.com</a></li>
<li>Fediverse: <a href="https://ak.ari.lt/jjj333_p">@jjj333_p@ak.ari.lt</a></li>
<li>Twitter/X: <a href="https://twitter.com/Jjj333P">@Jjj333P</a></li>
<li>Website: <a href="https://pain.agency/">https://pain.agency/</a></li>
</ul>
</li>
<li>
LDA (moderates parts of Matrix)
<ul>
<li>Matrix: @lda:a.freetards.xyz, @fourier:ari.lt</li>
<li>Discord (avoid): ldasux</li>
<li>Fediverse: <a href="https://masto.doskel.net/@lda">@lda@masto.doskel.net</a></li>
<li>XMPP: lda["at&amp;t" without the "&amp;t"]freetards.xyz</li>
<li>Website: <a href="https://freetards.xyz/">https://freetards.xyz/</a></li>
</ul>
</li>
<li>
Morguldir (moderates parts of Matrix)
<ul>
<li>Matrix: @morguldir:sulian.eu, @morguwuldir:uwu.sulian.eu</li>
<li>Website: <a href="https://sulian.eu/">https://sulian.eu/</a></li>
</ul>
</li>
</ul>
</li>
<li>
Ari-web Hosters
<ul>
<li>
Alyssa/T1nklas/Al (hosted/semi-managed email Hoster)
<ul>
<li>Email: <a href="mailto:alyssa@t1nklas.lt">alyssa@t1nklas.lt</a></li>
<li>Fediverse: <a href="https://crumb.lt/lyra">@lyra@crumb.lt</a></li>
<li>Website: <a href="https://t1nklas.lt/">https://t1nklas.lt/</a></li>
</ul>
</li>
<li>
Lenvx (hosted/semi-managed email Hoster)
<ul>
<li>Email: <a href="mailto:hi@lenvx.dev">hi@lenvx.dev</a></li>
<li>Fediverse (inactive): <a href="https://ak.ari.lt/lonely">@lonely@ak.ari.lt</a></li>
<li>Website: <a href="https://lenvx.dev/">https://lenvx.dev/</a></li>
</ul>
</li>
<li>
Cubiq (Managed db.cubiq.dev Hoster)
<ul>
<li>Twitter/X: <a href="https://twitter.com/CubiqNation">@CubiqNation</a></li>
<li>Instagram: <a href="https://www.instagram.com/tennajivniblazenztgm/">@tennajivniblazenztgm</a></li>
<li>LinkedIn: <a href="https://www.linkedin.com/in/jakub-lajsek/">@jakub-lajsek</a></li>
<li>Email: <a href="mailto:jlajsek@gmail.com">jlajsek@gmail.com</a></li>
<li>Website: <a href="https://cubiq.dev/">https://cubiq.dev/</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<p>
Collectively, we are called <b>Ari-web</b>. You are an outside party using our free (libre and gratis) and open source services.
<p>
<h2 id="liability"><a href="#liability">#</a> Liability Disclaimer</h2>
<p>
Ari-web disclaims all liability for any damages, data loss, dissatisfaction, or any other legal liability.
You, as an individual user, are solely responsible for your actions, their consequences, and protecting yourself
as well as your privacy and security.
</p>
<p>
In no event shall ari-web be liable for any indirect, special, incidental, or consequential damages related to your
use of its services.
</p>
<h2 id="privacy"><a href="#privacy">#</a> Privacy and Data Protection</h2>
<p>
Ari-web will make reasonable efforts to protect your privacy unless circumstances call for access termination,
transfer, or limitation with or without notice, such as in cases of legal compliance or suspected misuse of services.
Ari-web reserves the right to manage your access at its discretion.
</p>
<h2 id="modification"><a href="#privacy">#</a> Modifications and Exceptions</h2>
<p>
Ari-web reserves the right to modify these terms at any time without prior notice.
Exceptions to these terms may be granted by the Authoritative party in writing with a digital signature,
at their discretion.
</p>
<h2 id="servers"><a href="#servers">#</a> Servers</h2>
<ul>
<li>
<ul>
Processing server 0 (mail.ari.lt)
<ul>
<li>IPv4: 153.92.126.2</li>
<li>IPv6: 2a0e:dc0:2:11f1::/64 (Primary: 2a0e:dc0:2:11f1::1)</li>
<li>Location: Stockholm, Sweden</li>
<li>ISP: HostHatch</li>
<li>Hardware: 4 AMD EPYC cores (2 dedicated, 2 fair-shared), 16 GB of DDR4 RAM, 75 GB of NVMe storage, 4 TB of network bandwidth</li>
<li>Purpose: Processing of all requests, traffic, and hosting as well as processing of data and services.</li>
<li>Access: Only explicitly allowed traffic is allowed, exposed traffic is rate limited and sometimes strongly authenticated where needed.</li>
</ul>
</ul>
</li>
<li>
<ul>
Storage server 0 (cdn.ari.lt)
<ul>
<li>IPv4: 176.126.70.97</li>
<li>Location: Stockholm, Sweden</li>
<li>ISP: HostHatch</li>
<li>Hardware: 1 vCPU core, 1024 MB of RAM, 1000 GB of HDD storage + 20 GB NVMe storage, 2500 GB of network bandwidth.</li>
<li>Purpose: Storing data</li>
<li>Access: Cut off from the rest of the internet except rate limited and strongly autheticated port 22 traffic for SSH.</li>
</ul>
</ul>
</li>
</ul>
<h2 id="transparency"><a href="#transparency">#</a> Transparency</h2>
<p>
Ari-web is committed to providing the utmost transparency in its operations and services wherever possible.
This commitment includes, but is not limited to, clear communication regarding the use of data, service functionality, and
any changes to terms or policies. While Ari-web strives to maintain this level of transparency,
it acknowledges that certain circumstances may limit the extent of disclosure. Users are encouraged to reach out with any
questions or concerns regarding transparency in the services provided. Ari-web will do their best to notify of changes
of ToS, but it is your responsibility to keep up with the changes.
</p>
<h2 id="services"><a href="#services">#</a> Services</h2>
<p>
This table lists all self-hosted software (semi-)open for the public that people are welcome to use.
</p>
<div class="table">
<table>
<tr>
<th>Service</th>
<th>Description</th>
<th>Link</th>
</tr>
<tr>
<td>Matrix homeserver</td>
<td>Semi-open registration, contact <a href="mailto:register@ari.lt">register@ari.lt</a> for an account.</td>
<td><a href="https://matrix.ari.lt/" target="_blank" rel="noopener noreferrer">matrix.ari.lt</a></td>
</tr>
<tr>
<td>XMPP/Jabber server</td>
<td>Semi-open registration, contact <a href="mailto:register@ari.lt">register@ari.lt</a> for an account.</td>
<td><a href="{{ url_for("views.lh", _="xmpp") }}" target="_blank" rel="noopener noreferrer">lh/xmpp</a></td>
</tr>
<tr>
<td>Forgejo git forge instance</td>
<td>Open registration.</td>
<td><a href="https://git.ari.lt/" target="_blank" rel="noopener noreferrer">git.ari.lt</a></td>
</tr>
<tr>
<td>Email server hosting <a href="https://mailcow.email/" target="_blank" rel="noopener noreferrer">Mailcow</a></td>
<td>Contact <a href="mailto:domains@ari.lt">domains@ari.lt</a> for custom domains (aggressive policy).</td>
<td><a href="https://mail.ari.lt/" target="_blank" rel="noopener noreferrer">mail.ari.lt</a> (<a href="https://mail.ari.lt/signup" target="_blank" rel="noopener noreferrer">register here</a>) Hosted domains: <b>ari.lt, t1nklas.lt, lenvx.dev, cubiq.dev</b></td>
</tr>
<tr>
<td>Roundcube webmail</td>
<td>Only for semi-managed Ari-web email users</td>
<td><a href="https://rc.ari.lt/" target="_blank" rel="noopener noreferrer">rc.ari.lt</a></td>
</tr>
<tr>
<td>Akkoma fediverse instance</td>
<td>Open registration.</td>
<td><a href="https://ak.ari.lt/" target="_blank" rel="noopener noreferrer">ak.ari.lt</a></td>
</tr>
<tr>
<td>SchildiChat &amp; Cinny Matrix web clients</td>
<td>Web clients for Matrix.</td>
<td><a href="https://schildi.ari.lt/" target="_blank" rel="noopener noreferrer">schildi.ari.lt</a> &amp; <a href="https://cinny.ari.lt/" target="_blank" rel="noopener noreferrer">cinny.ari.lt</a></td>
</tr>
<tr>
<td>PrivateBin instance</td>
<td>Private public encrypted pastebin.</td>
<td><a href="https://pb.ari.lt/" target="_blank" rel="noopener noreferrer">pb.ari.lt</a></td>
</tr>
<tr>
<td>Private PocketBase instance</td>
<td>Private database storage for <a href="https://github.com/TheCubiq/" target="_blank" rel="noopener noreferrer">Github: TheCubiq</a></td>
<td><a href="https://db.cubiq.dev/" target="_blank" rel="noopener noreferrer">db.cubiq.dev</a></td>
</tr>
<tr>
<td>Forgejo instance for <a href="https://kappach.at/" target="_blank" rel="noopener noreferrer">kappach.at</a></td>
<td>Git forge instance of KappaChat - An extensible Matrix client written in C.</td>
<td><a href="https://git.kappach.at/" target="_blank" rel="noopener noreferrer">git.kappach.at</a></td>
</tr>
</table>
</div>
<h2 id="community"><a href="#community">#</a> Community standards</h2>
<ol>
<li>Abide by International, United States of America, Lithuanian, and Swedish Laws</li>
<li>Maintain a Healthy Environment</li>
<li>Uphold Human Decency. This includes:
<ul>
<li>Tolerance.</li>
<li>Ensuring non-discrimination. This covers racism, homophobia, transphobia, sexism, xenophobia, fatphobia, and other negative attitudes.</li>
<li>Avoiding the spread of misinformation and disinformation.</li>
<li>Being responsible and accountable for your actions.</li>
<li>Prohibit the spread of Child Sexual Abuse Material (CSAM), which includes forms such as Lolicon and Shotacon. Additionally, avoid any discussions that might imply a positive view of CSAM or related content.</li>
<li>Respecting other users.</li>
<li>Adhering to other generally accepted norms of behaviour.</li>
</ul>
</li>
<li>Do not share anyone&#39;s personal information without their explicit consent (also known as Doxing) - respect privacy of everyone.</li>
<li>Do not engage in activities that infringe on the intellectual property rights of others.</li>
<li>No Spam.</li>
<li>No Harassment or Stalking. Engaging in harassment or stalking of other users is strictly prohibited.</li>
<li>Avoid Harmful Behaviors - do not partake in actions that could harm individuals, jurisdictions, or systems.</li>
<li>Sending sexually explicit or suggestive messages is not allowed.</li>
<li>Follow Admin Guidelines - any behaviour deemed abusive by the administrators will be considered a violation of these guidelines.</li>
</ol>
<h2 id="compliance"><a href="#compliance">#</a> Compliance</h2>
<p>Ari-web is committed to complying with the General Data Protection Regulation (GDPR) (as well as COPPA (Children's Online Privacy Protection Rule) if you live in the U.S.) and the Digital Millennium Copyright Act (DMCA).</p>
<p>It adheres to the principles outlined in the GDPR, ensuring that all personal data is processed lawfully, fairly, and transparently.
I collect and process personal data only for specified, legitimate purposes and ensure that such data is accurate, up-to-date, and
retained only as long as necessary for those purposes. Users have rights regarding their personal data, including access,
rectification, and erasure, which we honor in accordance with GDPR requirements.</p>
<p>It also respects intellectual property rights and complies with the provisions of the DMCA. We have implemented procedures to
address any claims of copyright infringement and provide a mechanism for copyright holders to report alleged infringements.
We take such claims seriously and will respond promptly to any notices of claimed infringement.</p>
<p>If you see any resource violating the law, GDPR, or DMCA, contact the Authoritative party with all information and full paths
and URLs/URIs of the violating content. Without sufficient information, the Authoritative party cannot do anything about
the violations.</p>
<p>By using our services, you acknowledge our commitment to these regulations and understand that we will take all necessary steps
to ensure compliance with the law, GDPR, and DMCA.</p>
<p>Per GDPR, you are required to be at least the age of digital consent in your jurisdiction to use our services, or have your
legal guardians consent to allow digital processing of your data.</p>
<p>Send any DMCA complaints or requests to <a href="mailto:dmca@ari.lt">dmca@ari.lt</a>, any GDPR-related messages to <a href="mailto:gdpr@ari.lt">gdpr@ari.lt</a>, and any COPPA-related issues to <a href="mailto:coppa@ari.lt">coppa@ari.lt</a>.</p>
<h2 id="data"><a href="#data">#</a> Logging, privacy, and data processing</h2>
<p>
By using our services, you agree that any data you send to Ari-web servers to be processed, stored, logged, and served.
We reserve to change these policies at any point for genuine interest which includes service functionality, moderation,
administration, or allowing extra features with or without prior notice.
</p>
<p>
You reserve the right to request mass data deletion of any data logged or stored, even if GDPR does not apply in your
jurisdiction by simply sending a request to <a href="mailto:gdpr@ari.lt">gdpr@ari.lt</a>.
Logs are mainly collected for moderation and service stability ensurance.
</p>
<div class="table">
<table>
<tr>
<th>Service</th>
<th>Logged information</th>
<th>Stored information</th>
<th>Notes</th>
</tr>
<tr>
<td>All</td>
<td>Your IP address (logs are rotated every 64 days), access URI, authentication attempts, timestamp, response code, and parameters</td>
<td>Your IP address (temporarily for up to a week in-memory), all data you sent to be processed and expect it to be stored (such as comments, messages, files, ...), cookies</td>
<td>You are responsible for your own privacy by using client-side encryption. Data on Ari-web is mninimally processed, and even though we strive for best privacy and security, we place the responsibility of true privacy so only you see your data by using client-side encryption on you. (See <a href="https://www.openpgp.org/">OpenPGP</a>). Your IP may be stored indefinitely if we notice large amount of potentially abusive traffic from you to block your IP address. Most logs are rotated every 64 days.</td>
</tr>
<tr>
<td>Computing (access to the server's compute resources)</td>
<td>Everything you do on the system is logged, including file access, login attempts, and resource usage as well as the normal logs as described above ("All").</td>
<td>Stored information is all information you may put on the server, which includes (but is not limited to) files, logs, software, and code. These assets will not be served unless you choose to serve them yourself, in which case, you should request the Authoritative party to allow you to use certain ports and for them to be open to the open internet. You are responsible for ensuring your own privacy and not compromising the security of the compute resources, although, it will and is monitored to ensure best practices are being followed.</td>
<td>You are responsible for managing your own resource usage without abusing them as well as adhering to Ari-web policies and initiating your own. You may not distribute or even read data or configuration that is not meant for you.</td>
</tr>
<tr>
<td>Matrix (matrix.ari.lt)</td>
<td>Error reporting information with nonidenfiable or minimally idenfiable information.</td>
<td>All <a href="https://matrix.org/docs/matrix-concepts/rooms_and_events/">Matrix rooms and events</a> as well as files to be stored, federated or not. Federates the aforementioned events to other servers out of our control due to the nature of the mash nature of the Matrix protocol.</td>
<td></td>
</tr>
<tr>
<td>XMPP/Jabber (ari.lt ports 5222, 5269, 5223, 5270, and 5281)</td>
<td>Client/server events (federated or not), including (but not limited to) connections and error reporting information.</td>
<td>All XMPP events and multi-user chats as well as files to be stored, federated or not.</td>
<td>XMPP has a unique way of storing various events, therefore, you are strongly encouraged to use private-only MUCs (multi-user chats) on muc.ari.lt with encryption with OMEMO or OpenPGP.</td>
</tr>
<tr>
<td>Git forge (Forgejo at git.ari.lt)</td>
<td>Any events or actions taken by You on git Forge, including authenticating, creating repositories, organisations, using runners (actions), deleting repositories, commits, etc.</td>
<td>All repositories (private and public) and their data as well as metadata, user profile data, authentication data, prefrences, blocked users, avatars, descriptions, emails, organizations, etc.</td>
<td>Git forge is meant to store data like a versioned file store of sort (i.e. <a href="https://git-scm.com/">Git VCS</a>), therefore, all you send there will be served, to public or not (depending on your prefrences).</td>
</tr>
<tr>
<td>Email mailboxes of Ari-web email using <a href="https://mailcow.email/">Mailcow</a> (mail.ari.lt)</td>
<td>All actions performed on email are agressively logged. This includes: Email subject, email headers, rSpamD scan result, ClamAV antivirus results, access and authentication of both email and web UI, sent and received mail, IP address spam statistics, mailbox spam statistics, email (and its body) spam statistics (fuzzy hashes and scores mainly). This ensures full stability and deliverability of the email server.</td>
<td>All data related to your email is stored. This includes: IP address, email body, attachments, headers, spam scores and metadata, email threads, WebUI accounts (and their associated data), etc.</td>
<td>Even though we try to ensure best security of emails as well as secure access and storage, you are responsible for ensuring your total privacy. We are <b>NOT</b> allowed to invade your privacy unless circumstances call for it, although, to be safe, we suggest public key encryption to be used. See <a href="#termination">Termination, Limitation, and Transfer</a> for more details.</td>
</tr>
<tr>
<td>Semi-managed email using custom domains using <a href="https://mailcow.email/">Mailcow</a> (goes to mail.ari.lt)</td>
<td>All data related to email mailboxes is logged as described above. Although, email hosting with custom domains comes with its own caviates as well, for instance, you may be requested to add DMARC reports support to your domain. All administrator actions will also be logged and stored relating to your custom domain like login attempts, change of settings and rules as well as related events.</td>
<td>Mailbox information is stored as described above. Administrator information is stored similarly to mailbox WebUI accounts, including authentication information and various domain-related information such as logs and private keys (like DKIM).</td>
<td>You, as the domain administrator, are required to ensure best security practices when using Ari-web email and to not violate the described terms in this document. Your violation of these terms will be considered a breach, therefore, your access will be terminated with notice.</td>
</tr>
<tr>
<td>PrivateBin (pb.ari.lt)</td>
<td>Logs your paste ID, although, does not log the private key used for encrypting the paste.</td>
<td>Encrypted paste information is stored on the paste as sent by the client.</td>
<td>When reporting a paste for violating content, please provide us with as much information as possible about the paste, including its ID and private key (all in the URL, which you can just supply to us).</td>
</tr>
<tr>
<td>RoundCube webmail (rc.ari.lt)</td>
<td>Logs error information.</td>
<td>Stores your sessions as well as your password in an encrypted format as well as user prefrences, identities, and other related webmail data.</td>
<td></td>
</tr>
<tr>
<td>Matrix clients (schildi.ari.lt and cinny.ari.lt)</td>
<td></td>
<td></td>
<td>All data and processing happens client-side.</td>
</tr>
<tr>
<td>Akkoma/fediverse instance (ak.ari.lt)</td>
<td>All actions taken by administrators are logged as well as errors / warnings / faults related to various parts of the applications.</td>
<td>Stores all data sent to the server, federated or not, such as user-generated content (posts, dms), descriptions, content warnings, avatars, alt texts, interractions, tags, avatars, uploads, etc. and federates them to other servers out of our control due to the nature of the mash nature of the ActivityPub protocol.</td>
<td></td>
</tr>
</table>
</div>
<h2 id="availability"><a href="#availability">#</a> Service availability</h2>
<p>
Ari-web tries to provide the best uptime, although, there is zero guarantee on any sort of
service availability in percentage. You get what you get essentially. Although, expect minor
downtime monthly or bimonthly for maintenence tasks such as a maintenence reboot or a configuration
change. This assumption is not to be construed as a guarantee.
</p>
<p>
Ari-web disclaims any liability for service interruptions or downtime, and users acknowledge that they are using
the services at their own risk.
</p>
<h2 id="termination"><a href="#termination">#</a> Termination, Limitation, and Transfer</h2>
<p>
Ari-web reserves the right to terminate, limit, or transfer services, infrastructure, or general access in certain circumstances, as outlined below:
</p>
<p>
Termination or Limitation of Services: ari-web may terminate or limit services if Ari-web deems the service too difficult to control or moderate,
or if a constant pattern of violations or one extreme and severe violation is detected. For individuals, services may be terminated without notice if they continue
to violate the terms of service or engage in behaviour that Ari-web considers unacceptable. Such decisions will be based on the outlines in this document
as well as Ari-web interpretation of this document and their own discretion.
</p>
<p>
Transfer of Services: Ari-web will only transfer access to services in two scenarios:
</p>
<ul>
<li>User-Requested Transfer: Upon proof of identity, a user may request a transfer of their service to another party.</li>
<li>Legal Compliance Transfer: The Authoritative party may be required by law to transfer access to a user&#39;s service, with or without notice, to legal authorities.</li>
</ul>
<p>
In both cases, the Authoritative party reserves the right to make the final determination regarding the transfer of services based on their interpretation
of the law and the circumstances surrounding the request.
</p>
<p>
Users acknowledge and agree that the Authoritative party's decisions regarding service termination, limitation, and transfer are final and not subject
to appeal or legal action.
</p>
<h2 id="law"><a href="#law">#</a> Governing law</h2>
<p>
Ari-web and its services are subject to international laws as well as the laws of the United States of America, Lithuania, and Sweden.
Users acknowledge that these jurisdictions govern the use of ari-web services and any disputes that may arise in connection with them.
This statement is intended to clarify the legal framework applicable to the services offered by ari-web and does not create any
binding obligations beyond this acknowledgment.
</p>
<p>
We are also subject to the terms of HostHatch which you can read at:
</p>
<ul>
<li><a href="https://hosthatch.com/terms-of-service">https://hosthatch.com/terms-of-service</a></li>
<li><a href="https://hosthatch.com/acceptable-use-policy">https://hosthatch.com/acceptable-use-policy</a></li>
<li><a href="https://hosthatch.com/privacy-policy">https://hosthatch.com/privacy-policy</a></li>
</ul>
<h2 id="affiliations"><a href="#affiliations">#</a> Affiliations</h2>
<p>
Any member (volunteer) considered an Ari-web member (volunteer) is affiliated with Ari-web in a way where they are related
and working on making Ari-web a better place for everyone at their own discretion. Furthermore, Ari-web as a non-legally-formed
organization of individuals, cannot be affiliated with any legal entities. Affiliations are handled by the Authoritative party
inidividually, and all benifits from that affiliation will be used at the Authoritative party's discretion whether it be by
using it to support Ari-web, other projects, or for personal use.
</p>
<p>
All affiliate content on Ari-web share a part of the Ari-web license set, which usually includes copyright to the Authoritative party
provided by licenses such as MIT, GPL, AGPL, BSD, or CC-BY-SA, or no copyright at all as provided by public domain licenses such as
Unlicense, CC0, or WTFPL. Ari-web shalt never produce proprietary assets licensed under a proprietary license with greatly restricts others'
ability to copy, modify, publish, use, compile, or distribute parts or full of it in source code form.
</p>
<h2 id="scraping"><a href="#scraping">#</a> Data scraping</h2>
<p>
You shall not scrape any data from Ari-web for unethical, wasteful, or abusive scraping purposes. For example, any scraping of data for
training corporate AI models or Large Language Models using our Data and/or User Content in any way is prohibited and not deemed acceptable.
You may scrape data solely for the purpose of indexing to improve searchability or for the development of client applications
that utilize Ari-web services, as well as for education or entertainment purposes that would be considered reasonable and okay in
most other applications, so long as it does not violate privacy, freedom, or rights of others and complies to our terms.
</p>
<p>
Should you fail to comply to these policies, you hereby acknowledge and agree that in situations where data scraping is found to be a
breach of these terms, you agree to pay a fee of 1 euro per byte (8 bits) of digital data scraped from Ari-web, directly to the Authoritative Party,
after which the finances will be treated and used donations - to support Ari-web, the Authoritative party, and also giving back to the people
who's content was stolen. This clause is designed to prevent unethical and wasteful practices that not only harm the environment but also
infringe upon the rights of our users and our organization.
</p>
<p>
If you are unsure whether or not you may scrape data for a certain purpose on Ari-web, you should contact <a href="mailto:scraping@ari.lt">scraping@ari.lt</a> with
your enquiries listing what purpose the data will be scraped for, what data will be scraped, and what you promise to do to protect the rights of others with your
data scraping acts.
</p>
<h2 id="finances"><a href="#finances">#</a> Finances</h2>
<p>Ari-web is fully funded by the Authoritative party and volunteer donations by Cryptocurrency. This includes:</p>
<ul>
<li>Personal finances (out of pocket)</li>
<li>
Monero (XMR) donations: <a href="monero:451VZy8FPDXCVvKWkq5cby3V24ApLnjaTdwDgKG11uqbUJYjxQWZVKiiefi4HvFd7haeUtGFRBaxgKNTr3vR78pkMzgJaAZ?recipient_name=Ari%20Archer&tx_description=Donate%20to%20ari-web">451VZy8FPDXCVvKWkq5cby3V24ApLnjaTdwDgKG11uqbUJYjxQWZVKiiefi4HvFd7haeUtGFRBaxgKNTr3vR78pkMzgJaAZ</a> (<a target="_blank" rel="noopener noreferrer" href="{{ url_for("views.xmr") }}">{{ url_for("views.xmr") | escape }} (AnonPay)</a>, <a target="_blank" rel="noopener noreferrer" href="{{ url_for("views.oxmr") }}">{{ url_for("views.oxmr") | escape }} (AnonPay onion)</a>) (OpenAlias: <code>xmr@ari.lt</code>)
<div style="margin-top:1em">
<a href="{{ url_for("static", filename="crypto/monero.png") }}"> <img src="{{ url_for("static", filename="crypto/monero.png") }}" loading="lazy" alt="A QR code to a Monero Cryptowallet address." height="192" width="192" /> </a>
</div>
</li>
<li>
Litecoin (LTC) donations: <a href="litecoin:ltc1qfmx6hvyfrphsp0uu29fjwzrqdpt8vse8p5xxh3?message=Donate%20to%20ari-web&time=1731763810">ltc1qfmx6hvyfrphsp0uu29fjwzrqdpt8vse8p5xxh3</a> (<a target="_blank" rel="noopener noreferrer" href="{{ url_for("views.ltc") }}">{{ url_for("views.ltc") | escape }} (AnonPay)</a>, <a target="_blank" rel="noopener noreferrer" href="{{ url_for("views.oltc") }}">{{ url_for("views.oltc") | escape }} (AnonPay onion)</a>) (OpenAlias: <code>ltc@ari.lt</code>)
<div style="margin-top:1em">
<a href="{{ url_for("static", filename="crypto/litecoin.png") }}"> <img src="{{ url_for("static", filename="crypto/litecoin.png") }}" loading="lazy" alt="A QR code to a Litecoin Cryptowallet address." height="192" width="192" /> </a>
</div>
</li>
</ul>
<p>
Nobody shall ever, unless a change of status in Ari-web, be forced to pay for a publicly available service to use it unless it is
by their own discretion through direct (monetary, which are logged in <a href="{{ url_for("views.thanks") }}">a public donation log</a>) or indirect (code and help) donations.
</p>
<p>
Ari-web, as a project almost exclussively out of the Authoritative party's pocket, costs as follows:
</p>
<div class="table">
<table>
<tr>
<th>Purpose</th>
<th>Payment model</th>
<th>Annual cost</th>
</tr>
<tr>
<td>Processing server 0 (mail.ari.lt)</td>
<td>Quarterly ($45/qr)</td>
<td>$180</td>
</tr>
<tr>
<td>Storage server 0 (cdn.ari.lt)</td>
<td>Quarterly ($15/qr)</td>
<td>$60</td>
</tr>
<tr>
<td>Domain (ari.lt)</td>
<td>Annual ($12.58/yr)</td>
<td>~$13</td>
</tr>
<tr>
<td>Total</td>
<td></td>
<td>~$253 ±$20 (for misc. costs and taxes)</td>
</tr>
</table>
</div>
<p>
These costs do not include labour costs as well as various mishaps. We spend a lot of
effort and time trying to maintain Ari-web a clean, nice, and stable place as much as it
is in our power, while maintaining best security and community.
</p>
<hr />
<p>
By continuing to use ari-web's services, you agree to be bound by these terms and acknowledge Ari-web's right
to enforce them as needed. You understand and accept that Ari-web is not a legal entity or company, but rather a service
provided by a random person. As such, the terms outlined in this document are non-binding and subject to change without notice.
</p>
<p>
Ari-web reserves the right to enforce these terms as deemed necessary, but makes no guarantees regarding
the consistency or enforceability of the policies described herein. Users are advised to use Ari-web's services
at their own risk and discretion with common sense.
</p>
<p>
By continuing to access and use Ari-web services, you signify your understanding and acceptance of these
terms. If you do not agree with the terms, you are advised to discontinue using Ari-web services immediately
and/or request a permenant data deletion by sending a request to <a href="mailto:bye@ari.lt">bye@ari.lt</a>.
</p>
{% endblock %}

89
src/templates/thanks.j2 Normal file
View file

@ -0,0 +1,89 @@
{% extends "base.j2" %}
{% block title %}Index{% endblock %}
{% block description %}Thanks to my supporters!{% endblock %}
{% block keywords %}ari::web, services, foss services, homepage, portfolio, resume, matrix, says, https, email, guestbook{% endblock %}
{% block head %}
<link rel="stylesheet" href="{{ url_for("static", filename="fonts/Hack.css") }}" type="text/css" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="{{ url_for("static", filename="css/index.css") }}" type="text/css" referrerpolicy="no-referrer" />
<script type="text/javascript">
<!--//--><![CDATA[//><!--
/**
* @licstart The following is the entire license notice for the JavaScript
* code in this page.
*
* Copyright (C) 2024 Ari Archer
*
* The JavaScript code in this page is free software: you can redistribute
* it and/or modify it under the terms of the GNU Affero General Public License
* (AGPL) as published by the Free Software Foundation, either version 3
* of the License, or (at your option) any later version. The code is
* distributed WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the AGPL
* for more details.
*
* As additional permission under AGPL version 3 section 7, you may
* distribute non-source (e.g., minimized or compacted) forms of that code
* without the copy of the AGPL normally required by section 4, provided
* you include this license notice and a URL through which recipients can
* access the Corresponding Source.
*
* @licend The above is the entire license notice for the JavaScript code
* in this page.
*/
//--><!]]>
</script>
<script src="{{ url_for("static", filename="js/particles.js") }}" referrerpolicy="no-referrer" defer></script>
<script src="{{ url_for("static", filename="js/rc4.js") }}" referrerpolicy="no-referrer" defer></script>
{% endblock %}
{% block header %}
<h1>Thanks to my supporters!</h1>
{% endblock %}
{% block main %}
<p>
<b>Thanks to everyone donating!</b> I appriciate it a lot.
If you donate you can specify a message/url/whatever to add to this page, send it to <a href="mailto:ari@ari.lt">ari@ari.lt</a> if you want it :) Here's a list of all donations
I've received so far since the start of the donations page mid-2023:
</p>
<ul>
<li>2024/09/01: <b>0.08 XMR</b> (12.3 euro) from someone (thanks whoever donated!)</li>
<li>2023/11/24: Casey, my best friend: <b>12 euro</b> (FIAT)</li>
<li>2024/11/14: <b>0.07 XMR</b> (9.8 euro) from Kali: <a href="https://afaggot.org/">"kalis website has no bugs or issues at all" at https://afaggot.org/</a>. Thanks!</li>
<li>2023/12/26: <a href="https://cabbagecorp.nl/">break1146</a> on PayPal: <b>5 euro</b> (FIAT) | <b>"Some moneyz💜"</b></li>
<li>2024/11/17: <b>0.06 LTC</b> (4.95 EUR) by <a href="https://arns.lt/">arns.lt</a> (<a href="https://s.arns.lt/@zordsdavini/statuses/01JCXC1280NWPE2BDDYZ7DS80T">fedi: @zordsdavini@s.arns.lt</a>)</li>
<li>2024/06/17: <b>0.0169 XMR</b> (3 euro at the time) | <b>"amogus donation"</b> - <a href="https://themcgovern.net/">mcneb10</a></li>
<li>2023/11/30: Mario on PayPal: <b>0.80 euro</b> (42 cents after fees, answer to life!) (FIAT)</li>
<li>2024/05/05: <b>0.0019 XMR</b> (23 euro cents at the time)</li>
</ul>
<p>You can also donate here (Monero I tend to hold on to for now. Litecoin, though, I can use through BitPay to pay for servers!):</p>
<ul>
<li>
Monero (XMR) wallet address: <a href="monero:451VZy8FPDXCVvKWkq5cby3V24ApLnjaTdwDgKG11uqbUJYjxQWZVKiiefi4HvFd7haeUtGFRBaxgKNTr3vR78pkMzgJaAZ?recipient_name=Ari%20Archer&tx_description=Donate%20to%20ari-web">451VZy8FPDXCVvKWkq5cby3V24ApLnjaTdwDgKG11uqbUJYjxQWZVKiiefi4HvFd7haeUtGFRBaxgKNTr3vR78pkMzgJaAZ</a> (<a target="_blank" rel="noopener noreferrer" href="{{ url_for("views.xmr") }}">{{ url_for("views.xmr") | escape }} (AnonPay)</a>, <a target="_blank" rel="noopener noreferrer" href="{{ url_for("views.oxmr") }}">{{ url_for("views.oxmr") | escape }} (AnonPay onion)</a>) (OpenAlias: <code>xmr@ari.lt</code>)
<div style="margin-top:1em">
<a href="{{ url_for("static", filename="crypto/monero.png") }}"> <img src="{{ url_for("static", filename="crypto/monero.png") }}" loading="lazy" alt="A QR code to a Monero Cryptowallet address." height="192" width="192" /> </a>
</div>
</li>
<li>
Litecoin (LTC) wallet address: <a href="litecoin:ltc1qfmx6hvyfrphsp0uu29fjwzrqdpt8vse8p5xxh3?message=Donate%20to%20ari-web&time=1731763810">ltc1qfmx6hvyfrphsp0uu29fjwzrqdpt8vse8p5xxh3</a> (<a target="_blank" rel="noopener noreferrer" href="{{ url_for("views.ltc") }}">{{ url_for("views.ltc") | escape }} (AnonPay)</a>, <a target="_blank" rel="noopener noreferrer" href="{{ url_for("views.oltc") }}">{{ url_for("views.oltc") | escape }} (AnonPay onion)</a>) (OpenAlias: <code>ltc@ari.lt</code>)
<div style="margin-top:1em">
<a href="{{ url_for("static", filename="crypto/litecoin.png") }}"> <img src="{{ url_for("static", filename="crypto/litecoin.png") }}" loading="lazy" alt="A QR code to a Litecoin Cryptowallet address." height="192" width="192" /> </a>
</div>
</li>
</ul>
<p>
Thanks to all of you for the support! It means a lot to me even if it's 1 cent <3
</p>
{% endblock %}

8
tox.ini Normal file
View file

@ -0,0 +1,8 @@
[tox]
envlist = py310
[flake8]
max-line-length = 160
[pycodestyle]
max-line-length = 160