Skip to content

tomjtoth/tomjtoth.github.io

Repository files navigation

About

These are mostly static websites and other tools I use from different machines without bothering to log in anywhere.

Custom solutions

IndexedDB

All, but 2 reducers have been migrated to Dexie.js from localStorage. Sidepanel and battery-monitor both store simple enough data to be quickly (de-)serialized.

Cache

SW intercepts requests:

  • the app's core resources are cached during the install event (1st page visit)
  • the Arx minigame's assets are cached once, and served always from cache later
    • upon 2nd visit to the website, as importing App is faster than registering the service-worker
  • webpack generated .js and .css files are also refreshed along with the cached index.html when necessary
  • the client gets responses from local cache if exists, and should be able to access new resources upon next request

Arch Linux

I used to hop distros, then tried installing Arch on anything that hums ever since 2009, this is the current version:

bash <(curl -L ttj.hu/linux/clonefig.sh)

Aliases are also sourced from a few friends' machines.