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
#!/bin/bash -e | |
# take screenshot to clipboard | |
#flameshot gui -r | xclip -selection clipboard -t image/png | |
selection=$(hacksaw -f "-i %i -g %g") | |
shotgun $selection - | xclip -t 'image/png' -selection clipboard |
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
// 代表的なページタイプを取得して、最終的な移行計画を作成 | |
const fileContent = await window.fs.readFile('tdwda.json', { encoding: 'utf8' }); | |
// ページタイトルとIDのマッピングを作成(後でディレクトリ構造に使用) | |
const titleToIdMap = {}; | |
const pagePattern = /"title":"([^"]+)","created":(\d+),"updated":(\d+),"id":"([^"]+)","views":(\d+)/g; | |
let match; | |
while ((match = pagePattern.exec(fileContent))) { | |
const title = match[1]; |
OlderNewer