Skip to content

Instantly share code, notes, and snippets.

View ci7lus's full-sized avatar
🍜
ラーメン

ci7lus

🍜
ラーメン
View GitHub Profile
@ci7lus
ci7lus / japanpost.userscript.js
Last active September 17, 2020 01:30
ゆうちょダイレクト オートコンプリートスクリプト https://greasyfork.org/ja/scripts/390584-yucho-autocomplete
// ==UserScript==
// @name YUCHO AUTOCOMPLETE
// @namespace https://ci7lus.github.io
// @version 0.3
// @description ゆうちょダイレクト オートコンプリートスクリプト
// @author ci7l
// @match https://*.jp-bank.japanpost.jp/*
// @grant none
// @license MIT
// @copyright Copyright (c) 2020 ci7lus
@ci7lus
ci7lus / Controller.tsx
Created April 23, 2021 08:34
なかなかいい感じに動いた風だったんだけどキャンセルできなくなることがあるな 供養
import React, { useEffect, useRef, useState } from "react"
import { remote } from "electron"
import { CommentOpacitySlider } from "./controllers/CommentOpacitySlider"
import { useRecoilState, useRecoilValue, useSetRecoilState } from "recoil"
import { mirakurunPrograms, mirakurunServices } from "../../atoms/mirakurun"
import {
mainPlayerAudioChannel,
mainPlayerAudioTrack,
mainPlayerAudioTracks,
mainPlayerCommentOpacity,
@ci7lus
ci7lus / protobuf-inspector-config-to-proto.py
Last active May 1, 2021 05:12
usage: python3 protobuf-inspector-config-to-proto.py protobuf_config.py > proto.proto
import sys
import importlib.machinery
argv = sys.argv
loader = importlib.machinery.SourceFileLoader("types", argv[1])
loaded = loader.load_module()
print("""syntax = "proto3";
@ci7lus
ci7lus / nhk-sports-or-jp-pip.js
Created July 24, 2021 08:20
disable disable PiP in sports.nhk.or.jp
// ==UserScript==
// @name sports.nhk.or.jp disable disable PiP
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://sports.nhk.or.jp/*
// @icon https://www.google.com/s2/favicons?domain=nhk.or.jp
// @grant none
// ==/UserScript==
#!/bin/bash
# mirakurun_check.sh
# 10秒受信して200かつdropしていればその数を、200以外だったらステータスコードをwebhookするshellscript
# MIT License
# https://gist.github.com/ci7lus/fa8ceccc9fad00957d1feb47fe84c04d
set -eu
# https://github.com/xtne6f/tsselect_gcc
@ci7lus
ci7lus / @web-std+blob+2.1.2.patch
Created August 14, 2021 16:35
@web-std/blob (imported by src/platform.js, node_modules/@web-std/fetch/src/index.js, node_modules/@web-std/fetch/src/body.js) [!] Error: 'default' is not exported by node_modules/web-streams-polyfill/dist/polyfill.mjs, imported by node_modules/@web-std/fetch/src/body.js
diff --git a/node_modules/@web-std/blob/src/package.js b/node_modules/@web-std/blob/src/package.js
index bb7235d..605dd5e 100644
--- a/node_modules/@web-std/blob/src/package.js
+++ b/node_modules/@web-std/blob/src/package.js
@@ -1,5 +1,5 @@
import { TextEncoder, TextDecoder } from "web-encoding"
-import streams from "web-streams-polyfill"
+import * as streams from "web-streams-polyfill"
const { ReadableStream: ReadableStreamPolyfill } = streams
data = """
0:04:36.10 start
0:06:37.00 end
""".strip()
filename = "target.m2ts"
# vdr_to_ffmpeg_for_colab.py
# © 2021 ci7lus MIT License
current_seconds = 0
@ci7lus
ci7lus / mirakurun-3.9.0-beta.1.json
Created August 21, 2021 11:30
Mirakurun 3.9.0-beta.1 Swagger
{
"swagger": "2.0",
"info": {
"title": "Mirakurun",
"version": "3.9.0-beta.1",
"description": "DVR Tuner Server Service for Chinachu Air.",
"contact": { "name": "kanreisa", "url": "https://github.com/kanreisa" }
},
"basePath": "/api",
"consumes": ["application/json"],
body {
font-weight: normal;
}