Skip to content

Instantly share code, notes, and snippets.

@CAT5NEKO
CAT5NEKO / gist:c3ca46cb0d8fa3b972ebdab4c25c13b7
Created November 1, 2025 06:21
VSCode オレオレカスタマイズ
{
"files.autoSave": "onFocusChange",
"files.exclude": {
"**/.idea": true,
"**/.vscode": true,
"**/.DS_Store": true
},
"window.restoreWindows": "folders",
"workbench.startupEditor": "none",
"extensions.ignoreRecommendations": true,
//ボタンには関数の名前を指定する。
//長い名前にしちゃったけど、ここではgetInviteCodeSequentially。
//現時点で上に切り詰める部分のロジックで実装漏れしてるんだけど解決法思いつかないので保留。
function getInviteCodeSequentially() {
var sheet1 = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("ボタンを表示するシート名");
var displayCell = sheet1.getRange("B1");
var sheet2 = SpreadsheetApp.openById('招待コードを格納する表のID').getSheetByName("招待コードを格納するシート名");
var codes = sheet2.getRange("A1:A").getValues();
<script>
export default {
data() {
return {
nowPlaying: {
title: '',
artist: '',
album: '',
url: '',
isPlaying: false,

環境

  • Ubuntu 24.04.1 LTS (Azure VM)
  • Node v22.12.0 (binary)
  • npm 10.9.0
  • pnpm 10.4.0

再現手順

git clone https://github.com/misskey-dev/misskey.git .
git submodule update --init --recursive
@CAT5NEKO
CAT5NEKO / main.go
Created February 5, 2025 17:03
ドメインから@以降を抜き取るやつ
package main
import (
"bufio"
"fmt"
"os"
"strings"
)
func main() {
@CAT5NEKO
CAT5NEKO / output.txt
Last active February 5, 2025 17:00
bannedEmailList
This file has been truncated, but you can view the full file.
1033edge.com
onetm-ml.com
11mail.com
007systems.com
0108.dk
012.net.il
01auto.pl
01hosting.biz
01.rocketemail.biz
027168.com
@CAT5NEKO
CAT5NEKO / app.js
Created February 5, 2025 09:46
misskeyUpdateButtler
import React, { useState } from "react";
const UpdateButton = () => {
const [status, setStatus] = useState("");
const handleClick = async () => {
try {
setStatus("Processing...");
const response = await fetch("http://トンネルで公開するURL/update", {
method: "POST",
@CAT5NEKO
CAT5NEKO / main.go
Created November 12, 2024 20:45
APIプロトタイプ1
package main
import (
"encoding/json"
"log"
"net/http"
)
type CallingAPIs struct {
Item string `json:"item"`
// database.go
package main
import (
"database/sql"
"fmt"
"log"
"os"
@CAT5NEKO
CAT5NEKO / spotify.ts
Created May 11, 2024 16:49
きちえああああああああああああああああああああああああああああああああああああああああああああああああ!
import { getJson } from '../utils/got';
import { Summaly } from '../summaly';
import * as cheerio from 'cheerio';
import { scpaping } from '../utils/got';
export function test(url: URL): boolean {
if (url.hostname === 'open.spotify.com' || url.hostname === 'spotify.link' || url.hostname === 'spotify.app.link') {
return true;
}
return false;