Skip to content

Instantly share code, notes, and snippets.

Avatar
🥳
ピーヒョロ

ci7lus

🥳
ピーヒョロ
View GitHub Profile
View activities-from-user.gql
query {
user(username: "kokoro") {
activities(first: 10) {
edges {
annictId,
action,
node {
__typename
... on Status {
work {
@ci7lus
ci7lus / skip-arch.diff
Created Jan 24, 2022
vlc skip same arch cache
View skip-arch.diff
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" \
View poly1305.ts
/* 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,
View sodium-javascript.d.ts
declare module "sodium-javascript" {
export function crypto_aead_chacha20poly1305_ietf_encrypt(
ciphertext: Uint8Array,
message: Uint8Array,
ad: Uint8Array | null,
nsec: unknown | null,
npub_nonce: Uint8Array,
key: Uint8Array
): number
export function crypto_aead_chacha20poly1305_ietf_encrypt_detached(
View chain.ts
import { chain } from "stream-chain"
import { parser } from "stream-json"
import { streamArray } from "stream-json/streamers/StreamArray"
import { MirakurunAPI } from "../infra/mirakurun"
const main = async () => {
const client = new MirakurunAPI({
baseUrl: "http://192.168.0.10:40772/api",
})
const claimStream = await client.events.getEventsStream(
View cache.ts
import { serve } from "https://deno.land/x/sift@0.4.2/mod.ts"
serve({
"/": () => new Response(new Date().toISOString()),
})
@ci7lus
ci7lus / mirakurun-3.9.0-beta.1.json
Created Aug 21, 2021
Mirakurun 3.9.0-beta.1 Swagger
View mirakurun-3.9.0-beta.1.json
{
"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"],
View vdr_to_ffmpeg_for_colab.py
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