Skip to content

Instantly share code, notes, and snippets.

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

ci7lus

🍜
ラーメン
View GitHub Profile
@ci7lus
ci7lus / scan_ch_mirak.sh
Created April 2, 2023 03:23 — forked from uru2/scan_ch_mirak.sh
Mirakurun/mirakcチャンネル設定出力
#!/bin/sh
# Mirakurun/mirakc channel yaml output by uru (https://twitter.com/uru_2)
#
# require:
# stz2012/epgdump
# xmllint (libxml2 tools)
# ISDB-T/S record software
# recpt1, dvbv5-zap & Chinachu/dvbconf-for-isdb
set -eu
@ci7lus
ci7lus / sgdm-m1.md
Last active December 11, 2022 23:41

Same Game, Diffrent Music on M1 macOS

  1. 落としてくる
  2. 解答してターミナル.appも開く
  3. image
  4. Contents -> MacOS と進む
  5. image
  6. Optionキーを押しながら右クリックして「"SameGameDifferentMusic"のパス名をコピー」する
  7. ターミナルにchmod +x "と入れた後、Cmd+Vでコピーしたパスを貼り付けて、"で閉じる
import fetch from 'node-fetch'
/**
* @param {NapkinRequest} req
* @param {NapkinResponse} res
*/
// Fork this function to input your own slack webhook url
const url = process.env.SLACK_WEBHOOK_URL
const INDIGO_CLIENT_ID = process.env.INDIGO_CLIENT_ID
const INDIGO_CLIENT_SECRET = process.env.INDIGO_CLIENT_SECRET
type DeviceCodeResult = {
device_code: string
user_code: string
verification_url: string
expires_in: number
interval: number
}
@ci7lus
ci7lus / index.js
Last active June 13, 2022 08:43
Electron Bug Repro
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const promises_1 = require("timers/promises");
const electron_1 = require("electron");
electron_1.app.on("ready", async () => {
const browser = new electron_1.BrowserWindow({
titleBarStyle: "hiddenInset",
titleBarOverlay: true,
});
await (0, promises_1.setTimeout)(1000);
@ci7lus
ci7lus / activities-from-user.gql
Created February 22, 2022 07:23
Annict GQL research
query {
user(username: "kokoro") {
activities(first: 10) {
edges {
annictId,
action,
node {
__typename
... on Status {
work {
@ci7lus
ci7lus / skip-arch.diff
Created January 24, 2022 17:57
vlc skip same arch cache
diff --git a/Makefile.am b/Makefile.am
index dd282b23cc..dc353dddbd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -169,10 +169,7 @@ if BUILD_VLC
###############################################################################
install-exec-hook:
if test "$(build)" = "$(host)"; then \
- PATH="$(DESTDIR)$(bindir):$$PATH" \
- LD_LIBRARY_PATH="$(DESTDIR)$(libdir):$$LD_LIBRARY_PATH" \
/**
* https://gist.github.com/ci7lus/b5af28c5f8180276d31efe6fdfac91ba
* The MIT License (MIT)
Copyright (c) 2015 Sergey Radionov
Copyright (c) 2015 Ivo Georgiev
Copyright (c) 2015 Alexandru Branza
Copyright (c) 2021 ci7lus
Permission is hereby granted, free of charge, to any person obtaining a copy
/* eslint-disable prefer-const */
/*
* Port of Andrew Moon's Poly1305-donna-16. Public domain.
* https://github.com/floodyberry/poly1305-donna
* https://github.dev/sodium-friends/sodium-javascript
*/
import Chacha20 from "chacha20-universal"
export const generateMac = (
key: Uint8Array,