Skip to content

Instantly share code, notes, and snippets.

View eggplants's full-sized avatar
🏠
Working from home

haruna eggplants

🏠
Working from home
View GitHub Profile
@eggplants
eggplants / git-svn-2023.md
Last active November 26, 2023 03:28 — forked from yancyn/git-svn.md
Migrate Archive Google Code SVN to Git
@eggplants
eggplants / dpy_development_plans_ja.md
Last active April 24, 2022 20:20 — forked from Rapptz/dpy_development_plans.md
discord.pyの開発再開に際して作者(Rapptz)が発表した声明文(英語)を日本語に完訳したもの。(Updated at: 2022-04-25)

discord.pyの開発再開について

エコシステムからの離脱を発表してから6ヶ月経ちましたが、その間に多くのことが起こりました。

この2週間の間に、多くの貢献者と私は一緒になって、Python Discord ボットのエコシステムがほとんど燃えている状態であることを確認しました。他の人の助けを借りて熟考した後、私は開発を再開すべきだという結論に達しました。この2週間の間に、多くの作業がdiscord.pyプロジェクトに追いつき、多くのことを実装し、最終的にv2.0リリースを開始するために費やされました。我々は締め切りに追われていますが、多くの仕事を成し遂げることができました。

なぜ戻ってきたのですか?

3週間ほど前、DiscordはAPIバージョン6と7を2022年5月1日に廃止することを発表しました。現在のベータ版であるv2.0がバージョン9であるのに対し、現在の安定版であるdiscord.pyのv1.7.3はAPIのバージョン7である。つまり、Discordのv6と7の廃止計画により、2022年5月1日をもって安定版のdiscord.py上のボットはすべて動作しなくなる。これは、こんなに早く起こるとは想定していませんでした。

@eggplants
eggplants / clean_pdf.sh
Last active February 21, 2023 23:08 — forked from sneakers-the-rat/clean_pdf.sh
Strip PDF Metadata (more improved version)
#!/usr/bin/env bash
set -euo pipefail
# Color Codes so that warnings/errors stick out
GREEN="\033[32m"
RED="\033[31m"
CLEAR="\033[0m"
USAGE="usage: $0 [<TARGET DIR>=.]"
(function () {
var timer = 100;
document
.querySelectorAll("div > input[type='checkbox']:checked")
.forEach((interest) => {
setTimeout(function () {
interest.click();
}, timer);
timer += 2000;
});
@eggplants
eggplants / bunkai-kei.js
Last active November 7, 2021 18:53 — forked from KOBA789/bunkai-kei.js
http://bunkai-kei.com/ の試聴プレイヤーを dewplayer(Flash 製)から HTML5 Audio に置き換えるUserscript
// ==UserScript==
// @name Restore Bnkaikei Player
// @namespace http://github.com/
// @version 0.1
// @description Replace Bunkaikei's swf player to html one.
// @author KOBA789 (modified: eggplants)
// @homepage https://github.com/eggplants
// @match http://bunkai-kei.com/release/*
// @grant none
// ==/UserScript==
@eggplants
eggplants / _shellcheck.csv
Last active February 9, 2024 12:11 — forked from nicerobot/_shellcheck.md
Enumerated shellcheck codes https://github.com/koalaman/shellcheck/wiki/Checks (Update: 05-21-2021)
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 9.
"name","link","description"
"SC1000","https://github.com/koalaman/shellcheck/wiki/SC1000","$ is not used specially and should therefore be escaped."
"SC1001","https://github.com/koalaman/shellcheck/wiki/SC1001","This `\o` will be a regular 'o' in this context."
"SC1003","https://github.com/koalaman/shellcheck/wiki/SC1003","Want to escape a single quote? echo 'This is how it'\\''s done'."
"SC1004","https://github.com/koalaman/shellcheck/wiki/SC1004","This backslash+linefeed is literal. Break outside single quotes if you just want to break the line."
"SC1007","https://github.com/koalaman/shellcheck/wiki/SC1007","Remove space after = if trying to assign a value (or for empty string, use var='' ... )."
"SC1008","https://github.com/koalaman/shellcheck/wiki/SC1008","This shebang was unrecognized. ShellCheck only supports sh/bash/dash/ksh. Add a 'shell' directive to specify."
"SC1009","https://github.com/koalaman/shellcheck/wiki/SC1009","The mentioned parser error was in ..."
"SC1010","https://github.com/koalaman/sh
@eggplants
eggplants / github.css
Last active April 27, 2021 00:48 — forked from griffin-stewie/github.css
Pandoc で github 風 CSS を使った standalone な html を生成するための CSS(要 pandoc 1.12.3) http://griffin-stewie.hatenablog.com/entry/2014/03/28/125029
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {