{"id":30465550,"url":"https://github.com/seagwave/inspiration","last_synced_at":"2026-02-13T01:07:27.729Z","repository":{"id":304301100,"uuid":"1015417648","full_name":"Seagwave/Inspiration","owner":"Seagwave","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-12T07:23:05.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-24T09:51:15.419Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Seagwave.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-07T13:22:37.000Z","updated_at":"2025-07-12T07:23:08.000Z","dependencies_parsed_at":"2025-07-12T08:35:49.388Z","dependency_job_id":"5eb20cfe-8cac-4a76-8286-12d8a7d674db","html_url":"https://github.com/Seagwave/Inspiration","commit_stats":null,"previous_names":["seagwave/inspiration"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Seagwave/Inspiration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seagwave%2FInspiration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seagwave%2FInspiration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seagwave%2FInspiration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seagwave%2FInspiration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Seagwave","download_url":"https://codeload.github.com/Seagwave/Inspiration/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seagwave%2FInspiration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29390945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T00:53:09.511Z","status":"ssl_error","status_checked_at":"2026-02-13T00:53:09.126Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-24T03:34:35.202Z","updated_at":"2026-02-13T01:07:27.703Z","avatar_url":"https://github.com/Seagwave.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inspiration\n\n## Guide\n\nPowershell运行以下代码\n\n```powershell\ncode $PROFILE\n```\n\n在profile文件中添加以下代码，并配置好ideaRepo路径\n\n```powershell\nfunction idea {\r\n    param (\r\n        [Parameter(Mandatory = $true, ValueFromRemainingArguments = $true)]\r\n        [string[]]$ContentParts\r\n    )\r\n\r\n    # 合并剩余参数为单个字符串\r\n    $content = $ContentParts -join \" \"\r\n\r\n    # 使用您指定的路径\r\n    $ideaRepo = \"E:\\repo\\Inspiration\"\r\n    $ideaFile = Join-Path $ideaRepo \"Idea.md\"\r\n\r\n    # 确保仓库目录存在\r\n    if (-not (Test-Path -Path $ideaRepo)) {\r\n        New-Item -ItemType Directory -Path $ideaRepo -Force | Out-Null\r\n    }\r\n\r\n    # 进入仓库目录\r\n    Push-Location $ideaRepo\r\n\r\n    $remotes = git remote 2\u003e\u00261\r\n    if ($remotes) {\r\n        # 获取当前分支名称\r\n        $currentBranch = git rev-parse --abbrev-ref HEAD\r\n        \r\n        # 先拉取最新更改（使用rebase）\r\n        Write-Host \"Pulling latest changes from remote...\"\r\n        git pull --rebase origin $currentBranch 2\u003e\u00261 | Out-Null\r\n    }\r\n\r\n    # 添加时间戳和灵感内容到文件 (使用UTF-8无BOM编码)\r\n    $timestamp = Get-Date -Format \"yyyy-MM-dd HH:mm:ss\"\r\n    \"## [$timestamp]`n$content`n\" | Out-File -FilePath $ideaFile -Append -Encoding utf8\r\n\r\n    try {\r\n        # 初始化 Git 仓库（如果尚未初始化）\r\n        if (-not (Test-Path -Path \".git\" -PathType Container)) {\r\n            git init | Out-Null\r\n            \r\n            # 配置Git使用UTF-8\r\n            git config core.quotepath false\r\n            git config i18n.commitencoding utf-8\r\n            git config i18n.logoutputencoding utf-8\r\n            \r\n            # 解决换行符问题\r\n            git config core.autocrlf false\r\n            git config core.safecrlf warn\r\n            \r\n            git add . | Out-Null\r\n            git commit -m \"Initial commit\" | Out-Null\r\n        }\r\n\r\n        # 提交到本地仓库\r\n        git add $ideaFile 2\u003e\u00261 | Out-Null\r\n        $commitMessage = \"Add idea: $($content.Substring(0, [Math]::Min(30, $content.Length)))...\"\r\n        \r\n        # 尝试提交\r\n        git commit -m $commitMessage 2\u003e\u00261 | Out-Null\r\n        \r\n        # 如果提交失败，尝试修改上次提交\r\n        if ($LASTEXITCODE -ne 0) {\r\n            git commit --amend --no-edit 2\u003e\u00261 | Out-Null\r\n        }\r\n        \r\n        # 检查远程仓库配置\r\n        $remotes = git remote 2\u003e\u00261\r\n        if ($remotes) {\r\n            # 获取当前分支名称（使用master分支）\r\n            $currentBranch = git rev-parse --abbrev-ref HEAD\r\n            \r\n            # 推送到远程仓库（强制使用master分支）\r\n            git push origin $currentBranch 2\u003e\u00261 | Out-Null\r\n            \r\n            # 检查推送是否成功\r\n            if ($LASTEXITCODE -eq 0) {\r\n                Write-Host \"[SUCCESS] Pushed to remote repository\" -ForegroundColor Green\r\n            } else {\r\n                Write-Host \"[WARNING] Failed to push to remote. Please check your remote configuration.\" -ForegroundColor Yellow\r\n            }\r\n        } else {\r\n            Write-Host \"[INFO] No remote repository configured. Changes committed locally only.\" -ForegroundColor Cyan\r\n        }\r\n    }\r\n    catch {\r\n        Write-Warning \"Git operation error: $_\"\r\n    }\r\n    finally {\r\n        Pop-Location\r\n    }\r\n\r\n    # 使用纯ASCII字符输出结果\r\n    Write-Host \"[SUCCESS] Idea recorded\" -ForegroundColor Green\r\n    Write-Host \"[FILE] Location: $ideaFile\" -ForegroundColor Cyan\r\n}\n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseagwave%2Finspiration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseagwave%2Finspiration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseagwave%2Finspiration/lists"}