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
| { | |
| "$schema": "https://raw.githubusercontent.com/aws/amazon-q-developer-cli/refs/heads/main/schemas/agent-v1.json", | |
| "name": "aws", | |
| "description": "", | |
| "prompt": null, | |
| "mcpServers": { | |
| "awsdocs": { | |
| "command": "uvx", | |
| "args": [ | |
| "awslabs.aws-documentation-mcp-server@latest" |
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 | |
| set -euo pipefail | |
| if type slop &> /dev/null && type scrot &> /dev/null && type xdotool &> /dev/null && type zenity &> /dev/null; then | |
| echo "必要なコマンドはインストールされています" | |
| else | |
| echo "必要なコマンドがインストールされていません" | |
| echo "以下のコマンドを実行してインストールしてください" | |
| echo "sudo apt install slop scrot xdotool zenity" | |
| exit 1 |
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
| [model] | |
| # cycle: | |
| # | |
| # This is the quantum of time for preload. Preload performs | |
| # data gathering and predictions every cycle. Use an even | |
| # number. | |
| # | |
| # Note: Setting this parameter too low may reduce system performance | |
| # and stability. |
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
| javascript:(async () => { | |
| if (!("showDirectoryPicker" in window) && !("navigator" in window && "storage" in navigator.storage && "getDirectory" in navigator.storage)) { | |
| alert("OPFSがサポートされていません。最新のChromeまたはEdgeをお試しください。"); | |
| return; | |
| } | |
| let root; | |
| if ('getDirectory' in navigator.storage) { | |
| root = await navigator.storage.getDirectory(); | |
| } else { |
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 json | |
| import hashlib | |
| import binascii | |
| import sys | |
| # 設定 | |
| if len(sys.argv) <= 1: | |
| print("エラー: 最終etagを引数で指定してください", file=sys.stderr) | |
| sys.exit(1) |
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
| { | |
| "Parts": [ | |
| { | |
| "PartNumber": 1, | |
| "ETag": "\"6e5f81baf19afa8c902e3a5b1058d214\"" | |
| }, | |
| { | |
| "PartNumber": 2, | |
| "ETag": "\"7aaeae191bf09cab69982403c2d3580a\"" | |
| }, |
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 glob | |
| import hashlib | |
| import json | |
| import sys | |
| # 設定 | |
| if len(sys.argv) <= 1: | |
| print("エラー: パートファイルのパターンを引数で指定してください。", file=sys.stderr) | |
| sys.exit(1) |
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 python3 | |
| import json | |
| from datetime import datetime, timedelta, timezone | |
| import sys | |
| def parse_sadf_json(filename): | |
| with open(filename, encoding='utf-8') as f: | |
| text = f.read() | |
| data = json.loads(text) |
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 | |
| # 引数チェック | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 playlist.m3u" | |
| exit 1 | |
| fi | |
| # プレイリストのパス | |
| PLAYLIST="$1" |
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
| use strict; | |
| use warnings; | |
| # ファイルを開く | |
| my $file = 'rakuten.csv'; | |
| open my $fh, '<', $file or die "Could not open '$file' $!"; | |
| # 数字のカウント用ハッシュ | |
| my %first_digit_count; | |
| my $total_count = 0; |
NewerOlder