Skip to content

Instantly share code, notes, and snippets.

View Steffo99's full-sized avatar

Stefano Pigozzi Steffo99

View GitHub Profile
@Steffo99
Steffo99 / akkoma-color.js
Created June 17, 2024 15:03
Add a color to yourself on Akkoma
const YOUR_USERNAME = "steffo"
const DESIRED_COLOR = "#1a5fb4"
const DESIRED_STYLE = "solid"
const request = indexedDB.open("localforage");
request.onsuccess = (event) => {
const db = event.target.result;
const transaction = db.transaction(["keyvaluepairs"], "readwrite");
const kvp = transaction.objectStore("keyvaluepairs");
const kvprequest = kvp.get("vuex-lz");
@Steffo99
Steffo99 / README.md
Last active April 15, 2024 22:00
Godot palette for Inkscape / GNU IMP
@Steffo99
Steffo99 / matrix-rpg-extension.md
Last active April 12, 2023 23:56
Tentative spec for a Matrix extension for roleplaying games

Un modulo di estensione per Matrix per giocare di ruolo via chat.

Concetti base di Matrix

Questa è una grossa semplificazione di come funziona effettivamente un server Matrix perchè in realtà internamente è molto più complesso. Per più dettagli, andatevi a leggere la specifica completa...

Tutte le cose che avvengono su Matrix sono rappresentate attraverso events, che i client possono inviare in vari canali di comunicazione detti rooms.

Events

@Steffo99
Steffo99 / 1.md
Created March 18, 2023 01:22
GPT-4 testing

You are an AI assistant which specializes in maths, especially in abstract algebra and geometry.

Steffo

A friend challenged me to find a number, no greater than ten, and no smaller than twelve, which raised to the fifth power equals itself.

GPT-4

There is no such number that satisfies the given conditions. The number must be greater than 10 and smaller than 12, but there is no number between 10 and 12 that, when raised to the fifth power, equals itself.

@Steffo99
Steffo99 / config.json
Created January 16, 2023 17:41
Enable maths in Element Desktop
{
"features": {
"feature_latex_maths": true
}
}
@Steffo99
Steffo99 / ttt.cfg
Created September 16, 2022 19:47
Advanced config file for GMod TTT Servers.
// Forked from: https://gist.github.com/RalphORama/438085f1751ecd4916ec29b352d86dc0
// Make sure Terrorists can't hear Traitor radio
sv_alltalk "0"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Preparation and post-round
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// The length of the preparation phase that occurs after players spawn in and
@Steffo99
Steffo99 / steffo_rotanimator.scm
Created July 9, 2022 01:17
Rotanimator script for GIMP
; Inspired by the Mura Meister Copies script
; https://gimplearn.net/viewtopic.php?f=4&t=16
(define
(script-fu-steffo-rotanimator
image
layer
num-of-copies
)
(let* (
@Steffo99
Steffo99 / simple_archive.fish
Created June 20, 2022 02:08
A simple archival script using fish.
#!/usr/bin/fish
echo_progress "Backing up (almost) everything..."
echo
for project in (find * -mindepth 0 -maxdepth 0 -type d)
# We're not ready to backup plexarr yet.
if test "$project" = "plexarr"
continue
end
@Steffo99
Steffo99 / .Xmodmap
Created June 9, 2022 18:08
.Xmodmap for F13..F24
keycode 191 = F13 F13 F13
keycode 192 = F14 F14 F14
keycode 193 = F15 F15 F15
keycode 194 = F16 F16 F16
keycode 195 = F17 F17 F17
keycode 196 = F18 F18 F18
keycode 197 = F19 F19 F19
keycode 198 = F20 F20 F20
keycode 199 = F21 F21 F21
keycode 200 = F22 F22 F22
@Steffo99
Steffo99 / font-orderer.fish
Created January 29, 2022 16:04
Reorder and rename fonts in directory
#!/bin/fish
for file in *
set font_name (fc-query "$file" | egrep 'fullname:' | sed -E 's/fullname: \"(.+)\"\(s\)/\1/g')
set file_name (echo "$font_name" | string trim | sed -E 's/[^A-Za-z0-9]/-/g' | string lower)
set file_ext (echo (basename "$file" | string split -r -m1 ".")[2] | string lower)
set full_name (echo "$file_name.$file_ext")
mv $file $full_name
end