travisshears / Gemini Ink Demo Server (Javascript)
0 вподобань
0 форк(-ів)
4 файл(-ів)
Остання активність
Code from https://mosfetarium.com/blog/gemini-ink-server/
GEMINI INK DEMO SERVER
This little node js server is a demonstration of playing text-only narrative games created with Ink (https://github.com/inkle/ink) over the gemini protocol (https://gemini.circumlunar.space/). It uses basically a bunch of standard nodejs functionality and inkjs (https://github.com/y-lohse/inkjs). The demo game is The Intercept, also made by Inkle, not me! So don't give me credit for the game (https://github.com/inkle/the-intercept).
To run this. You will need to install node and npm. You will also need a gemini server cert!
travisshears / Now / Finger personal site page
0 вподобань
0 форк(-ів)
2 файл(-ів)
Остання активність
| 1 | --- |
| 2 | import BasePage from "../layouts/BasePage.astro"; |
| 3 | import {frontmatter, Content } from '../content/now.md'; |
| 4 | import cache from '../backends/cache'; |
| 5 | |
| 6 | const cacheKey = 'finger-content'; |
| 7 | let fingerContent = await cache.get<string>(cacheKey); |
| 8 | if(!fingerContent){ |
| 9 | const res = await fetch('https://plan.cat/~travisshears'); |
| 10 | fingerContent = await res.text(); |
travisshears / jjcommit.sh
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність
Little script to describe jj changes including the diff so it is easier to write message
| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | # Run jj diff and prefix each line with "JJ: " |
| 6 | diff_output="$(jj diff | sed 's/^/JJ: /')" |
| 7 | |
| 8 | # Add two newlines at the top (without the prefix) |
| 9 | final_output="\n\n$diff_output" |
travisshears / Anubis Config
0 вподобань
0 форк(-ів)
3 файл(-ів)
Остання активність
See full blog post https://travisshears.com/tech/blog/blocking-ai-scraping
| 1 | bots: |
| 2 | - name: php |
| 3 | path_regex: php$ |
| 4 | action: DENY |
| 5 | - name: api-calls |
| 6 | expression: |
| 7 | any: |
| 8 | - 'method == "POST"' |
| 9 | - 'method == "PATCH"' |
| 10 | - 'method == "DELETE"' |
travisshears / nostr-rs-relay json logging
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність
Patch to add JSON logging to nostr-rs-relay so logs can be parsed by loki
| 1 | bf6abd3 (HEAD -> master, homelab/master) feat: json logging |
| 2 | diff --git a/Cargo.lock b/Cargo.lock |
| 3 | index c8354d2..3ca8556 100644 |
| 4 | --- a/Cargo.lock |
| 5 | +++ b/Cargo.lock |
| 6 | @@ -3671,6 +3671,16 @@ dependencies = [ |
| 7 | "tracing-core", |
| 8 | ] |
| 9 | |
| 10 | +[[package]] |
Новіше
Пізніше