Git 多密钥配置和多平台托管 1 minute read

一、多密钥配置

1.1 生成密钥

如果是 Windows 系统,建议使用安装 Git 时自带的 git bash 终端。

假设你有三个账号,

  • 一个是 Gitee 的,登录名为 copillar
  • 一个是 Github 的登录名为 wholegospel
  • 一个是 Github 的登录名为 fengxinbao
ssh-keygen -t rsa -C "co@gmail.com" -f ~/.ssh/id_rsa_gitee_cossh-keygen -t rsa -C "wg@gmail.com" -f ~/.ssh/id_rsa_github_wgssh-keygen -t rsa -C "fxb@gmail.com" -f ~/.ssh/id_rsa_github_fxb

1.2 添加密钥到 ssh-agent 中

Git 默认读取的文件文件名为 id_rsa,因此我们需要将生成的密钥添加到 ssh-agent 中。

添加密钥地址到 ssh-agent:

$ ssh-add ~/.ssh/id_rsa_gitee_co$ ssh-add ~/.ssh/id_rsa_github_wg$ ssh-add ~/.ssh/id_rsa_github_fxb

如果出错,可以使用这条命令,再执行上方代码:

$ ssh-agent bash

1.3 编写配置文件

编写 config 文件(~/.ssh目录下),若没有则自行新建。

read more
Who owns the copyright for an AI generated creative work? 4 minute read

Recently I was reading an article about a cool project that intends to have a neural network create songs of the late club of the 27 (artists that have tragically died at age 27 or near, and in the height of their respective careers), artists such as Amy Winehouse, Jimmy Hendrix, Curt Cobain and Jim Morrison.

The project was created by Over the Bridge, an organization dedicated to increase awareness on mental health and substance abuse in the music industry, trying to denormalize and remove... read more

So, what is a neural network? 9 minute read

The omnipresence of technology nowadays has made it commonplace to read news about AI, just a quick glance at today’s headlines, and I get:

Topics from business, manufacturing, supply chain, medicine and biotech and even defense are covered in those news headlines, definitively the... read more