- JSConf JP
- <2023-11-19 Sun>
- 古川さん
#!/bin/bash | |
GITHUB_TOKEN="ghp_xxx" | |
CLONE_DIR="${HOME}/backup/gist" | |
# Function to clone or update a Gist | |
clone_or_update_gist() { | |
gist_url=$1 | |
gist_description=$2 | |
gist_id=$(basename "$gist_url") |
; REMOVED: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
#Requires AutoHotkey v2.0 | |
#Warn ;Enable warnings to assist with detecting common errors. | |
#SingleInstance force | |
InstallKeybdHook() | |
#WinActivateForce | |
#UseHook | |
SendMode("Input") ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir(A_ScriptDir) ; Ensures a consistent starting directory. | |
DetectHiddenWindows(true) |
;(async (copy) => { | |
// https://read.amazon.co.jp/kindle-library を開いて実行 | |
// 文字列(TSV)がクリップボードにコピーされているので、Excelやスプレッドシートに貼り付けて確認する | |
// https://booklog.jp/input にASINコードを貼り付けて登録 | |
async function fetchList(paginationToken) { | |
const pagination = paginationToken | |
? `&paginationToken=${paginationToken}` | |
: '' | |
const res = await fetch( |
UI デザインツール
昔 Kindle本をブクログで蔵書管理する最初の一歩 | ちぎっては投げるところ をいうのを書いたが、 最近Kindle本をブクログに自動登録するスクリプトが動かなくなった(Amazonから送られてくるメールにASINが入らなくなった)。
自動化が難しそうだったので手動で取り込む方法をメモっておく
Amazon.co.jp: コンテンツと端末の管理 / https://www.amazon.co.jp/mn/dcw/myx.html#/home/content/booksAll/dateDsc/ を開く
ブラウザのdev tool で下記scriptを実行
手作業でぽちぽちするのが辛かったので作った
Satisfactoryのレシピ把握のため、Graphvizで可視化したかった
レシピ一覧 - Satisfactory日本語 Wiki* を開いて ブラウザのDevTools を開いてScript を実行するとGraphviz用のdot言語を作成できる(クリップボードにコピー)
あとは https://dreampuf.github.io/GraphvizOnline/ などでレンダリングする
かなりカオスなので必要なレシピだけ残すと見やすくなりそう
# 実行ポリシーを変更する(手動) | |
# Set-ExecutionPolicy RemoteSigned -scope CurrentUser | |
# ロングパスを有効化 | |
Set-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1 | |
# 拡張子を表示 | |
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d "0" /f | |
# Chocolatey | |
try { |