发送时延=\frac{数据帧长度(b)}{发送速率(b/s)}
传输时延=\frac{信道长度(m)}{电磁波在信道上的传播率(m/s)}
OSI
0-1
背包问题本仓库搭建概况
ActionFlow
版本(当然应该不是最合适的版本,好像还是有Node.js 12 to Node.js 16
的警告)搭建过程的一些问题(遇到的,并从issue里总结的)
.github/workflows/generate_readme.yml
中env
项的name
和email
设置更改为自己的.github/workflows/generate_readme.yml
的其他修改如下:即添加注释的地方name: Generate README
on:
issues:
types: [opened, edited]
issue_comment:
types: [created, edited]
push:
branches:
- main # 这里改成main,好像是从一个时间起默认创建的主分支从master变为了main,
# 当然如果仓库内都是master也可以不用修改
paths:
- main.py
env: # 这两项更改为自己的配置
GITHUB_NAME: SylverQG
GITHUB_EMAIL: doublc_qluv@163.com
jobs:
sync:
name: Generate README
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3 # 我这里改为了v3,与下面`版本变更`一致,都只加1个大版本
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Configure pip cache
uses: actions/cache@v2
id: pip-cache
with:
path: venv
key: pip-1-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
if: steps.pip-cache.outputs.cache-hit != 'true'
- name: Generate new md
run: |
source venv/bin/activate
python main.py ${{ secrets.G_T }} ${{ github.repository }} --issue_number '${{ github.event.issue.number }}'
- name: Push README # 这里使用了egolearner/paper-note 中的yml
# 并更新版本到2.9,旧版本似乎会有报错
uses: github-actions-x/commit@v2.9
with:
github-token: ${{ secrets.G_T }}
commit-message: "UPDATE README"
files: BACKUP/*.md README.md feed.xml # 注意因为main.py文件将这三类文件都暂存到了缓存里,所以应该是一起进行推送
rebase: 'true'
name: SylverQG
email: doublc_qluv@163.com
警告详情 actions/checkout@v2
,actions/setup-python@v1
,actions/cache@v1
update to actions/checkout@v3
,actions/setup-python@v2
,actions/cache@v2
Generate README
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/setup-python@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
github-actions-x/commit@v2.6
update to v2.9 (the latest)
the error shows:Command line: | /usr/bin/git pull --rebase --autostash origin main
Stderr: | fatal: detected dubious ownership in repository at '/github/workspace'
| To add an exception for this directory, call:
|
| git config --global --add safe.directory /github/workspace
生成通过但是仓库没有变更
,此时可以重新生成Token,重新添加到仓库的设置中。[这与本地的错误类似,即没有当前仓库的权限]remote: Permission to SylverQG/Blogs.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/SylverQG/Blogs/': The requested URL returned error: 403
nothing to push
]]>To make blogs by the issues
To say goodbye to the old world
To put the ping in the e-world
a simple solution to a complicated problem
,You will die but github long live.
尝试了很多种类的github博客形式。、
issue
并有一套漂亮前端的形式
之后考虑从原来的GitHub仓库一点一点搬运,还是也把那个github.io也搞成这样,或者再找个好看的主题也不是不行