$ 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 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
# ヤマハルーターでIPv4 over IPv6 (DS-Lite) をtransixで設定する | |
# 2024-05現在 | |
# 検証環境: ルーター - RTX830, プロバイダー - IIJひかり IPoEオプション有り ひかり電話契約なし | |
# 参考: | |
# https://network.yamaha.com/setting/router_firewall/ipv6/ds-lite#non-contract | |
# クライアントから接続 | |
# telnet 192.168.100.1 |
This file contains 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 bash | |
# Epson Inkjet Printer Driver (ESC/P-R) for Linux | |
sudo apt install ./epson-inkjet-printer-escpr_*_amd64.deb | |
# also | |
sudo apt install printer-driver-escpr psutils cups |
This file contains 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 bash | |
echo 'https://github.com/eggplants/ubuntu-setup.sh' |
This file contains 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 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 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 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 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 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") |
NewerOlder