Skip to content

Instantly share code, notes, and snippets.

const token = Deno.env.get("TISSUE_TOKEN");
const col1 = Deno.args[0];
const col2 = Deno.args[1];
const fetchCollectionItems = async (collectionID: string) => {
const allItems = [];
for (let page = 1;; page++) {
const res = await fetch(
`https://shikorism.net/api/v1/collections/${collectionID}/items?page=${page}&per_page=100`,
const token = Deno.env.get("TISSUE_TOKEN");
const links = [
"https://komiflo.com/comics/20888",
"https://komiflo.com/comics/20889",
"https://komiflo.com/comics/20890",
"https://komiflo.com/comics/20891",
"https://komiflo.com/comics/20892",
"https://komiflo.com/comics/20893",
"https://komiflo.com/comics/20894",
@shibafu528
shibafu528 / mikutter-update-plugins-to-gtk3.sh
Last active December 22, 2021 23:12
mikutter 5.0でアップデートが必要なプラグインの一部を自動更新するスクリプト
#!/bin/sh
if [ -z "$MIKUTTER_CONFROOT" ]; then
MIKUTTER_CONFROOT="$HOME/.mikutter"
fi
echo "MIKUTTER_CONFROOT: $MIKUTTER_CONFROOT"
if [ ! -d "$MIKUTTER_CONFROOT" ]; then
echo "MIKUTTER_CONFROOT does not exist."
exit 1
@shibafu528
shibafu528 / twitter-bootstrap-gtk3.sh
Last active November 6, 2021 08:18
install mikutter twitter plugins for topic/887-gtk3
#!/bin/bash
# original: https://github.com/mikutter/twitter_bootstrap/blob/7704d9a8da4b6cc1fa4d8baad8a8eba1d455b704/twitter-bootstrap.sh
# GTK3_FORKS data source: https://twitter.com/tsutsuii/status/1455931218730500103
# usage:
# checkout to ~/.mikutter/plugin
# $ ./twitter-bootstrap-gtk3.sh
#
# checkout to another confroot
# $ ./twitter-bootstrap-gtk3.sh <confroot-path>
;;; -*- coding: utf-8 -*-
;; okuri-ari entries.
;; okuri-nasi entries.
あおやぎとうや /青柳冬弥/
あきやまみずき /暁山瑞希/
あさひなまふゆ /朝比奈まふゆ/
あずさわこはね /小豆沢こはね/
おおとりえむ /鳳えむ/
かみしろるい /神代類/
きりたにはるか /桐谷遥/
Plugin.create :delayer_high_water_marker
Delayer.default.instance_eval do
alias run_once_dhwm run_once
def run_once(...)
s1 = size_norec
res = run_once_dhwm(...)
s2 = size_norec
warn "delayer tasks #{s1} -> #{s2}"
@shibafu528
shibafu528 / ps-in.bat
Last active July 18, 2020 03:52
Powershellをbatに埋めこむテクニック。引用元が消えてたのでバックアップ。
@powershell -NoProfile -ExecutionPolicy Unrestricted "$s=[scriptblock]::create((gc \"%~f0\"|?{$_.readcount -gt 1})-join\"`n\");&$s" %*&goto:eof
Write-Host "Hello, World!!"
console.log(JSON.stringify(request));
console.log(JSON.stringify(imports));
console.log(JSON.stringify(server));
const args = [];
// -d
args.push('-d');
args.push(`'${request.body.replace(/\n/g, '')}'`);
@shibafu528
shibafu528 / sayaka-on-arch.patch
Created January 3, 2020 04:28
Arch Linuxでsayakaを動かすためにいじった場所
diff --git a/vala/System.OS.native.c b/vala/System.OS.native.c
index 1d8f950..03256db 100644
--- a/vala/System.OS.native.c
+++ b/vala/System.OS.native.c
@@ -28,7 +28,9 @@
#include <sys/ioctl.h>
#include <sys/param.h>
#include <sys/sysctl.h>
+#if defined(BSD)
#include <sys/ttycom.h>
Plugin.create :kadoma do
on_update do |w, ms|
ms.each do |m|
if m.description.include?("門真") || (m.description.include?("@") && m.description.include?("いやじゃ"))
compose(w, body: "@toshi_a@social.mikutter.hachune.net まちカドまぞくを見ろ")
end
end
end
end