| 概念 | Artifact Registry (GCP) | Container Registry/GCR (旧) | ECR (AWS) | Docker Hub | GitHub Container Registry |
|---|
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 bash | |
| set -euo pipefail | |
| # ============================================ | |
| # Shai-Hulud 簡易チェックスクリプト | |
| # - 前提: | |
| # - gh CLI ログイン済み (gh auth login 済み) | |
| # - jq コマンド利用可能 | |
| # - POSIX find 利用可能 (macOS / Linux 想定) | |
| # ============================================ |
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 MAPBOX_ACCESS_TOKEN = 'ご自身の Mapbox API Key' | |
| // Mapbox フォワードジオコーディング API 各種の結果を比較 | |
| // Search v1 API | |
| // https://docs.mapbox.com/api/search/search/ | |
| async function mapboxSearchV1ForwardGeocoding(address) { | |
| const url = `https://api.mapbox.com/search/v1/forward/${encodeURIComponent(address)}?access_token=${MAPBOX_ACCESS_TOKEN}&language=ja&country=JP&limit=1` | |
| const res = await fetch(url) | |
| const json = await res.json() |
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
| @xtetsuji ➜ /workspaces/codespaces-blank $ php tick_test.php | |
| Xdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port). | |
| Executing /workspaces/codespaces-blank/tick_test.php on line 9 | |
| Hello | |
| Executing /workspaces/codespaces-blank/tick_test.php on line 12 | |
| Executing /workspaces/codespaces-blank/tick_test.php on line 13 | |
| Executing /workspaces/codespaces-blank/tick_test.php on line 14 | |
| Result: 10 | |
| Executing /workspaces/codespaces-blank/tick_test.php on line 15 |
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 -eu | |
| PRESET="PresetAppleM4V1080pHD" | |
| function usage { | |
| # local error_code=${1:-0} | |
| cat <<EOF | |
| Usage: | |
| mov2mp4.sh input.mov |
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 perl | |
| use strict; | |
| use warnings; | |
| use feature qw(say postderef); | |
| use Data::Dumper; | |
| my $table_col_separator = " | "; | |
| my $table_first_row_separator = "| "; | |
| my $table_last_row_separator = " |"; |
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 perl | |
| use strict; | |
| use warnings; | |
| use feature qw(say); | |
| use utf8; | |
| binmode STDOUT, ':utf8'; | |
| use Encode; | |
| # 都道府県の漢字表記を北海道から沖縄県まで | |
| my @prefs = ( |
mailq-list.pl is Postfix mailq viewer.
Normal Postfix mailq command shows only envelope information.
If you want to know header information, you run postcat command every each time.
maiq-list.pl supports that you can show all queues' header information.
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
| perl -MMath::BigInt -E 'say Math::BigInt->new("1209")->bpow("2023")->to_base(10) =~ s/(?<=\d)(?=(?:\d\d\d)+(?!\d))/,/gr =~ s/((?:\d\d\d,){10})/$1\n/gr'| |
NewerOlder