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/expect -f | |
| # | |
| # gcloud storage ls の再認証プロンプトに自動応答する | |
| # 使い方: | |
| # ./gcloud-reauth.exp <PASSWORD> | |
| # | |
| # 注意: パスワードをコマンドライン引数で渡すと `ps` などで他者に見えてしまいます。 | |
| # cron で使う場合は、下の password 変数を直接編集するか、 | |
| # 環境変数 GCP_PASSWORD から読むよう書き換えてください。 |
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 | |
| TOKEN=$(curl -s -X PUT "http://169.254.169.254/latest/api/token" \ | |
| -H "X-aws-ec2-metadata-token-ttl-seconds: 21600") | |
| ROLE=$(curl -s -H "X-aws-ec2-metadata-token: $TOKEN" \ | |
| http://169.254.169.254/latest/meta-data/iam/security-credentials/) | |
| CRED=$(curl -s -H "X-aws-ec2-metadata-token: $TOKEN" \ |
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
Show hidden characters
| { | |
| "$schema": "https://opencode.ai/config.json", | |
| "model": "openrouter/arcee-ai/trinity-large-preview:free", | |
| "small_model": "google/gemini-3-flash-preview", | |
| "default_agent": "build", | |
| "theme": "mercury", | |
| "mcp": { | |
| "mcp_terraform": { | |
| "type": "local", | |
| "command": [ |
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
| Types: deb | |
| URIs: http://deb.debian.org/debian | |
| Suites: trixie trixie-updates trixie-backports | |
| Components: main contrib non-free non-free-firmware | |
| Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg | |
| Types: deb | |
| URIs: http://deb.debian.org/debian-security | |
| Suites: trixie-security | |
| Components: main contrib non-free non-free-firmware |
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 | |
| export AWS_USE_DUALSTACK_ENDPOINT=true | |
| export AWS_DEFAULT_OUTPUT=json | |
| function help_eip { | |
| echo "Usage: eip on|off|status" | |
| echo "on [hours]: EIPを指定した時間だけ割り当て (デフォルトは1時間)" | |
| echo "off : EIPを解放" | |
| echo "status : EIPの状態を表示" |
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) |
NewerOlder