add demo duckquill with minimal changes
This commit is contained in:
commit
60b4238ea2
26 changed files with 1742 additions and 0 deletions
9
content/blog/_index.md
Normal file
9
content/blog/_index.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
+++
|
||||
title = "Writings of Duck's Feet"
|
||||
sort_by = "date"
|
||||
template = "article_list.html"
|
||||
page_template = "article.html"
|
||||
paginate_by = 2
|
||||
+++
|
||||
|
||||
Welcome to my quack'in blog, I quack about various stuff, but mostly I'm a demo.
|
||||
16
content/blog/dolor/index.md
Normal file
16
content/blog/dolor/index.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
+++
|
||||
authors = ["John Dolor"]
|
||||
title = "Dolor"
|
||||
description = "Lorem ipsum dolor sit amet."
|
||||
date = 1970-01-03
|
||||
[taxonomies]
|
||||
tags = ["Lorem", "Ipsum", "Dolor"]
|
||||
[extra]
|
||||
archive = true
|
||||
+++
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim aeque doleamus animo, cum corpore dolemus, fieri tamen permagna accessio potest, si aliquod aeternum et infinitum impendere malum nobis opinemur. Quod idem licet transferre in voluptatem, ut postea.
|
||||
|
||||
Ullus investigandi veri, nisi inveneris, et quaerendi defatigatio turpis est, cum esset accusata et vituperata ab Hortensio. Qui liber cum et mortem contemnit, qua qui est imbutus quietus esse numquam potest. Praeterea bona praeterita grata recordatione renovata delectant. Est.
|
||||
|
||||
Ullus investigandi veri, nisi inveneris, et quaerendi defatigatio turpis est, cum esset accusata et vituperata ab Hortensio. Qui liber cum et mortem contemnit, qua qui est imbutus quietus esse numquam potest. Praeterea.
|
||||
15
content/blog/drafted-post/index.md
Normal file
15
content/blog/drafted-post/index.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
+++
|
||||
authors = ["John Draft"]
|
||||
title = "Drafty Draft"
|
||||
description = "Drafted post, very drafty."
|
||||
date = 2024-04-29
|
||||
draft = true
|
||||
[taxonomies]
|
||||
tags = ["Draft"]
|
||||
+++
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim aeque doleamus animo, cum corpore dolemus, fieri tamen permagna accessio potest, si aliquod aeternum et infinitum impendere malum nobis opinemur. Quod idem licet transferre in voluptatem, ut postea.
|
||||
|
||||
Ullus investigandi veri, nisi inveneris, et quaerendi defatigatio turpis est, cum esset accusata et vituperata ab Hortensio. Qui liber cum et mortem contemnit, qua qui est imbutus quietus esse numquam potest. Praeterea bona praeterita grata recordatione renovata delectant. Est.
|
||||
|
||||
Ullus investigandi veri, nisi inveneris, et quaerendi defatigatio turpis est, cum esset accusata et vituperata ab Hortensio. Qui liber cum et mortem contemnit, qua qui est imbutus quietus esse numquam potest. Praeterea.
|
||||
16
content/blog/ipsum/index.md
Normal file
16
content/blog/ipsum/index.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
+++
|
||||
authors = ["John Ipsum"]
|
||||
title = "Ipsum"
|
||||
description = "Lorem ipsum dolor sit amet."
|
||||
date = 1970-01-02
|
||||
[taxonomies]
|
||||
tags = ["Lorem", "Ipsum"]
|
||||
[extra]
|
||||
hot = true
|
||||
+++
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim aeque doleamus animo, cum corpore dolemus, fieri tamen permagna accessio potest, si aliquod aeternum et infinitum impendere malum nobis opinemur. Quod idem licet transferre in voluptatem, ut postea.
|
||||
|
||||
Ullus investigandi veri, nisi inveneris, et quaerendi defatigatio turpis est, cum esset accusata et vituperata ab Hortensio. Qui liber cum et mortem contemnit, qua qui est imbutus quietus esse numquam potest. Praeterea bona praeterita grata recordatione renovata delectant. Est.
|
||||
|
||||
Ullus investigandi veri, nisi inveneris, et quaerendi defatigatio turpis est, cum esset accusata et vituperata ab Hortensio. Qui liber cum et mortem contemnit, qua qui est imbutus quietus esse numquam potest. Praeterea.
|
||||
18
content/blog/long-long-man/index.md
Normal file
18
content/blog/long-long-man/index.md
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
+++
|
||||
authors = ["Looong Looong Man", "Alexander Maximilian Jonathan"]
|
||||
title = "Loooooong Loooooong Loooooong Loooooong Loooooong Man"
|
||||
description = "Pneumonoultramicroscopicsilicovolcanoconiosis supercalifragilisticexpialidocious pseudopseudohypoparathyroidism."
|
||||
date = 2017-01-01
|
||||
[taxonomies]
|
||||
tags = ["Honorificabilitudinitatibus"]
|
||||
[extra]
|
||||
featured = true
|
||||
+++
|
||||
|
||||

|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim aeque doleamus animo, cum corpore dolemus, fieri tamen permagna accessio potest, si aliquod aeternum et infinitum impendere malum nobis opinemur. Quod idem licet transferre in voluptatem, ut postea.
|
||||
|
||||
Ullus investigandi veri, nisi inveneris, et quaerendi defatigatio turpis est, cum esset accusata et vituperata ab Hortensio. Qui liber cum et mortem contemnit, qua qui est imbutus quietus esse numquam potest. Praeterea bona praeterita grata recordatione renovata delectant. Est.
|
||||
|
||||
Ullus investigandi veri, nisi inveneris, et quaerendi defatigatio turpis est, cum esset accusata et vituperata ab Hortensio. Qui liber cum et mortem contemnit, qua qui est imbutus quietus esse numquam potest. Praeterea.
|
||||
16
content/blog/lorem/index.md
Normal file
16
content/blog/lorem/index.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
+++
|
||||
authors = ["John Lorem"]
|
||||
title = "Lorem"
|
||||
description = "Lorem ipsum dolor sit amet."
|
||||
date = 1970-01-01
|
||||
[taxonomies]
|
||||
tags = ["Lorem"]
|
||||
[extra]
|
||||
poor = true
|
||||
+++
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim aeque doleamus animo, cum corpore dolemus, fieri tamen permagna accessio potest, si aliquod aeternum et infinitum impendere malum nobis opinemur. Quod idem licet transferre in voluptatem, ut postea.
|
||||
|
||||
Ullus investigandi veri, nisi inveneris, et quaerendi defatigatio turpis est, cum esset accusata et vituperata ab Hortensio. Qui liber cum et mortem contemnit, qua qui est imbutus quietus esse numquam potest. Praeterea bona praeterita grata recordatione renovata delectant. Est.
|
||||
|
||||
Ullus investigandi veri, nisi inveneris, et quaerendi defatigatio turpis est, cum esset accusata et vituperata ab Hortensio. Qui liber cum et mortem contemnit, qua qui est imbutus quietus esse numquam potest. Praeterea.
|
||||
BIN
content/blog/mapping-tgtg/banner.jpg
Normal file
BIN
content/blog/mapping-tgtg/banner.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.7 MiB |
BIN
content/blog/mapping-tgtg/banner.webp
Normal file
BIN
content/blog/mapping-tgtg/banner.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 671 KiB |
92
content/blog/mapping-tgtg/index.md
Normal file
92
content/blog/mapping-tgtg/index.md
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
+++
|
||||
authors = ["Max Katz-Christy"]
|
||||
title = "Mapping My Leftover Food Tourism"
|
||||
description = "How to turn eating into a casino game"
|
||||
date = 2025-02-18
|
||||
# updated = "2025-02-18"
|
||||
[taxonomies]
|
||||
tags = ["TGTG", "Reverse Engineering"]
|
||||
[extra]
|
||||
banner = "banner.webp"
|
||||
toc = true
|
||||
toc_inline = true
|
||||
toc_ordered = true
|
||||
# trigger = "This page contains blackjack and hookers, and bad jokes such as this one."
|
||||
disclaimer = """
|
||||
- The Too Good to Go API is not meant for this use
|
||||
- Whoopsies
|
||||
"""
|
||||
[extra.comments]
|
||||
# Long thread with image
|
||||
#
|
||||
# host = "mastodon.social"
|
||||
# user = "brownpau"
|
||||
# id = "104529877688537579"
|
||||
#
|
||||
# Thread with multiple images per post
|
||||
#
|
||||
# host = "mastodon.blaede.family"
|
||||
# user = "cassidy"
|
||||
# id = "112774854109302186"
|
||||
#
|
||||
# Thread with preview cards
|
||||
# host = "mastodon.blaede.family"
|
||||
# user = "cassidy"
|
||||
# id = "110669429936617026"
|
||||
#
|
||||
# Post on GoToSocial
|
||||
#
|
||||
# host = "alpha.polymaths.social"
|
||||
# user = "orbitalmartian"
|
||||
# id = "01J7ETKJ19FGBDQGS1ZWZ3KEPP"
|
||||
#
|
||||
# Post on Sharkey
|
||||
#
|
||||
# host = "is-a.wyvern.rip"
|
||||
# user = "volpeon"
|
||||
# id = "9qy755nsnu2c0hbc"
|
||||
host = "better.boston"
|
||||
user = "maxtkc"
|
||||
id = "tbd"
|
||||
+++
|
||||
# Mapping My Leftover Food Tourism
|
||||
|
||||
## An Addict
|
||||
|
||||
Gambling is very addictive. I have an addictive personality. I have spent $TBD in an online casino where the only possible reward is food. This addiction has caused me to run, bike, and train for miles towards pickup locations in a variety of far flung places all over the US and Europe.
|
||||
|
||||
Maybe this is an unfair comparison because the house and I both usually win. While I'm not a huge fan of most big companies, Too Good To Go is one of my favorites. They host a platform where restaurants can post "surprise bags" for around a third of the original price that can be picked up in limited numbers at given times. If it was just for the food alone, I don't know if I would be winning. I spend lots of time and energy collecting the food. I don't know if there's any hunter/gatherer left in our DNA, but I do get quite a bit of pleasure from scouting out what is available and making a collection. Additionally, while solo traveling, it gives me a sense of purpose and gives me an excuse to explore the city in ways that not many others do. And of course, the off chance encounters with other too good to goers is quite interesting.
|
||||
|
||||
## The Problem
|
||||
|
||||
The stats in the Too Good To Go app are pretty limited.
|
||||
|
||||
Pic app
|
||||
|
||||
I mean, who cares about climate change anyways. Why can't I export the data, or see a map of places I've been? I have so many more important things to do, but this is bugging me.
|
||||
|
||||
## Existing "Research"
|
||||
|
||||
There's a Too Good To Go python package that I've used before, let's see if that works.
|
||||
|
||||
Pic
|
||||
|
||||
Nope, auth issues. Let's try this package.
|
||||
|
||||
Pic
|
||||
|
||||
Wheee! But wait, they don't have the history API written in? I guess people just don't care...
|
||||
|
||||
## Reverse Engineering
|
||||
|
||||
Too Good to Go's API is not documented anywhere or intended for public use outside of the app. However, my app is able to look at my past pickups. So I can be sure that it's possible, if my computer does the exact same thing as my phone, their server will provide me with my too good to go history.
|
||||
|
||||
Because Apple and Google are both shitty big companies, they don't want you to be able to figure out what is running on your phone. However, there's only so much they can do, because the requests to the server for data must leave the phone and fly on their own. They are usually encrypted after leaving the phone, with that tricky little s on the end of http.
|
||||
|
||||
So, how do we jump in the middle of this? We can instruct the phone to use a proxy! A proxy, as the name implies, sends requests to servers on behalf of the original sender. So, I boot up a very simple proxy on my laptop and point my phone to it.
|
||||
|
||||
Http requests work! Ok, now what about a secure request? Certificate not valid? When I send an https request, an app on my phone first sets up a secure connection with some fancy math. My phone has a list of "System Certificate Authorities" that it allows. Websites go to one of these authorities to get approved, proving that they are actually "phoey.com" or whatever. Once the authority is convinces of who they are, they are given a signed key. They can provide this key when people make requests to them, and, if the user trusts their signing authority, can trust that they are who they say they are.
|
||||
|
||||
Think of it like countries giving out passports. I go to the US and say, I'd like a passport. First, they make sure I am who I am. Then I can go around to any place in the world that trusts the US passport authority and they can be certain I am who I say I am.
|
||||
|
||||
Now, what my proxy is trying to do is, whenever I make any request, respond with, "Yes, I am phoey.com!" If my phone trusts it and sends the request, my proxy will get the request and then resend it on my behalf
|
||||
BIN
content/blog/the-quill-of-duck/banner.webp
Normal file
BIN
content/blog/the-quill-of-duck/banner.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 285 KiB |
106
content/blog/the-quill-of-duck/index.md
Normal file
106
content/blog/the-quill-of-duck/index.md
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
+++
|
||||
authors = ["Scrooge McDuck", "Darkwing Duck"]
|
||||
title = "The Quill of Duck"
|
||||
description = "This is a Duckquill post example, this post has nothing but a bunch of text and random formatting, acting like a demo."
|
||||
date = 2023-08-31
|
||||
updated = "2024-06-21"
|
||||
[taxonomies]
|
||||
tags = ["Demo", "Test"]
|
||||
[extra]
|
||||
banner = "banner.webp"
|
||||
toc = true
|
||||
toc_inline = true
|
||||
toc_ordered = true
|
||||
trigger = "This page contains blackjack and hookers, and bad jokes such as this one."
|
||||
disclaimer = """
|
||||
- All tricks in this page are performed by the lab boys, don't try this at home.
|
||||
- Don't expose yourself to 4000° kelvin.
|
||||
- Don't take party escort submission position.
|
||||
- Don't interact with asbestos and moon rocks.
|
||||
"""
|
||||
[extra.comments]
|
||||
# Long thread with image
|
||||
#
|
||||
# host = "mastodon.social"
|
||||
# user = "brownpau"
|
||||
# id = "104529877688537579"
|
||||
#
|
||||
# Thread with multiple images per post
|
||||
#
|
||||
# host = "mastodon.blaede.family"
|
||||
# user = "cassidy"
|
||||
# id = "112774854109302186"
|
||||
#
|
||||
# Thread with preview cards
|
||||
# host = "mastodon.blaede.family"
|
||||
# user = "cassidy"
|
||||
# id = "110669429936617026"
|
||||
#
|
||||
# Post on GoToSocial
|
||||
#
|
||||
# host = "alpha.polymaths.social"
|
||||
# user = "orbitalmartian"
|
||||
# id = "01J7ETKJ19FGBDQGS1ZWZ3KEPP"
|
||||
#
|
||||
# Post on Sharkey
|
||||
#
|
||||
# host = "is-a.wyvern.rip"
|
||||
# user = "volpeon"
|
||||
# id = "9qy755nsnu2c0hbc"
|
||||
host = "toot.community"
|
||||
user = "sungsphinx"
|
||||
id = "111789185826519979"
|
||||
+++
|
||||
|
||||
{% alert(tip=true) %}
|
||||
Recommended banner dimensions are 2:1 aspect ratio and 1920x960 resolution.
|
||||
Other sizes will also work, but will be cut off at the bottom/won't be high enough.
|
||||
{% end %}
|
||||
|
||||
## The what?
|
||||
|
||||
This is a Duckquill post example, this post has nothing but a bunch of text and random formatting, acting like a demo.
|
||||
|
||||
## Some info
|
||||
|
||||
Well, open this file and look at how it's made, it includes all the essential front matter stuff.
|
||||
|
||||
Now to the _Stanley!_
|
||||
|
||||
## The _Stanley_!
|
||||
|
||||
This is the story of a man named _Stanley_.
|
||||
|
||||
_Stanley_ worked for a company in a big building where he was Employee `#427`.
|
||||
|
||||
<figure>
|
||||
|
||||

|
||||
<figcaption>The Office where Stanley works, it has yellow floor and beige walls</figcaption>
|
||||
</figure>
|
||||
|
||||
Employee `#427`'s job was simple: he sat at his desk in Room `427` and he pushed buttons on a keyboard.
|
||||
|
||||
Orders came to him through a monitor on his desk telling him what buttons to push, how long to push them, and in what order.
|
||||
|
||||
This is what Employee `#427` did every day of every month of every year, and although others may have considered it soul rending,
|
||||
|
||||
_Stanley_ relished every moment that the orders came in, as though he had been made exactly for this job.
|
||||
|
||||
And _Stanley_ was happy.
|
||||
|
||||
And then one day, something very peculiar happened.
|
||||
|
||||
Something that would forever change _Stanley_;
|
||||
|
||||
Something he would never quite forget.
|
||||
|
||||
He had been at his desk for nearly an hour when he had realized not one single order had arrived on the monitor for him to follow.
|
||||
|
||||
No one had shown up to give him instructions, call a meeting, or even say 'hi'. Never in all his years at the company had this happened, this complete isolation.
|
||||
|
||||
Something was very clearly wrong. Shocked, frozen solid, _Stanley_ found himself unable to move for the longest time.
|
||||
|
||||
But as he came to his wits and regained his senses, he got up from his desk and stepped out of his office.
|
||||
|
||||
All of his co-workers were gone. What could it mean? Stanley decided to go to the meeting room; perhaps he had simply missed a memo.
|
||||
BIN
content/blog/the-quill-of-duck/the-office.webp
Normal file
BIN
content/blog/the-quill-of-duck/the-office.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 65 KiB |
Loading…
Add table
Add a link
Reference in a new issue