Skip to content

Instantly share code, notes, and snippets.

View KisaragiEffective's full-sized avatar
🔧
painful state

Kisaragi KisaragiEffective

🔧
painful state
  • Some(_)
  • Hokkaido, Japan
View GitHub Profile
@mei23
mei23 / threads_ap_20240322.md
Last active May 22, 2024 10:23
ThreadsのActivityPub Object

ThreadsのActivityPub Object 2024/03/22

取得するには

まず取得するにはちょっとクセがある

  • 該当ユーザーがオプトインしてる必要がある
  • GETに署名を付ける必要がある (MisskeyでもMastodonでもデフォルトで有効なはず)
    • この場合外部からこちらの署名を取得しに来てもらう必要があるため、必然的にインターネットに公開されたサーバーからでないとリクエストできないと思われる。
  • AP対応 (2023/3/22) より前の投稿はおそらく取得できない
  • なんか429を返されることがある。(URLプレビューとかでFacebookとかインスタのプレビュー要求しまっくってるとFacebook系のNWからブロックされる?上記前提条件を満たしてないと非AP要求とみなされてレートでブロックされる?)
@lilxyzw
lilxyzw / mmd_morph_names.txt
Created May 13, 2023 11:36
mmd_morph_names_all.txtは手持ちモーション483個からモーフ使用率を計算したものです。キーフレーム数が2以下、または全てのキーフレームの値が0.01以下のものは扱われていないものとして除外しています。mmd_morph_names.txtは使用率の高いモーフから表記揺れをMMD付属モデルに合わせ、そこから更に厳選したものです。
まばたき
笑い
ウィンク
ウィンク2
ウィンク右
ウィンク2右
はぅ
なごみ
びっくり
じと目
@kiler129
kiler129 / generate_smbios.sh
Created April 12, 2023 07:38
Script to generate real SMBIOS for QEMU
#!/bin/bash
# See https://www.qemu.org/docs/master/system/invocation.html?highlight=smbios#hxtool-4
declare -A smb0
declare -A smb1
declare -A smb2
declare -A smb3
declare -A smb4
declare -A smb11
declare -A smb17
2022.12.15 22:27:22 Log - [Behaviour] OnPlayerJoined vrcbot
2022.12.15 22:27:22 Log - [Behaviour] Initialized PlayerAPI "vrcbot" is remote
2022.12.15 22:27:22 Log - [Behaviour] CacheComponents: ParticleSystems 0, AudioSources 0
2022.12.15 22:27:22 Log - Found SDK2 avatar descriptor.
2022.12.15 22:27:22 Log - [Behaviour] CacheComponents: ParticleSystems 0, AudioSources 0
2022.12.15 22:27:22 Log - Measure Human Avatar Avatar
2022.12.15 22:27:22 Log - [Behaviour] Initialize None Avatar (UnityEngine.Animator) VRCPlayer[Remote] 80105687 8 (ÏÏÏÏÌÏÌÎÏÍÏÏÎÎÏÌÎÌÏÌÍÍÎ) False Blocked
2022.12.15 22:27:22 Log - EyeLookController: found avatar type =VRC_TEMPLATE_01
2022.12.15 22:27:22 Error - [Behaviour] Can't push runtime controller onto a null avatar animator.
2022.12.15 22:27:23 Log - [Behaviour] Destination fetching: wrld_3448f7e4-79a7-4115-a44c-e6221174969f:00219~hidden(usr_32525db8-119c-43b5-ae0b-1c287151a529)~region(jp)~nonce(30DE42E2405AF
@aradarbel10
aradarbel10 / Main.hs
Created December 6, 2022 15:40
A minimalistic example of bidirectional type checking for system F
{-# LANGUAGE StrictData, DerivingVia, OverloadedRecordDot #-}
{-
(compiled with GHC 9.4.2)
-}
{-
HEADS UP
this is an example implementation of a non-trivial type system using bidirectional type checking.
it is...
@makamys
makamys / 1.7.10-security-vulnerabilities.md
Last active June 20, 2024 10:16
1.7.10 Security Vulnerabilities

1.7.10 Security Vulnerabilities

Having been released over 9 years ago, Minecraft 1.7.10 is no longer officially supported, which means it is up to the users to mitigate security vulnerabilities.

I cannot guarantee this list is complete or accurate, this is just a compilation of what I have learned.

Log4J CVE-2021-44228 ("Log4Shell")

Date discovered: 2021-12-10

@buzztaiki
buzztaiki / spdx-license-identifier.md
Last active May 22, 2023 15:53
SPDX-License-Identifierの使い方

SPDX-License-Identifierの使い方

ファイルに一行書くだけでライセンスの宣言ができるやつ。これを使わいなとファイルヘッダにも何行も書く必要があって大変。

SPDX は Software Package Data Exchange の略で、Linux Fundation 傘下の SPDXプロジェクトが定めてる SBOM の規格らしい。SPDX は広範な規格だけど、そのなかに SPDX-ID っていう「ライセンスを簡単に書けるよ」ってやつがあって、それが SPDX-License-Identifier。ということ。多分。

こんな感じで使えばよい:

@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active June 27, 2024 10:49
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m

\u001b is the unicode escape for ESCAPE/ESC, meant to be used in the source of your bot (see ). If you wish to send colored text without using your bot you need to copy the character from the website.

@TrueCP6
TrueCP6 / forge-to-fabric-ports.md
Last active January 29, 2024 16:09
A list of decently sized Forge mods ported or being ported to Fabric
;; -*- fundamental -*- ; coding: utf-8 -*-
;; okuri-ari entries.
いr /挿入/
かk /顔射/自慰/
きm /理性崩壊/
こk /自慰/
じこr /避妊失敗/
じこt /避妊失敗/
だs /射精/排卵/
でc /射精/排卵/