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 / setup_tailscale_k3s_raspi4.sh
Last active December 24, 2024 18:27
Tailscale + k3s on RaspberryPi 4 (1 master node and 3 agent nodes)
#!/usr/bin/env bash
# ===
# > master node & agent node(s)
# ===
sudo apt update -y && sudo apt upgrade -y
sudo systemctl stop dphys-swapfile
sudo systemctl disable dphys-swapfile
sudo rm -f /var/swap
@eggplants
eggplants / get_tailnet_name.sh
Created October 28, 2024 16:24
Get your tailnet name with(out) jq from `tailscale status` output
#!/usr/bin/env bash
# get your tailnet name with jq:
tailscale status --json | jq -r '.MagicDNSSuffix'
# or, without jq:
tailscale status --json | grep -m1 MagicDNSSuffix | cut -f4 -d'"'
#!/usr/bin/env -S pipx run
# https://github.com/ltsdw/gofile-downloader
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "requests",
# ]
# ///
from concurrent.futures import ThreadPoolExecutor
@eggplants
eggplants / setup_win11_tvtest_pxw3u4.md
Last active October 26, 2024 15:30
Windows 11 + TVTest + PX-W3U4
$ lldb -- ...
(lldb) help
Debugger commands:
  apropos           -- List debugger commands related to a word or subject.
  breakpoint        -- Commands for operating on breakpoints (see 'help b' for
                       shorthand.)
  command           -- Commands for managing custom LLDB commands.
  device            -- Commands to interact with devices.
  diagnostics       -- Commands controlling LLDB diagnostics.
@eggplants
eggplants / mirakc.json
Last active September 28, 2024 10:54
http://localhost:40772/api/docs / https://tinyurl.com/2vtnjkjk
{"openapi":"3.0.3","info":{"title":"mirakc Web API","description":"","contact":{"name":"Contributors of mirakc"},"license":{"name":"MIT OR Apache-2.0"},"version":"3.2.3"},"servers":[{"url":"/api"}],"paths":{"/channels":{"parameters":[],"get":{"tags":["channels"],"summary":"Lists channels.","operationId":"getChannels","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MirakurunChannel"}}}}},"500":{"description":"Internal Server Error"}}}},"/channels/{type}/{channel}/services/{sid}/stream":{"parameters":[],"get":{"tags":["channels::services::stream","stream"],"summary":"Gets a media stream of a service.","operationId":"getServiceStreamByChannel","parameters":[{"name":"X-Mirakurun-Priority","in":"header","description":"Priority of the tuner user","required":false,"schema":{"type":"integer","format":"int32","nullable":true}},{"name":"type","in":"path","description":"Channel type","required":true,"schema":{"$ref":"#/components/schema
@eggplants
eggplants / epg.json
Last active September 28, 2024 10:58
http://localhost:8888/api/docs / https://tinyurl.com/ryd28bp3
{
"openapi": "3.0.1",
"info": {
"version": "2.10.0",
"title": "epgstation",
"license": {
"name": "MIT",
"url": "https://github.com/l3tnun/EPGStation/blob/master/LICENSE"
}
},
@eggplants
eggplants / compose.yaml
Last active October 31, 2024 19:23
Record YouTube Live anytime
# Usage:
# mkdir -m 777 -p ./keeby
# cd keeby
# ...copy this compose file...
# docker compose up -d
services:
ytarchive:
container_name: ytarchive
image: ghcr.io/jim60105/ytarchive:latest
@eggplants
eggplants / exported_yt_revanced_setting
Last active November 19, 2024 13:34
My Youtube Revanced config
"announcement_last_id": 10,
"disable_resuming_shorts_player": true,
"hide_album_cards": true,
"hide_artist_cards": true,
"hide_crowdfunding_box": true,
"hide_shorts_home": true,
"hide_shorts_search": true,
"hide_shorts_subscriptions": true,
"shorts_disable_background_playback": true,
"ryd_shorts": false
@eggplants
eggplants / setup_mirakc_and_epgs_on_raspi.sh
Last active November 6, 2024 14:23
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:
# ```