Skip to content

Instantly share code, notes, and snippets.

@VyrCossont
VyrCossont / scratch_1.md
Last active May 29, 2024 00:38
GotoSocial visibility cache extension proposal

Visibility cache extension proposal

Current or near future state of things

Visibility cache

We have a VisibilityCache, keyed by VisibilityType and requesting account and item IDs, and storing a CachedVisibility. The type can be one of these:

  • VisibilityTypeAccount: item is account, account is visible to requester
  • VisibilityTypeStatus: item is status, status is visible at all to requester (partially depends on VisibilityTypeAccount)
@VyrCossont
VyrCossont / jelpi_pinput.patch
Created November 27, 2022 03:24
Pinput patch for PICO-8's Jelpi demo
--- jelpi.p8
+++ jelpi.p8
@@ -1,9 +1,51 @@
pico-8 cartridge // http://www.pico-8.com
-version 30
+version 38
__lua__
-- jelpi demo
-- by zep
+-- modified for pinput
@VyrCossont
VyrCossont / mastodon-advanced-search.md
Last active January 27, 2023 03:43
filter by users and sort by date in Mastodon. see https://demon.social/@vyr/109296080568061011

new search features

  • setting SEARCH_ALL_VISIBLE_TOOTS=true in your instance config will let users search all non-private posts, not just the ones they've interacted with.
  • prefixing a search query with 🔍 will use ES simple query string syntax instead of Mastodon's weird broken subset of it, which will let you use "double quotes" for literal strings including white space, + to force a term to be included, or - to force a term to be excluded.
  • prefixing a search query with 🔎 will use ES regular query string syntax which is like simple query syntax, except:
    • syntax errors will cause the search to fail, so if you don't get anything back, that's why.
  • you can specify individual fields to match on. if you don't specify a field for a given search term, it does a normal full-text search for
183 start
68 _ZN12atelier_esri5audio13MusicPlayback4stop17h55facee57b4cc1a3E
237 _ZN12atelier_esri5audio13MusicPlayback13start_pattern17hbabd8916698c68bcE
2297 update
76 _ZN4core4iter6traits8iterator8Iterator3zip17ha49155faae89466aE
129 _ZN4core9panicking18panic_bounds_check17hba06abf6b514a1a1E
13 _ZN4core5slice5index24slice_end_index_len_fail17h6b517d3f803dc244E
117 _ZN105_$LT$core..iter..adapters..step_by..StepBy$LT$I$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4next17hf691525a925cbe81E
26 _ZN12atelier_esri5wasm48blit_sub17h697307c76c92842bE
286 _ZN12atelier_esri11shadow_text17h128bbd0a55fff7f9E
@VyrCossont
VyrCossont / Rock Band 3 Keytar to PICO-8 mappings.csv
Last active August 31, 2022 20:12
use a Rock Band 3 keytar with PICO-8 thru midiStroke with these. see https://demon.social/@vyr/108919307900427654
note MIDI note number keystroke
C1 24 z
C♯1 25 s
D1 26 x
D♯1 27 d
E1 12 c
F1 13 v
F♯1 14 g
G1 15 b
G♯1 32 h