Added uses template and route

This commit is contained in:
Awstin 2024-07-05 20:00:43 -04:00
parent 3770d62625
commit 529a3113dd
4 changed files with 212 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
target/
node_modules/
package_lock.json
mprocs.log

View file

@ -30,6 +30,7 @@ pub fn get_router(pool: PgPool) -> Router {
.route("/now", get(now))
.route("/about", get(about))
.route("/contact", get(contact))
.route("/uses", get(uses))
.route(
"/robots.txt",
get(|| async { Redirect::permanent("/assets/robots.txt") }),
@ -105,3 +106,16 @@ async fn contact() -> impl IntoResponse {
struct ContactTemplate {
active_navbar: &'static str,
}
async fn uses() -> impl IntoResponse {
let template = UsesTemplate{
active_navbar: NavBar::ABOUT,
};
HtmlTemplate(template)
}
#[derive(Template)]
#[template(path = "uses.html")]
struct UsesTemplate {
active_navbar: &'static str,
}

31
templates/gifts.html Normal file
View file

@ -0,0 +1,31 @@
<!-- prettier-ignore -->
{% extends "base.html" %}
{% block content %}
<div id="content">
<h2>Gifts</h2>
<p>
If you are here you are probably thinking of getting me a gift.
I do very deeply appreciate it and thank you for the thought.
</p>
<p>
I am not much of a receiving gift person.
I don't like having a lot of things and am quite particular about what I do get.
I would much rather spend time together.
If you can spare the time to sit down and have a nice conversation or do something together that would be wonderful.
</p>
<p>
There are a few people in my life that I think are an exception to this rule.
If you are one of these people you know it and I say do whatever you see fit.
Otherwise if you feel that you must give me something I would suggest cash.
Not sure what I will use it for but there are always various things that I am eyeing, usually larger purchases.
I will certainly let you know what use it went to.
</p>
<p>
Regardless, thank you so much, I really appreciate it.
</p>
<p>
Awstin
</p>
</div>
{% endblock %}

166
templates/uses.html Normal file
View file

@ -0,0 +1,166 @@
<!-- prettier-ignore -->
{% extends "base.html" %}
{% block content %}
<div id="content">
<h2>Things I use</h2>
<h3>Analog stuff</h3>
<ul>
<li>
<b>Bike:</b> Trek... something. Hybrid. I have had it for almost 15 years and it shows no signs of slowing down as long as I periodically replace some parts.
</li>
<li>
<b>Bag:</b> <a href="https://kifaru.net/en-ca/products/checkpoint">Kifaru Checkpoint</a>. Never thought that an expensive backpack was worth the investment. I was so wrong. I tend to fill my bag pretty full for daily use and the fitted backplate makes it so that I notice almost no difference carrying it no matter what I have packed.
</li>
<li>
<b>Chair:</b> <a href="https://www.ergocentric.com/product-category/tcentric-hybrid-task-chair/?filter_series=tcentric-hybrid">ErgoCentric t-centric hybrid</a>. Canadian ergonomic chair company. Was able to go and try it out in the showroom and get fitted for the chair. Fantastic and fully worth the price, especially with how much time I spend sitting in it.
</li>
<li>
<b>Home Fitness:</b> <a href="https://treadmillfactory.ca/collections/cast-iron-kettlebells">Extreme Monkey Kettlebells</a>, yoga mat blocks and straps, <a href="https://www.ironmind.com/product-info/ironmind-grippers/captains-of-crush-grippers/">Captains of crush grippers</a>, various therabands and other elastics.
</li>
</ul>
<h3>Hardware</h3>
<ul>
<li>
<b>Desktop:</b> My desktop is one that I built myself quite a while ago. AMD RX580 GPU and recently upgraded the cpu and memory to Ryzen 5 4500 and 32G of Crucial DDR4. 2.5Gb network card
</li>
<li>
<b>Network Attached Storage:</b> Built it myself with a Jonsbo N1 mini ITX case, 32G RAM and a Ryzen 3 4100 cpu. 2 12TB Seagate Ironwolf Hard drives and a 500Gb NVME SSD. 2.5Gb network card
</li>
<li>
<b>Laptop:</b> 2018 Asus Zenbook 3, have replaced the battery in it so is still going strong. If I was to buy a laptop today I would certianly go for a <a href="https://frame.work/ca/en">Framework</a>. Really believe in their mission and value being able to fix and upgrade my stuff.
</li>
<li>
<b>Phone:</b> Samsung Galaxy A20, got it used. Gets the job done.
</li>
<li>
<b>Keyboard:</b> Built a <a href="https://github.com/davidphilipbarr/Sweep">Ferriss Sweep</a>, looking at building another so that I can keep one at work and one at home. Has made such a difference to my comfort when typing. Kalih Choc blue switches.
</li>
<li>
<b>Mouse:</b> SteelSeries something, currently using a wired mouse, have a logitech MxMaster and logitech MxAnywhere but the logitech univesal receiver dongle does not work through the KVM so don't use them at home. On my list to see if I can figure that out but not a high priority as I don't use my mouse all that much.
</li>
<li>
<b><a href="https://www.raspberrypi.com/">Raspberry Pis</a>:</b> I have 2 raspberry pis in use at the moment and 1 more that I have yet to decide what to do with.
<ul>
<li>
2GB Pi4 runs my vpn, dns, network wide ad blocking
</li>
<li>
8GB Pi4 runs some of my own scripts and programs, will also be hosting a home website when I get around to writing that
</li>
<li>
8GB Pi5 still unused until I both decide what to use it for and take the time to get it set up
</li>
</ul>
</li>
<li>
<b>General gadgets:</b>
<ul>
<li>
<a href="https://www.amazon.ca/gp/product/B081251PBW">KVM</a> to switch between desktop and work computer when I am working from home
</li>
<li>
<a href="https://www.amazon.ca/gp/product/B08XWK4HNT">5 port 2.5Gb switch</a>, and <a href="https://www.amazon.ca/gp/product/B00A128S24">5 port 1Gb switch</a> so that all of my devices that can be hard wired are. The 2.5Gb switch is to have that bandwidth between my desktop and NAS for fast file transfer.
</li>
</ul>
</li>
<li>
<b>E-reader:</b> <a href="https://www.kobo.com/">Kobo</a> touch 2.0, reliable, though the screen has taken some damage over the years, might be time to replace. I like the Kobo because of they support epub format which is open and I think should be the default for all ebooks.
</li>
</ul>
<h3>Software</h3>
<ul>
<li>
<b>Writing/Programming:</b> <a href="https://neovim.io/">Neovim</a> with a fair few plugins. <a href="https://github.com/nvim-telescope/telescope.nvim">Telescope</a> and <a href="https://github.com/ThePrimeagen/harpoon/tree/harpoon2">Harpoon</a> for file navigation, <a href="https://en.wikipedia.org/wiki/Language_Server_Protocol">lsp</a> and <a href="https://github.com/nvim-treesitter/nvim-treesitter">Treesitter</a> for coding, <a href="https://github.com/folke/zen-mode.nvim">Zenmode</a> for minimal distraction writing.
</li>
<li>
<b>Finance:</b> <a href="https://www.firefly-iii.org/">Firefly</a> hosted on my NAS to budget and track my finances. <a href="https://github.com/victorbalssa/abacus">Abacus</a> on my phone to interact with Firefly on the go.
</li>
<li>
<b>Media:</b>
<ul>
<li>
<a href="https://jellyfin.org/">Jellyfin</a> hosted on my NAS for movies, shows, and music/audiobooks
</li>
<li>
<a href="https://github.com/jmshrv/finamp">Finamp</a> on my phone to stream music/audiobooks from Jellyfin
</li>
<li>
<a href="https://calibre-ebook.com/">Calibre</a> for managing my ebook library
</li>
<li>
<a href="https://lzone.de/liferea">Liferea</a> RSS feed reader for blogs and webcomics that I follow
</li>
<li>
<a href="https://freetubeapp.io/">Freetube</a> for watching Youtube without sign in, tracking etc.
</li>
</ul>
</li>
<li>
<b>Synchronization:</b> <a href="https://syncthing.net/">SyncThing</a> hosted on my NAS to keep files synced on my laptop, desktop, and phone. Lets my laptop and desktop function as essentially one computer
</li>
<li>
<b>Browser:</b> <a href="https://www.mozilla.org/en-CA/firefox/new/">Firefox</a> browser with <a href="https://ublockorigin.com/">Ublock Origin</a>, <a href="https://privacybadger.org/">Privacy Badger</a>, and <a href="https://lydell.github.io/LinkHints/">Link hints</a>, plugins
</li>
<li>
<b>Operating Systems:</b>
<ul>
<li>
Desktop, laptop, and cloud server: <a href="https://archlinux.org/">Arch linux</a>
</li>
<li>
NAS: <a href="https://www.truenas.com/truenas-scale/">TrueNas Scale</a>
</li>
</ul>
</li>
<li>
<b>Window Manager:</b> <a href="https://i3wm.org/">i3 tiling window manager</a>
</li>
<li>
<b>Terminal:</b> <a href="https://github.com/alacritty/alacritty">Alacritty</a>
</li>
<li>
<b>Shell:</b> <a href="https://fishshell.com/">Fish</a>
</li>
<li>
<b>Terminal Multiplexer:</b> <a href="https://zellij.dev/">Zellij</a>
</li>
<li>
<b>Programming Languages:</b> <a href="https://www.rust-lang.org/">Rust</a>
</li>
<li>
<b>Memory:</b> <a href="https://apps.ankiweb.net/">Anki</a> flashcard app
</li>
</ul>
<h3>Services</h3>
<p>
I try to pay for the services that I use. I find that "free" services don't often respect the user very much and have been getting worse pretty quickly lately.
</p>
<ul>
<li>
<b>Password Manager:</b> <a href="https://1password.com/">1Password</a>
</li>
<li>
<b>Music:</b> <a href="https://spotify.com/">Spotify</a>
</li>
<li>
<b>Server:</b> <a href="https://www.vultr.com/">Vultr</a> minimal size instance
</li>
<li>
<b>Domain Registrar:</b> <a href="https://porkbun.com/">PorkBun</a>
</li>
<li>
<b>Backups:</b> <a href="https://www.backblaze.com/">Backblaze</a>, encrypted locally before uploading, periodic backup from my NAS.
</li>
<li>
<b>Email:</b> <a href="https://www.fastmail.com/">FastMail</>
</li>
<li>
<b>Search:</b> <a href="https://kagi.com/">Kagi</a> payed alternative to Google. So much different, any time that I use Google on another device I am reminded how bad the search has gotten
</li>
<li>
<b>Language Learning:</b> <a href="https://www.duolingo.com/learn">Duolingo</a>
</li>
</ul>
</div>
{% endblock %}