$ uname -vorm
6.5.0-25-generic #25-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 7 14:58:39 UTC 2024 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div.Layout-sidebar { | |
width: inherit !important; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name | description | |
---|---|---|
AENC | オーディオの暗号化 | |
APIC | 付属する画像 | |
ASPI | オーディオシークポイントインデックス | |
CHAP | チャプター | |
COMM | コメント | |
COMR | コマーシャルフレーム | |
CTOC | 目次 | |
ENCR | 暗号化の手法の登録 | |
EQU2 | 均一化 (2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
from mutagen.id3 import Frames | |
with open('mutagen_frames.csv', 'w', newline="") as csvfile: | |
c = csv.writer(csvfile) | |
writer = csv.DictWriter(csvfile, fieldnames=["name", "description"]) | |
writer.writeheader() | |
for name, cls in sorted(Frames.items()): | |
writer.writerow({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://commons-query.wikimedia.org/sparql?query=... | |
# accept: application/sparql-results+json | |
# cookie: wcqsOauth=fce1... | |
# https://www.wikidata.org/wiki/EntitySchema:E49 | |
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX schema: <http://schema.org/> | |
PREFIX p: <http://www.wikidata.org/prop/> | |
PREFIX pq: <http://www.wikidata.org/prop/qualifier/> | |
PREFIX wikibase: <http://wikiba.se/ontology#> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
USAGE: | |
poetry init -n | |
poetry add boto3 | |
poetry run python get_cw_logs.py -p <profile> <log_group> <log_stream> | |
""" | |
from __future__ import annotations | |
import argparse | |
import re |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
N = 5 | |
WORK_ID = "RJ..." | |
JWT = "..." | |
SID = "..." | |
session = requests.session() | |
session.cookies.set("jwt", JWT, domain=".dlsite.com") | |
session.cookies.set("__DLsite_SID", SID, domain=".dlsite.com") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env -S pipx run | |
# DLsiteの分割ダウンロードが遅いのでAPIを完全に理解してaria2で落とせるように | |
# /// script | |
# requires-python = ">=3.12" | |
# dependencies = [ | |
# "requests", | |
# ] | |
# /// | |
import requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
def get_haiku n | |
len = 17 | |
# Ver 1: | |
# https://horicun.moo.jp/contents/haiku/random.html?number_search=1 | |
hiragana = "あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわをがぎぐげござじずぜぞだぢづでどばびぶべぼぱぴぷぺぽぁぃぅぇぉゃゅょゎっゐゑーゔん" | |
# Ver 2: |