Skip to content

Instantly share code, notes, and snippets.

View ThinaticSystem's full-sized avatar
🈂️
以外の感情がない

しなちくシステム ThinaticSystem

🈂️
以外の感情がない
View GitHub Profile
@ThinaticSystem
ThinaticSystem / misskey_drive.sxcu
Last active April 1, 2022 21:44
ShareXでMisskeyのドライブへアップロードするやつ
{
"Version": "13.7.0",
"Name": "Misskey Drive",
"DestinationType": "ImageUploader, TextUploader, FileUploader",
"RequestMethod": "POST",
"RequestURL": "https://misskey.io/api/drive/files/create",
"Body": "MultipartFormData",
"Arguments": {
"i": "YOUR_ACCESS_KEY",
"folderId": "ShareX"
@ThinaticSystem
ThinaticSystem / keybase.md
Created April 16, 2022 07:16
Keybaseのやつ

Keybase proof

I hereby claim:

  • I am ThinaticSystem on github.
  • I am thinaticsystem (https://keybase.io/thinaticsystem) on keybase.
  • I have a public key whose fingerprint is 537A 4AB7 0981 4604 08C5 F956 15DB EA44 EED2 0D32

To claim this, I am signing this object:

@ThinaticSystem
ThinaticSystem / show_misskey_version.sh
Created April 20, 2022 08:46
Misskeyのバージョンを表示するやつ
grep -oP '(?<="version":\s")\d+\.\d+\.\d+(?="\s*,)' /path/to/misskey/package.json
@ThinaticSystem
ThinaticSystem / mogu_yummy.md
Last active May 29, 2022 07:51
もぐもぐYUMMY!(霜月用)

もぐもぐYUMMY!/ 猫又おかゆ

concert

A

(2分)
Gb→Db/F→Db/Ab→Bbm→
Gb→Db/F→Db/Ab→Bbm→

@ThinaticSystem
ThinaticSystem / chord_name_parser.pegjs
Created May 29, 2022 13:16
コードネームパーサー(wip)
// TODO degreeの9, 11, 13, 7(dimMaj7のやつ)を配列に(全部配列にしちゃう?)
Chord
= r:Root q3:Quality3 q4:Quality4 o:Option s:Suspended t:Tensions {
const deg = new Array(1+7);
deg.fill(); // undefinedで埋めないとmap()で空の要素のときの処理がスキップされちゃう
deg[1] = 'P';
let c = deg.map( (value, index) => {
value = (q3.constitute[index] !== undefined) ? q3.constitute[index] : value;
@ThinaticSystem
ThinaticSystem / misskey.log
Last active June 12, 2022 06:09
Misskey12.111.0でのスロークエリログ
-- Logs begin at Mon 2022-05-23 19:36:51 JST, end at Sun 2022-06-12 14:55:37 JST. --
query is slow: SELECT DISTINCT "distinctAlias"."notification_id" AS "ids_notification_id", "distinctAlias"."notification_id" FROM (SELECT "notification"."id" AS "notification_id", "notification"."createdAt" AS "notification_createdAt", "notification"."notifieeId" AS "notification_notifieeId", "notification"."notifierId" AS "notification_notifierId", "notification"."type" AS "notification_type", "notification"."isRead" AS "notification_isRead", "notification"."noteId" AS "notification_noteId", "notification"."followRequestId" AS "notification_followRequestId", "notification"."userGroupInvitationId" AS "notification_userGroupInvitationId", "notification"."reaction" AS "notification_reaction", "notification"."choice" AS "notification_choice", "notification"."customBody" AS "notification_customBody", "notification"."customHeader" AS "notification_customHeader", "notification"."customIcon" AS "notification_customIcon", "notificati
@ThinaticSystem
ThinaticSystem / wishlist.md
Last active March 9, 2023 13:40
ご購入予定

ご購入予定

  • CPUクーラーのファンの替え
    はやく買わないとぺっちん溶けるので大至急かも
    NF-A12x25かも
  • NVMeのSSD(1TBくらい)
    ぺっちん延命計画
  • 電脳コイルのOST
    あなたが私にくれたもの~🎶
  • sE8ペア\
@ThinaticSystem
ThinaticSystem / chord_parser.ts
Last active July 17, 2022 05:51
terrario(0.2.0)習作
import * as P from 'terrario';
const _ = P.option(P.alt([P.str(' '), P.str(' ')]).many(1));
const degreeNatural = P.alt([
P.str('Ⅰ'),
P.str('Ⅱ'),
P.str('Ⅲ'),
P.str('Ⅳ'),
P.str('Ⅴ'),
@ThinaticSystem
ThinaticSystem / yun.d.ts
Created August 13, 2022 16:36
飯島ゆんの型ガード
const isYun =
(maybe: Yun | Nene | Inn): maybe is Yun
=> !(
isGameCubeGenerators(maybe)
|| isToyokoInn(maybe)
);
@ThinaticSystem
ThinaticSystem / invite_own_misskey.js
Created February 4, 2023 05:17
Misskey招待コード生やしブックマークレット
(async() => {
const MISSKEY_NAME = 'ほにクラブ';
const MISSKEY_HOST = 'https://honi.club';
const MISSKEY_ADMIN_API_TOKEN = 'とーくん';
const fn_copyToClipboard = (text) => {
const textarea = document.createElement('textarea');
textarea.textContent = text;
document.body.appendChild(textarea);