小编Loc*_*kna的帖子

IntelliJ,无法在 GitHub 上共享项目(权限被拒绝)

我是 Git 和 GitHub/GitLab 的新手。我尝试将我的项目共享到 GitHub,但它引发了此异常:

Can't finish GitHub sharing process
        Successfully created project 'LiveGame1' on GitHub, but initial push failed:
        git@github.com: Permission denied (publickey).
        Could not read from remote repository.
        Please make sure you have the correct access rights
        and the repository exists.
Run Code Online (Sandbox Code Playgroud)

我也可以通过互联网链接克隆存储库,但不能通过“git@github.com:/username/repository_name”。

我该如何修复这个错误,我能否将我的项目直接分享到 GitLab?

github repository intellij-idea permission-denied gitlab

11
推荐指数
4
解决办法
2万
查看次数

Github Action 触发另一个存储库更新(push、pull_request)

我在为我和一些朋友设置适当的构建链时遇到一些麻烦。因此,我分叉了两个存储库:官方 ghidra 和 ghidra-ci。ghidra-ci 是一个构建您的 ghidra 分支的存储库,当您挑选一些 pr 时,您可以添加一些尚未添加到官方 ghidra 存储库中的内容。

因此,ghidra-ci 应该在 ghidra 存储库更新时构建 ghidra 存储库。到目前为止,我设法在 ghidra-ci 本身更新时构建它。我用了

name: Ghidra Build
on: [push, pull_request]
Run Code Online (Sandbox Code Playgroud)

(此后仅是构建作业)

所以,我知道这是错误的。我删除了该on: 行,但我需要一条on: 线,我只是粘贴了on: [workflow_dispatch]进去。我不知道这是否会起作用。

我有一个名为“检查新提交”的工作流程

name: Check for new commits
on:
  schedule:
    - cron: '30 12 * * *'
  workflow_dispatch:
    inputs: {}

jobs:
  # Ensure all steps use a common revision
  check:
    name: Check for new commits since last release
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          repository: Lockna/Ghidra
      - …
Run Code Online (Sandbox Code Playgroud)

continuous-integration github continuous-deployment

6
推荐指数
1
解决办法
4515
查看次数

Python 从进程 ID 或进程名称获取窗口标题

我想获取特定进程的Windowtitle(例如Spotify.exe)。

def winEnumHandler( hwnd, ctx ):
    if win32gui.IsWindowVisible( hwnd ):
        print (hex(hwnd), win32gui.GetWindowText( hwnd ))
Run Code Online (Sandbox Code Playgroud)

我尝试了在互联网上找到的多个不同版本,但大多数解决方案都针对活动窗口,但在我的情况下,它始终是活动窗口,所以我必须按进程名称或进程 ID 进行操作。

所以,基本上我正在寻找这样的东西

title = getTitleFromProcessName('Spotify.exe')
Run Code Online (Sandbox Code Playgroud)

然后 title 是 Spotify 窗口对应的窗口标题。

python windows winapi window

1
推荐指数
1
解决办法
6601
查看次数

差异Scala类声明

我想问下面这两个类声明之间有什么区别.

class Person(name: String, age: Int)
Run Code Online (Sandbox Code Playgroud)

要么

class Person() {
  var name: String = ""
  var age: Int = 0
}
Run Code Online (Sandbox Code Playgroud)

scala class declaration

-2
推荐指数
1
解决办法
75
查看次数