Compare commits

...

2 Commits

5 changed files with 19 additions and 66 deletions

View File

@ -8,6 +8,7 @@ class Page(models.Model):
title=models.CharField(max_length=100)
contents=models.TextField()
last_edited=models.DateField(auto_now=True)
renders=models.BooleanField(default=True)
def __str__(self):
return self.title
@ -20,6 +21,8 @@ class Contact(models.Model):
groups={0:'Preferred',1:'Suitable',2:'Discouraged',3:'Ignored',4:'Discontinued',5:'NSFW'}
group=models.IntegerField(choices=list(groups.items()))
priority=models.IntegerField()
desktop=models.BooleanField(default=True)
mobile=models.BooleanField(default=True)
def save(self,*args,**kwargs):
a,_=Update.objects.get_or_create(page='contact')
@ -32,4 +35,8 @@ class Contact(models.Model):
class Update(models.Model):
page=models.CharField(max_length=100)
date=models.DateField()
date=models.DateField()
class Redirect(models.Model):
match=models.CharField(max_length=200)
output=models.CharField(max_length=500)

View File

@ -1,62 +0,0 @@
Preferred:
zergling@rakka.tk,Email,mailto:zergling@rakka.tk,TODO
zergling_man@disroot.org,Email,mailto:zergling_man@disroot.org,Pending approval
Zergling_man@pod.rakka.tk,Diaspora,,No idea what I'm doing with this yet.
Zergling_man@rakka.tk,XMPP,xmpp:Zergling_man@rakka.tk,Not federating for some reason
<a rel='me' href='https://birds.garden/Zergling_man'>@Zergling_man@birds.garden</a>,Pleroma/fediverse,,Migrated from linuxbox
<a rel='me' href='https://mastodon.linuxbox.ninja/@Zergling_man'>@Zergling_man@mastodon.linuxbox.ninja</a>,Mastodon/fediverse
Suitable:
zerglingman@fedora.email,Email,mailto:zerglingman@fedora.email
zergling@email.go.brr.rakka.tk,Email,mailto:zergling@email.go.brr.rakka.tk,Backup account. <strong>Save this!</strong>
My comment box,Web,/comment,TODO
Zergling_man@irc.libera.chat,IRC
Zergling_man@irc.rizon.net,IRC
zerglingman,Steam,https://steamcommunity.com/id/zerglingman
@Zerglingman@freespeechextremist.com,Pleroma/fediverse,https://freespeechextremist.com/Zerglingman
@zergling.man:matrix.perthchat.org,Matrix,https://matrix.to/#/@zergling.man:matrix.perthchat.org,I kinda get it
<a rel='me' href='https://mastodon.linuxbox.ninja/@Zergling_man'>@Zergling_man@mastodon.linuxbox.ninja</a>,Mastodon/fediverse,,To be repurposed
Discouraged:
Zergling_man#9849,Discord
zergling.man42@gmail.com,Email,mailto:zergling.man42@gmail.com
Zergling_man@hotmail.com,Email,mailto:Zergling_man@hotmail.com
Zergling_man@irc.chat.twitch.tv,IRC,,yes, IRC
Wisknort@irc.mibbit.net,IRC
Zergling_man@irc.freenode.net,IRC
lazy to put,Codingame,,XMPP
Zergling_man,Mangadex,https://mangadex.org/user/419664/zergling_man
Wisknort,Favorite Words,https://favoritewords.com/public/7909804378
Wisknort,Disqus,https://disqus.com/by/wisknort/
<a rel='me' href='https://pawoo.net/@Zergling_man'>@Zergling_man@pawoo.net</a>,Mastodon/fediverse,,Mostly porn
@zergling_man@peertube.linuxrocks.online,Peertube/fediverse,https://peertube.linuxrocks.online/accounts/zergling_man/
zergling-man,Gitlab,https://gitlab.com/zergling-man
Curtis Smith,Patreon,https://www.patreon.com/user/creators?u=688598,I don't actually create anything
zergling-man,Github,https://github.com/zergling-man
zergling_man,Bandcamp,https://bandcamp.com/zergling_man
zerglingman,Facebook message,https://facebook.com/zerglingman
Ignored:
Zergling_man,Kickstarter,https://www.kickstarter.com/profile/zerglingman
04 7892 6251,Phone,tel:+61478926251
04 7320 1329,Phone,tel:+61473201329
Zerguch,Exhentai,,Don't search it if you don't know it
zerglingman,Facebook,https://facebook.com/zerglingman
@Zergling_man,Twitter,https://twitter.com/zergling_man
Wisknort@useast.battle.net,Battlenet 1.0,,probably dead
Wisknort@irc.gamesurge.net,IRC
Zergling_man@irc.quakenet.org,IRC
Zergling_man@irc.irchighway.net,IRC
zergling.man42@gmail.com,Hangouts
<a href='https://en.wikipedia.org/wiki/NakNak'>naknak</a>210,Neopets
zergling_man,Gelbooru,https://gelbooru.com/index.php?page=account&s=profile&id=286243,Content warning for site, not for kids
Zergling_man,XDA,https://forum.xda-developers.com/member.php?u=5421902,
@zergling_man,Ello,https://ello.co/zergling_man
zergling_man@hotmail.com,Skype
Curtis Smith,Linkedin,https://www.linkedin.com/in/curtis-smith-615538205/
Discontinued:
<a rel='me' href='https://openweb.social/@Zergling_man'>@Zergling_man@openweb.social</a>,Mastodon/fediverse,,Instance died
Zerglingman,Xfire,,Rip btw
<a rel='me' href='https://social.quodverum.com/@Zergling_man'>@Zergling_man@social.quodverum.com</a>,Mastodon/fediverse,,Banned, no reason given. Quods is weird.
e1ff7b086b591c3bdc7cf74ffc46c38a023721c8386e46cf63ed3d7998020c6240d786bfa8a8,Tox

View File

@ -5,6 +5,6 @@
<p>Who <del>can't figure out how SSL works. I'm working on it. got SSL working, I guess.</del> is figuring this SSL thing out, properly.</p>
<p><a href='/webhost.php'>Haha I'm way too lazy for webhosting</a></p>
<p>Cool games: <a href='http://www.fantasystrike.com'>Fantasy Strike</a> (<strong>gone free! Go play it now!</strong>), <a href='http://www.soldak.com/Dins-Curse/Overview.html'>Din's Curse</a> (dirt cheap!), <a href='https://mwomercs.com/'>Mechwarrior Online</a> (free!), <a href='https://www.wurmonline.com/'>Wurm Online</a> (free!), <a href='https://www.chiark.greenend.org.uk/~sgtatham/puzzles/'>Portable Puzzle Collection</a> (free and open source! Also on <a href='https://f-droid.org/en/packages/name.boyle.chris.sgtpuzzles/'>android</a>!)</p>
<p>Cool bands: <a href='https://vancanto.de/en'>Van Canto</a> [<a href='https://vancanto.bandcamp.com/'>bandcamp</a>] (who this site is a shrine to), <a href='https://theocracymusic.com/'>Theocracy</a> [<a href='https://ulteriumrecords.bandcamp.com/'>label's bandcamp</a>] (Christian prog metal!), <a href='https://teramaze.com.au/'>Teramaze</a> [<a href='https://teramaze.bandcamp.com/'>bandcamp</a>] (Australian Christian prog metal!)
<p>Cool bands: <a href='https://vancanto.de/en'>Van Canto</a> [<a href='https://vancanto.bandcamp.com/'>bandcamp</a>] (Who this site is a shrine to!), <a href='https://theocracymusic.com/'>Theocracy</a> [<a href='https://ulteriumrecords.bandcamp.com/'>label's bandcamp</a>] (Christian prog metal!), <a href='https://teramaze.com.au/'>Teramaze</a> [<a href='https://teramaze.bandcamp.com/'>bandcamp</a>] (Australian Christian prog metal! Always releasing!), Takamachi Walk [<a href='https://takamachiwalk.bandcamp.com/'>bandcamp</a>] (Touhou metal! New album out NYE 2021!)
<p><del><a href='https://www.bigr.com/whisker-snot-arrow-rest-weatherproofing/208374.html'>Wisknort. Whisker snot.</a></del> They changed their website and now it sucks.</p>
<p>By the way, my site's now <a href='https://gitea.rakka.tk/Zergling_man/rakkapy'>open source</a>, so you can see exactly how shit I am at this.</p>

View File

@ -4,6 +4,7 @@ from . import views
urlpatterns=[
path('',views.index,name='idex'),
path('contact',views.contact,name='contact'),
path('comment',views.comment,name='shoutbox'),
path('specs',views.specs,name='specs'),
path('songs',views.songs,name='songs'),
path('nerdshope',views.nerdshope,name='shop'),

View File

@ -60,11 +60,14 @@ def lii(obj):
name=obj.name
if obj.url: name=f"<a href='{obj.url}'>{name}</a>"
if obj.comment: name=f"{name} ({obj.comment})"
if obj.desktop: name=f"{name} 🖥"
if obj.mobile: name=f"{name} 📱"
return f"<li>{obj.proto}: {name}</li>"
@rerender
def contact():
head="Certain people keep asking me about the best ways to contact me. So here they are, in rough order of most to least preferred. More to come as I remember them/feel like it<br/>"
head="""Certain people keep asking me about the best ways to contact me. So here they are, in rough order of most to least preferred. More to come as I remember them/feel like it<br/>
🖥 = I will receive on my computer, 📱 = I will receive on my phone<br/>"""
contacts=sorted(Contact.objects.all(),key=lambda x:(x.group,x.priority))
out={}
for n in contacts:
@ -82,6 +85,10 @@ def specs(req):
with open('main/pages/specs') as b:
return HttpResponse(b.read(), content_type="text/plain")
@rerender
def comment():
return {'title':'Comment box','content':"TODO",'date':'2021/12/24'}
@rerender
def songs():
with open('main/utils/song-ids') as b:
@ -92,7 +99,7 @@ def songs():
@rerender
def nerdshope():
return {'title':'Nerds\' Hope','content':"Store stuff. TODO. Will include inventory and budget. <a href='https://facebook.com/nerdshope'>FB</a><br/>Address is 21 Kensington St, Glenorchy<br/>Off dates 2021: 24th Sept, 29th Oct, 26th Nov<br/>Will be late on the 1st of Oct<br/>Not sure about 31st of Dec. Depends what other plans are made. I might host a NYE party that night.",'date':'2021/09/05'}
return {'title':'Nerds\' Hope','content':"Store stuff. TODO. Will include inventory and budget. <a href='https://facebook.com/nerdshope'>FB</a><br/>Address is 21 Kensington St, Glenorchy<br/>Off dates 2022:Dunno yet.<br/>NYE party 31st Dec.",'date':'2021/12/24'}
def teapot(req):
return HttpResponse("You're probably missing the joke.",status=418)