mirror of
https://github.com/the-second-city/do-as-sudo.git
synced 2025-10-29 03:56:02 -07:00
Add first posts + layouting
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.hugo_build.lock
|
||||
3
content/_index.md
Normal file
3
content/_index.md
Normal file
@ -0,0 +1,3 @@
|
||||
+++
|
||||
title = ''
|
||||
+++
|
||||
6
content/blog/_index.md
Normal file
6
content/blog/_index.md
Normal file
@ -0,0 +1,6 @@
|
||||
+++
|
||||
title = "all posts"
|
||||
menu = "main"
|
||||
weight = 100
|
||||
+++
|
||||
|
||||
15
content/blog/hello.md
Normal file
15
content/blog/hello.md
Normal file
@ -0,0 +1,15 @@
|
||||
+++
|
||||
title = "From There to Here"
|
||||
date = "2025-10-25T10:04:10-07:00"
|
||||
|
||||
#
|
||||
# description is optional
|
||||
#
|
||||
# description = "An optional description for SEO. If not provided, an automatically created summary will be used."
|
||||
|
||||
tags = []
|
||||
+++
|
||||
|
||||
I’m [tiltowait](https://github.com/tiltowait). I run a [few](https://tzimisce.app/#/) [popular](https://docs.inconnu.app) [Discord bots](https://docs.botch.lol) for World of Darkness (and more specifically Vampire: The Masquerade) games. Though the tech world is replete with stories like mine, it still surprises me that I’m only in my current career because I got annoyed typing out dice rolls on my phone.
|
||||
|
||||
This site will be a journal of dev notes, stories, etc. Almost entirely for myself and my own edification, but I need to store it somewhere, and if even one person finds it useful, interesting, or informative, why not here?
|
||||
27
content/blog/migration.md
Normal file
27
content/blog/migration.md
Normal file
@ -0,0 +1,27 @@
|
||||
+++
|
||||
title = "Migration"
|
||||
date = "2025-10-26T10:09:55-07:00"
|
||||
|
||||
#
|
||||
# description is optional
|
||||
#
|
||||
# description = "An optional description for SEO. If not provided, an automatically created summary will be used."
|
||||
|
||||
tags = []
|
||||
+++
|
||||
|
||||
[Railway](https://railway.com) is a great service. I’ve been using it for ~2 years now. It’s got a clean interface, good performance, and possibly the best hosted Postgres prices in the business.
|
||||
|
||||
But it’s not without quirks. Railway instances share resources, such as compute time, memory, and IP. This is standard in the [PaaS industry](https://en.wikipedia.org/wiki/Platform_as_a_service), but for Discord bots, it kind of sucks.
|
||||
|
||||
Discord bans IPs of bots that violate the terms of service. On a service like Railway, you might share the same IP with multiple Discord bots. If one of them is a bad actor, then Discord kicks them *all* offline.
|
||||
|
||||
(Thankfully, this only happens a few times a year in practice, and fixing it is just a button click in the dashboard.)
|
||||
|
||||
More, while Railway is a good price, they still need to make money. But when you could run most Discord bots on a [Raspberry Pi](https://www.raspberrypi.com), why spend $35/mo?
|
||||
|
||||
We can do cheaper.
|
||||
|
||||
Though Railway wasn’t affected, [the October 2025 AWS outage](https://www.pcgamer.com/software/the-multi-billion-dollar-15-hour-aws-outage-that-brought-the-internet-to-its-knees-last-week-was-apparently-caused-by-a-single-software-bug/) had me missing the days of self-hosting. When I was a teen, I’d run *nix boxen in my bedroom, wrestle with WiFi, wrestle with ATI drivers, and marvel that Doom 3 ran natively.
|
||||
|
||||
That’s two reasons to switch. I don’t need a third. It’s time to go back.
|
||||
28
content/blog/not-linux.md
Normal file
28
content/blog/not-linux.md
Normal file
@ -0,0 +1,28 @@
|
||||
+++
|
||||
title = "Not Linux"
|
||||
date = "2025-10-27T10:39:17-07:00"
|
||||
|
||||
#
|
||||
# description is optional
|
||||
#
|
||||
# description = "An optional description for SEO. If not provided, an automatically created summary will be used."
|
||||
|
||||
tags = []
|
||||
+++
|
||||
|
||||
I first used Linux when I was 13-14. Like many nerdy teens, I went through a cavalcade of distros: Red Hat, Fedora Core (2), Slackware, Debian, SUSE, Gentoo, Ubuntu, Arch. I’m probably missing one or two.
|
||||
|
||||
But there was another. Not Linux. [FreeBSD](https://www.freebsd.org).
|
||||
|
||||
The BSDs are weird. They’re older than Linux. They are closer to UNIX than is Linux. They have much the same userland as Linux. But they are decidedly *not* Linux.
|
||||
|
||||
I first tried FreeBSD around 2004. I had a brand-new Athlon64 3200+. Windows didn’t have a 64-bit version yet, and I was itching to take advantage of the extra bits (not understanding they didn’t mean much for performance). Enter FreeBSD.
|
||||
|
||||
It was actually a failure, thanks (of course) to driver issues. A generous (not to mention patient) user on [Freenode](https://en.wikipedia.org/wiki/Freenode) spent hours teaching me how to build a new kernel. That was my first introduction to `vi` (not `vim`; the default FreeBSD install didn’t and still doesn’t come with something as new as a 1991 text editor). And after hours of work, we learned that the FreeBSD Radeon drivers just didn’t compile on amd64, so I couldn’t have hardware acceleration. I wiped the install.
|
||||
|
||||
(Looking back, I don’t know why this was so important to me. It might have just been the principle of the matter.)
|
||||
|
||||
Spoiler: I came back.
|
||||
|
||||
I’m not here to convince you to install FreeBSD, so I’ll just say this: FreeBSD, like OpenBSD, NetBSD, etc. is very much *an operating system*, not a distro, and that shows itself in subtle ways. Look no further than [the handbook](https://docs.freebsd.org/en/books/handbook/) to see what I mean.
|
||||
|
||||
18
hugo.toml
18
hugo.toml
@ -1,3 +1,17 @@
|
||||
baseURL = 'https://example.org/'
|
||||
baseURL = 'https://blog.tiltowait.dev/'
|
||||
languageCode = 'en-us'
|
||||
title = 'My New Hugo Site'
|
||||
title = 'do as sudo'
|
||||
theme = 'bear'
|
||||
|
||||
[params]
|
||||
title = 'do as sudo'
|
||||
description = 'thoughts, dev notes, and musings during a freebsd migration'
|
||||
|
||||
hideMadeWithLine = true
|
||||
enablePostNavigator = true
|
||||
|
||||
[[menu.main]]
|
||||
name = 'home'
|
||||
url = '/'
|
||||
weight = 1
|
||||
|
||||
|
||||
16
layouts/index.html
Normal file
16
layouts/index.html
Normal file
@ -0,0 +1,16 @@
|
||||
{{ define "main" }}
|
||||
<div class="intro">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
{{ range first 5 (where .Site.RegularPages "Section" "blog") }}
|
||||
<article>
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
||||
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
||||
<div>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
<hr>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
18
layouts/partials/custom_head.html
Normal file
18
layouts/partials/custom_head.html
Normal file
@ -0,0 +1,18 @@
|
||||
<style>
|
||||
article h2 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
article time {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
main h1 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
main h1+p {
|
||||
margin-top: 0;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user