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 / インムチャーハン.md
Created November 6, 2026 11:28
インムチャーハンのレシピ by Grok

インムチャーハンのレシピ

「君、インムチャーハンは作れるのか?」——はい、作れます。

材料(1人分・適当)

  • サトウのごはん:1パック
  • ミートソース:100g弱
  • 卵:2個
  • ネギ:適量
@eggplants
eggplants / move_konomi_stack_into_denpa.md
Last active October 30, 2026 15:26
NanoPi の録画・視聴環境を、mirakc + EPGStation + edcb-bridge + KonomiTV から denpa に置き換える手順

NanoPi: KonomiTV から denpa へ乗り換える

2026-10-31 作成

NanoPi の録画・視聴環境を、mirakc + EPGStation + edcb-bridge + KonomiTV から denpa に置き換える手順。

変更点

項目 現状 denpa では
#!/usr/bin/env bash
WORK=~/.cache/zaproxy-scan-work
docker run --rm \
-v "$WORK":/zap/wrk/:rw \
-v "$(pwd)/apps/hogehoge-api/docs":/zap/wrk/api-spec:ro \
--add-host=host.docker.internal:host-gateway \
-t ghcr.io/zaproxy/zaproxy:stable \
zap-api-scan.py \
-t /zap/wrk/api-spec/openapi.yaml \
-f openapi \
# check
lsblk -o NAME,SIZE,MODEL,TRAN,MOUNTPOINTS
# unmount if mounted
sudo umount /dev/sda
# burn
wcurl https://releases.ubuntu.com/26.04.1/ubuntu-26.04.1-desktop-amd64.iso
sudo dd if=ubuntu-26.04-desktop-amd64.iso of=/dev/sda bs=4M status=progress oflag=sync conv=fsync
sync
@eggplants
eggplants / SPARQL.md
Last active September 24, 2026 17:30 — forked from advenk/SPARQL.md
Hindi SPARQL Endpoint - Motivation and Sample Queries

Report: Hindi DBpedia SPARQL Endpoint Query Demonstration

Date: 29 July 2025

Objective: To demonstrate the successful deployment and operational capability of the new Hindi DBpedia SPARQL endpoint.

1. Introduction

This document first introduces how to deploy the Hindi endpoint on any server with simple docker commands. This endpoint is deployed against the Hindi wiki dump as of 1st June 2025. If this needs to be updated, the dump needs to be extracted again and deployed seperately.

#!/usr/bin/env bash
if ! date -h | grep -qF -- '-d, --date' &> /dev/null; then
echo 'NOTE: `date` must be GNU impl.'
exit 1
fi
TODAY_YMD="$(date +%Y-%m-%d)"
echo 'extra_no,answer' > "extra_${TODAY_YMD}.csv"
# Linux:
# echo | sudo tee /etc/cifs-qnap && sudo chmod 600 /etc/cifs-qnap && sudo nano /etc/cifs-qnap
# username=<username>
# password=<password>
# /etc/fstab
//<address>/<folder> /mnt/qnap-m cifs credentials=/etc/cifs-qnap,uid=1000,gid=1000,file_mode=0664,dir_mode=0775,vers=3.1.1,_netdev,nofail 0 0
# MacOS:
# mkdir -p /mnt/qnap-m
@eggplants
eggplants / dbpedia_chapters.md
Last active October 13, 2026 13:00
DBpedia subdomains by languages (DBpedia Chapters)

DBpedia subdomains by languages, aka DBpedia Chapters

  • Created at: 2026-09-25
  • Updated at: 2026-10-13

Active SPARQL endpoints

Checked by rqw.

As of October 2026, most DBpedia SPARQL endpoints are inactive. Only 5 of 27 are active:

@eggplants
eggplants / open-in-mpv_installation.md
Last active September 5, 2026 08:08
`open-in-mpv` installation on Ubuntu Desktop
@eggplants
eggplants / japanese-web-comic.md
Last active September 20, 2026 14:03
日本のウェブコミック配信サイト一覧