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 / compose.yaml
Created September 11, 2024 16:56
Service to archive YouTube Live anytime
# Usage:
# mkdir -m 777 -p ./Video/keeby
# docker compose up -d
services:
ytarchive:
stdin_open: true
tty: true
volumes:
- ./Video/keeby:/download
@eggplants
eggplants / exported_yt_revanced_setting
Created September 7, 2024 02:46
My Youtube Revanced config
"announcement_last_id": 13,
"hide_album_cards": true,
"hide_artist_cards": true,
"hide_community_posts": true,
"hide_crowdfunding_box": true,
"hide_shorts_home": true,
"hide_shorts_search": true,
"hide_shorts_subscriptions": true
@eggplants
eggplants / setup_mirakc_and_epgs_on_raspi.sh
Last active September 1, 2024 12:20
My setup for Mirakc / EPGStation on RaspberryPi 4
#!/usr/bin/env bash
# Updated at: 2024-09-01
# Environment:
# - Machine: RaspberryPi 4
# - Tuner: PX-M1UR
# - Card reader: SCR3310 v2.0
# - OS: RaspberryPi OS Lite (Debian GNU/Linux 12 bookworm)
# Architecture:
# ```
@eggplants
eggplants / ch2pl.py
Created August 16, 2024 19:52
Convert mirakurun / mirakc json file of channels into m3u8 playlist file.
"""Convert mirakurun / mirakc json file of channels into m3u8 playlist file."""
from __future__ import annotations
import argparse
import json
import re
import sys
from pathlib import Path
from textwrap import dedent
@eggplants
eggplants / list_followees_gpg_key_hash.sh
Last active August 4, 2024 06:35
Get gpg key hash of GitHub followers / followees
#!/usr/bin/env bash
set -eu
requirements=(curl gh gpg grep sed tee)
if ! command -v "${requirements[@]}" &>/dev/null
then
echo "required: ${requirements[*]}" >&2
exit 1
fi
@eggplants
eggplants / proof.md
Last active August 30, 2024 16:17
This is my Keyoxide proof for GitHub
@eggplants
eggplants / generate_srt_from_video_translate.md
Last active August 3, 2024 15:34
Generate .srt file and translate into different language

Generate .srt file and translate into different language

Environment

$ uname -vorm
6.8.0-38-generic #38-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun  7 15:25:01 UTC 2024 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
@eggplants
eggplants / my_homemaid_pc_20240605.md
Last active July 27, 2024 14:31
My homemaid PC (2024-06-05)
@eggplants
eggplants / swiftlint_todo.sh
Last active June 4, 2024 05:42
Write all errors once in disabled_rules in .swiftlint.yml / 既存プロジェクトにSwiftLintを導入するときに全てのエラーを一旦 .swiftlint.yml の disabled_rules に書く
#!/usr/bin/env bash
# In `Podfile`:
# ```
# # Linter / Formatter
# pod 'SwiftLint'
# ```
cat <<'A' > .swiftlint.yml
# Directory and file filters