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 / tool.hatch.version.md
Created March 31, 2025 23:22
Variation of `tool.hatch.version` in Hatch configuration

Variation of tool.hatch.version in Hatch configuration

Created at: 2025-04-01

Hatch official

[tool.hatch.version]
<?xml version='1.0' encoding='UTF-8' ?>
<opml version="2.0">
<head>
<title>PodAura</title>
<dateCreated>Sat Feb 22 23:21:24 GMT+09:00 2025</dateCreated>
</head>
<body>
<outline text="Comedy" title="Comedy"> <outline htmlUrl="https://feeds.megaphone.fm/TBS6605278277" link="https://www.tbsradio.jp/titi/ " icon="https://megaphone.imgix.net/podcasts/f5f21262-c863-11ed-8b4e-0ba84038c724/image/06f9636e026858734dbc26c1a31605b8.png?ixlib=rails-4.3.1&amp;max-w=3000&amp;max-h=3000&amp;fit=crop&amp;auto=format,compress" description="ラジオ父ちゃんが、ポッドキャストで復活!ラジオを父親のように慕っていた真空ジェシカが、再びラジオにかわいがってもらえるように…そんな気持ちでお送りします。&#10;------&#10;お題のシチュエーションに合わせた、「いい声で、ぐっとくる一言」を真空ジェシカが挑戦!「インフォマJUNK」で配信中:https://cms.megaphone.fm/channel/TBS9666344403&#10;&#10;番組作りの参考のため、以下のアンケートにご協力をお願いいたします。&#10;https://www.tbs.co.jp/radio/podcast/en.html&#10;制作:TBSラジオ #ラジ父&#10;TBS Podcast:https://www.tbsradio.jp/podcast/" text="真空ジェシカのラジオ父ちゃん" title="真空ジェシカのラジオ父ちゃん" xmlUrl="https://feeds.megaphone.fm/TBS6605278277" />
</outlin
@eggplants
eggplants / yt-dlp_for_fany_online_ticket.sh
Created February 11, 2025 19:19
Download a purchased video from https://online-ticket.yoshimoto.co.jp with yt-dlp
#!/usr/bin/env bash
# NOTE: FOR PRIVATE USE. DO NOT RE-UPLOAD DOWNLOADED VIDEOS.
# 1. Reveal source of video player's `<iframe id="video_iframe" ...>` to load window.dataForPlayer
# 2. Execute the following JS code in Developer console in the watching page of purchased video:
# const url = new URL(dataForPlayer.clips[0].config);
# url.origin + url.pathname.replace('/config', '');
# // => 'https://player.vimeo.com/video/<id>'
@eggplants
eggplants / _.md
Last active January 13, 2025 17:13
Use image in <summary> within <details>

click me

[![egg car with shadow](

@eggplants
eggplants / install_resizer.sh
Last active January 15, 2025 13:25
Install resizer from source
#!/usr/bin/env bash
git clone https://github.com/Cykooz/fast_image_resize --depth 1 --single-branch -b main
cargo install --path ./fast_image_resize/resizer
@eggplants
eggplants / install_latest_imagemagick.sh
Created January 12, 2025 23:04
Install ImageMagick 7 in Debian/Ubuntu
#!/usr/bin/env bash
sudo apt install libfuse2 -y
wget 'https://imagemagick.org/archive/binaries/magick'
sudo install -m 0755 magick /usr/local/bin/magick
@eggplants
eggplants / listFavoriteCircles.js
Created December 29, 2024 16:37
コミケWebカタログから表に貼る用のサークル一覧TSVを作る
// https://webcatalog-free.circle.ms/User/Favorites?page=1&orderBy=Space
// 曜日 - 配置 - サークル名
const haichiLocations = Array.from(document.querySelectorAll(`span[data-bind="text: HaichiStr"]`)).map(e=>`${e.innerText}`)
const circleNames = Array.from(document.querySelectorAll(`a[href^="/Circle/"]`)).flatMap(e=>`${e.innerText}` || [])
console.assert(haichiLocations.length == circleNames.length)
console.log(haichiLocations.map((s, index)=>`${s.replace(' ', '\t')}\t${circleNames[index]}`).join('\n'))
@eggplants
eggplants / compose.yaml
Last active December 14, 2024 19:42
RustDesk Server on Docker
# 0. Server A and clients B/C are on the same Tailnet
# 1. Start RustDesk Server on A in Docker
# 2. Install RustDesk Client on B/C and set Magic DNS of A and Server Password Key
# 3. B/C can be connected to each other
services:
hbbs:
container_name: hbbs
ports:
- 21115:21115
- 21116:21116