This commit is contained in:
Alie 2024-07-03 09:51:40 +02:00
parent a65f8f056f
commit 3b162b740c
60 changed files with 0 additions and 528 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

0
static/icons/8831/remiiiiii.online.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

View File

@ -1,16 +0,0 @@
from re import Pattern
from django import forms
from django.core.exceptions import ValidationError
from django.utils.translation import gettext_lazy as txt
class SignbookForm(forms.Form):
name = forms.CharField(label="Name")
website = forms.CharField(label="Website", required=False)
email = forms.EmailField(label="Email", required=False)
comment = forms.CharField(label="Comment", required=False)
capcha = forms.CharField(label="Tell me that you love 'me'")
def validate_capcha(self):
if self.cleaned_data["capcha"].lower() != "i love me":
raise ValidationError(txt('Invalid captcha'), code="invalid")
return self

View File

@ -1,8 +0,0 @@
from django.db import models
# Create your models here.
class Booksigner(models.Model):
name = models.CharField(max_length=50)
website = models.CharField(blank=True, max_length=200)
email = models.EmailField(blank=True, )
comment = models.CharField(blank=True, max_length=500)

View File

@ -1,6 +0,0 @@
<a href="ads.php"><img src="ads/hor/orb.gif" alt="Silly ad of engarging your orb"></a>
<a href="ads.php"><img src="ads/hor/ie.png" alt="Silly ad of internet explorer 3.0"></a>
<a href="ads.php"><img src="ads/hor/ram.png" alt="Download more RAM"></a>
<a href="ads.php"><img src="ads/hor/lies.jpg" alt="Insert lies here!"></a>
<a href="ads.php"><img src="ads/hor/catgirl.png" alt="Cute trans girls in my CS class?"></a>
<a href="ads.php"><img src="ads/hor/gay.jpg" alt="Little gay people on my machine?"></a>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 696 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 378 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 616 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 346 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 438 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 272 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 933 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

View File

@ -1,15 +0,0 @@
#!/bin/sh
echo "Content-Type: text/plain"
echo
echo "This is \"`hostname`\" server running `uname -srm` on `lscpu -J | jq -r '.lscpu[2].data'` * `lscpu -J | jq -r '.lscpu[7].data'` `lscpu -J | jq -r '.lscpu[9].data'` CPU @ `lscpu -J | jq -r '.lscpu[11].data'` MHz."
echo
uptime
echo "System stats"
echo "=================================="
echo "Processes:\t RUN: `ps -r | wc -l`, TOTAL: `ps -A | wc -l`"
head -n 2 /proc/meminfo
echo
echo "Generated on `date -R`."
echo
echo "https://yari.fai.st"

View File

@ -1,91 +0,0 @@
@media screen and (min-aspect-ratio: 2) {
.centercubeplease {
width: 50%;
}
}
body {
background-color: #ffffff;
color: #000000;
font-size: 16px;
}
#index {
background-image: url("background/index.png");
background-size: cover;
background-attachment: fixed;
}
#index .centercubeplease {
background-color: #5f8e76;
border: 3px solid #527c46;
margin: auto;
padding: 10px;
}
#index a {
color: #f0f0f0;
}
.centercubeplease img {
max-width: 95%;
}
#about {
background-image: url("background/about.png");
background-size: cover;
background-attachment: fixed;
}
#about a {
color: #fff0f0;
}
#about .centercubeplease {
color: #fff0f0;
background-color: #990033;
border: 3px solid #cc0066;
margin: auto;
padding: 10px;
}
h1 {
text-align: center;
}
ul {
text-align: left;
}
h1,
h2,
h3 {
margin-bottom: 0;
}
.centerade {
width: 50%;
margin: auto;
margin-top: 10px;
text-align: center;
}
.centerade img {
width: 99%;
}
.centercubeplease a {
color: #449494;
}
.disclosure-closed {
list-style: disclosure-closed;
}
.error {
color: red;
}
table {
margin: auto;
}

View File

@ -1,114 +0,0 @@
<!DOCTYPE html>
<html lang="en">
{% include "head.html" %}
<body id="about">
<div class="centercubeplease">
<h1>
So hey, you want to know more about me. Here u have!
</h1>
<div class="centerade">
<p>
A thing i need to say is that this page one day could be deprecated bc
of me just not remembering to change anything.
</p>
<h2>
Index
</h2>
<ul class="disclosure-closed">
<li>
<a href="#how">How to adress me</a>
</li>
<li>
<a href="#who">Who i am</a>
</li>
<li>
<a href="#what">What i am</a>
</li>
<li>
<a href="#where">Where to contact me</a>
</li>
</ul>
<h2 id="how">
How to adress me
</h2>
<p>
So first of all if you are not gonna adress me directly or you don't
know me yet just call me Bizcochito!
<br />
</p>
<h3>
You can call me:
</h3>
<ul class="disclosure-closed">
<li>
Yari
</li>
<li>
Alicia
</li>
<li>
Maria
</li>
<li>
Bizcochito
</li>
</ul>
<p>
Also if you are gonna "pronoun" me, please think before if u can just
use the name "Yari" that is literaly like "They" long.
</p>
<h3>
If you insist in using pronouns you can use this
<b> (in order of preference) </b> :
</h3>
<ul class="disclosure-closed">
<li>
<b>My names</b>
</li>
<li>
Literally anything but he
</li>
</ul>
<h2 id="who">
Who i am
</h2>
<p>
Existential question i have yet not answered
</p>
<h2 id="what">
What i am
</h2>
<p>
A silly colection of bytes
</p>
<h2 id="where">
Where to contact me
</h2>
<div class="centerade">
{# djlint: ignore D018 #}<a href="xmpp:bizcochito@fai.st">
<img style="border: 0px;
height: 36px;
width: auto"
src="https://xmpp.org/images/logos/xmpp-logo.svg"
alt="XMPP" />
</a>
<a href="mailto:bizcochito@anartist.org">
<img style="border: 0px;
height: 36px;
width: auto"
src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/ee/%28at%29.svg/170px-%28at%29.svg.png"
alt="Personal Mail" />
</a>
<a href="https://awoo.fai.st/MeDueleLaTeta">
<img style="border: 0px;
height: 36px;
width: auto"
src="https://upload.wikimedia.org/wikipedia/commons/9/93/Fediverse_logo_proposal.svg"
alt="Pleroma" />
</a>
</div>
</div>
<a href="{% url "webpage:index" %}">IDK return back</a>
</div>
</body>
</html>

View File

@ -1,26 +0,0 @@
{% load static %}
<div class="centerade">
<div>
<a href="https://fediring.net/previous?host=yari.fai.st">
<img style="height: 30px;
width: auto"
src="{% static 'icons/last.png' %}"
alt="LAST" />
</a>
<a href="https://fediring.net/">
<img style="height: 30px;
width: auto"
src="{% static 'icons/fediring.png' %}"
alt="FEDIRING" />
</a>
<a href="https://fediring.net/next?host=yari.fai.st">
<img style="height: 30px;
width: auto"
src="{% static 'icons/next.png' %}"
alt="NEXT" />
</a>
</div>
<p>
Fediring links
</p>
</div>

View File

@ -1,6 +0,0 @@
{% load static %}
<head>
<link rel="stylesheet" href="{% static 'style.css' %}" />
<link rel="icon" href="{% static 'icon.png' %}" />
<title>{{ title }}</title>
</head>

View File

@ -1,86 +0,0 @@
{% load static %}
<!DOCTYPE html>
<html lang="en">
{% include "head.html" %}
<body id="index">
{% include "fediring.html" %}
<div id="noscript">
<div class="centercubeplease">
<h1>
I'm bizcochito, hey!
</h1>
<h2>
-Pages:
</h2>
<ul class="disclosure-closed">
<li>
<a href=" {% url 'webpage:signbook' %} ">Signbook</a>
</li>
</ul>
<h2>
-Banners
</h2>
<div class="img">
{% for gif in banger_list %}
<img style="max-height:50px;width:auto" src="{% static "icons/banner/" %}{{ gif.name }}" alt="{{ gif.url }}" />
{% endfor %}
</div>
<h2>
-Funni gifs
</h2>
<div class="img">
{% for gif in gif_list %}
<img style="max-height:50px;width:auto" src="{% static "icons/gif/" %}{{ gif.name }}" alt="{{ gif.url }}" />
{% endfor %}
</div>
<h2>
-Frens:
</h2>
<div class="img">
{% for banner in banner_list %}
<a href="https://{{ banner.url }}">
<img style="height:31px; width:81px" src="{% static "icons/88x31/" %}{{ banner.name }}" alt="{{ banner.url }}" />
</a>
{% endfor %}
</div>
<h2>
-Another banner that is unused:
</h2>
<div class="img">
<a href="">
<img style="height:33px;
width:81px"
src="{% static 'icons/coconut.png' %}"
alt="cronut.cafe/~bizcochito" />
</a>
</div>
<h2>
-NEW BANNER:
</h2>
<div class="img">
<a href="https://yari.fai.st">
<img style="height:33px;
width:81px"
src="{% static 'icons/bizcochito.gif' %}"
alt="yari.fai.st" />
</a>
</div>
</div>
<div class="centerade">
<a>
<img src="{% static "ads/hor/" %}{{ ad }}" alt="ad" />
</a>
</div>
</div>
<script>
function nojs() {
document.getElementById("noscript").style.display = "block";
document.getElementById("nojs").style.display = "none";
}
document.getElementById("noscript").style.display = "none";
document.write(
'<div id="nojs" class="centercubeplease"><p>To see the website please disable JS</p><p><a href="#" onclick="nojs()">I cant do that, daddy google does not LET me :(</a></p></div>'
);
</script>
</body>
</html>

View File

@ -1,58 +0,0 @@
<!DOCTYPE html>
<html lang="en">
{% include "head.html" %}
<body id="index">
<div class="centercubeplease">
<h1>
Cool signers:
</h1>
{% if signer_list %}
<p>
<ul>
{% for signer in signer_list %}
<li>
<a href="https://{{ signer.website }}">
<b>
{{ signer.name }}
</b>
</a> said:
<b>
{{ signer.comment }}.
</b>
{% if signer.email %}
Pester on:
<a href="mailto:{{ signer.email }}">{{ signer.email }}</a>
{% endif %}
</li>
{% endfor %}
</ul>
</p>
{% else %}
<p>
No one signed here :(
</p>
{% endif %}
</div>
<div class="centerade">
<h2>
Be part of this cuties!
</h2>
<p>
<p>
<form method="post" action="">
{% csrf_token %}
{% if error_message %}
<p>
<strong>{{ error_message }}</strong>
</p>
{% endif %}
<table>
{{ form.as_table }}
</table>
<input type="submit" />
</form>
</p>
</p>
</div>
</body>
</html>

View File

@ -1,102 +0,0 @@
import os
import random
from django.forms import ValidationError
from django.http import HttpResponseNotFound
from django.shortcuts import render
from .models import Booksigner
from .forms import SignbookForm
def image_dict_from_name_list(name_list: list[str]):
dict_list = []
for name in name_list:
url = name.split(".")
url.pop()
url = ".".join(url)
dict_list.append({
"name": name,
"url": url
}
)
return dict_list
def index(request):
# Get random ad from ad dir
ad_list = os.listdir(os.path.join(os.path.dirname(os.path.dirname(__file__)), "webpage", "static/ads/hor/"))
ad = random.choice(ad_list)
# Get list of 81x33 icons
banner_list = image_dict_from_name_list(os.listdir(os.path.join(os.path.dirname(os.path.dirname(__file__)), "webpage", "static/icons/88x31/")))
# Get list of funni gifs
gif_list = image_dict_from_name_list(os.listdir(os.path.join(os.path.dirname(os.path.dirname(__file__)), "webpage", "static/icons/gif/")))
# Get list of banners
banger_list = image_dict_from_name_list(os.listdir(os.path.join(os.path.dirname(os.path.dirname(__file__)), "webpage", "static/icons/banner/")))
if not ad or not banner_list or not gif_list:
return HttpResponseNotFound()
else:
context = {
"title": "THE INDEX",
"ad": ad,
"banner_list": banner_list,
"gif_list": gif_list,
"banger_list": banger_list,
}
return render(request,"index.html", context)
def about(request):
return render(request, "about.html", {"title": "About Me"})
def signbook(request):
signer_list = Booksigner.objects.all()
if request.method == 'POST':
form = SignbookForm(request.POST)
try:
if form.is_valid() and form.validate_capcha():
newsigner = {}
newsigner["name"] = form.cleaned_data['name']
newsigner["website"] = form.cleaned_data['website']
newsigner["email"] = form.cleaned_data['email']
newsigner["comment"] = form.cleaned_data['comment']
signer_list = Booksigner.objects.all()
if newsigner:
Booksigner.objects.create(
name=newsigner["name"],
email=newsigner["email"],
website=newsigner["website"],
comment=newsigner["comment"],
)
context = {
"title": "THE GUESTBOOK",
"signer_list": signer_list
}
return render(request, "signbook.html", context)
context = {
"title": "THE GUESTBOOK",
"signer_list": signer_list,
"error_message": "You didn't input a required input.",
}
return render(
request,
"signbook.html",
context
)
except ValidationError as e:
print("Error: ", e)
context = {
"title": "THE GUESTBOOK",
"signer_list": signer_list,
"error_message": "Invalid captcha.",
}
return render(
request,
"signbook.html",
context
)
else:
context = {
"title": "THE GUESTBOOK",
"signer_list": signer_list,
"form": SignbookForm()
}
return render(request, "signbook.html", context)