📥

テスト記事を書いてみた!

2025/02/03に公開

テスト記事を書いてみた!

今日はテスト記事を書いてみました!
つまり、これはテスト記事です!

再生成

#!/bin/bash
emojis=("😊" "🚀" "🔥" "🎉" "💻" "🌟" "✨" "🎨" "🎵" "📚" "📝" "📈" "📉" "📊" "📅" "📆" "📌" "📍" "📎" "📏" "📐" "📑" "📒" "📓" "📔" "📕" "📖" "📗" "📘" "📙" "📚" "📛" "📜" "📞" "📟" "📠" "📡" "📢" "📣" "📤" "📥" "📦" "📧" "📨" "📩" "📪" "📫" "📬" "📭" "📮" "📯" "📰" "📱" "📲" "📳" "📴" "📵" "📶" "📷" "📸" "📹" "📺" "📻" "📼" "📽" "📿" "🔀" "🔁" "🔂" "🔃" "🔄" "🔅" "🔆" "🔇" "🔈" "🔉" "🔊" "🔋" "🔌" "🔍" "🔎" "🔏" "🔐" "🔑" "🔒" "🔓" "🔔" "🔕" "🔖" "🔗" "🔘" "🔙" "🔚" "🔛" "🔜" "🔝" "🔞" "🔟" "🔠" "🔡" "🔢" "🔣" "🔤" "🔦" "🔧" "🔨" "🔩" "🔪" "🔫" "🔬" "🔭" "🔮" "🔯" "🔰" "🔱" "🔲" "🔳" "🔴" "🔵" "🔶" "🔷" "🔸" "🔹" "🔺" "🔻" "🔼" "🔽" "🕉" "🕊" "🕋" "🕌" "🕍" "🕎" "🕐" "🕑" "🕒" "🕓" "🕔" "🕕" "🕖" "🕗" "🕘" "🕙" "🕚" "🕛" "🕜" "🕝" "🕞" "🕟" "🕠" "🕡" "🕢" "🕣" "🕤" "🕥" "🕦" "🕧" "🕯" "🕰" "🕳" "🕴" "🕵" "🕶" "🕷" "🕸" "🕹" "🕺" "🖇" "🖊" "🖋" "🖌" "🖍" "🖐" "🖕" "🖖" "🖤" "🖥" "🖨" "🖱" "🖲" "🖼" "🗂" "🗃" "🗄" "🗑" "🗒" "🗓" "🗜" "🗝" "🗞" "🗡" "🗣" "🗨" "🗯" "🗳" "🗺" "🗻" "🗼" "🗽" "🗾" "🗿" "😀" "😁" "😂" "😃" "😄" "😅" "😆" "😇" "😈" "😉" "😊" "😋" "😌" "😍" "😎" "😏" "😐" "😑" "😒" "😓" "😔" "😕" "😖" "😗" "😘" "😙" "😚" "😛" "😜" "😝" "😞" "😟" "😠" "😡" "😢" "😣" "😤" "😥" "😦" "😧" "😨" "😩" "😪" "😫" "😬" "😭" "😮" "😯" "😰" "😱" "😲" "😳" "😴" "😵" "😶" "😷" "😸" "😹" "😺" "😻" "😼" "😽" "😾" "😿" "🙀" "🙁" "🙂" "🙃" "🙄" "🙅" "🙆" "🙇" "🙈" "🙉" "🙊" "🙋" "🙌" "🙍" "🙎" "🙏")
topics_list=("python" "typescript" "react" "javascript" "nodejs" "css" "html" "docker" "kubernetes" "aws" "azure" "gcp" "linux" "windows" "macos" "sql" "nosql" "mongodb" "postgresql" "mysql" "sqlite" "redis" "graphql" "rest" "api" "web" "frontend" "backend" "fullstack" "devops" "ci" "cd" "testing" "unittest" "integration" "e2e" "automation" "cloud" "serverless" "microservices" "architecture" "design" "patterns" "oop" "functional" "programming" "data" "science" "machine" "learning" "ai" "artificial" "intelligence" "deep" "neural" "network" "nlp" "computer" "vision" "big" "data" "analytics" "visualization" "d3" "chart" "graph" "map" "geo" "spatial" "iot" "internet" "things" "blockchain" "cryptocurrency" "bitcoin" "ethereum" "smart" "contract" "solidity" "rust" "go" "java" "kotlin" "swift" "objective-c" "c" "c++" "c#" "ruby" "rails" "php" "laravel" "symfony" "django" "flask" "fastapi" "spring" "boot" "express" "nestjs" "svelte" "vue" "angular" "nextjs" "nuxtjs" "gatsby" "hugo" "jekyll" "eleventy" "markdown" "yaml" "json" "xml" "toml" "csv" "tsv" "parquet" "avro" "orc" "protobuf" "thrift" "avsc" "avdl" "idl" "schema" "validation" "parsing" "serialization" "deserialization" "compression" "encryption" "decryption" "hashing" "jwt" "oauth" "sso" "authentication" "authorization" "security" "firewall" "vpn" "proxy" "load" "balancer" "cdn" "dns" "http" "https" "tcp" "udp" "ip" "ipv4" "ipv6" "networking" "protocol" "socket" "websocket" "grpc" "restful" "api" "rpc" "json-rpc" "xml-rpc" "soap" "wsdl" "uddi" "rest" "restful" "api" "endpoint" "resource" "crud" "get" "post" "put" "delete" "patch" "options" "head" "trace" "connect" "cors" "preflight" "request" "response" "header" "body" "status" "code" "error" "handling" "logging" "monitoring" "alerting" "tracing" "profiling" "performance" "optimization" "scalability" "availability" "reliability" "resilience" "fault" "tolerance" "disaster" "recovery" "backup" "restore" "replication" "sharding" "partitioning" "indexing" "caching" "in-memory" "database" "key-value" "store" "document" "store" "column" "store" "graph" "database" "time-series" "database" "search" "engine" "elasticsearch" "solr" "lucene" "full-text" "search" "query" "language" "sql" "nosql" "newsql" "acid" "base" "cap" "theorem" "consistency" "availability" "partition" "tolerance" "eventual" "consistency" "strong" "consistency" "causal" "consistency" "linearizability" "serializability" "isolation" "levels" "read" "uncommitted" "read" "committed" "repeatable" "read" "snapshot" "isolation" "serializable" "transaction" "management" "concurrency" "control" "locking" "pessimistic" "locking" "optimistic" "locking" "deadlock" "detection" "prevention" "recovery" "timeout" "retry" "mechanism" "circuit" "breaker" "pattern" "bulkhead" "pattern" "rate" "limiting")

content=$(cat articles/000000.md)

content=$(echo "$content" | sed '0,/^---$/d; 0,/^---$/d')

for i in $(seq -f "%06g" 1 500)
do
  emoji=${emojis[$RANDOM % ${#emojis[@]}]}
  topics=("${topics_list[@]}")
  selected_topics=()
  for j in {1..3}; do
    index=$((RANDOM % ${#topics[@]}))
    selected_topics+=("${topics[$index]}")
    unset topics[$index]
    topics=("${topics[@]}")
  done

  meta_info="---
title: \"テスト記事を書いてみた!\"
emoji: \"$emoji\"
type: \"tech\"
topics: [\"${selected_topics[0]}\", \"${selected_topics[1]}\", \"${selected_topics[2]}\"]
published: false
static: true
---
"
  echo "$meta_info
$content" > $(printf "articles/%06g.md" $i)
done

GitHubで編集を提案