github fork from
golang 的github.com/sony/sonyflake IP问题bug
使用容器部署golang项目时,饮用了 github.com/sony/sonyflake 生成snow id,初始化时不传入任何参数: SnowId = sonyflake.NewSonyflake(sonyflake.Settings{}) 在容器的ip设置设置为类似:192.18.10.8时, ......
年度盘点,四年的精华合集「GitHub 热点速览」
今年是 GPT 年,无论是 GitHub 还是朋友圈还是技术平台,即便你不关心 GPT 的发展情况,同大模型、AI 相关的项目总能进入你的信息流。到这期为止,热度速览也连载了四年,从一开始习惯看 GitHub Trending 找寻有意思的项目,到后来每期收录当周的热点,并每期整理一个主题相关开源项... ......
Remove TraceParent header from HttpClient requests
ASP.NET Core creates an Activity that represents the request by default. This is what tells HttpClient to send an outgoing request id header. You can ......
A. Forked!
原题链接 模拟+去重 代码 #include<bits/stdc++.h> using namespace std; int l[4]={1,1,-1,-1},r[4]={1,-1,-1,1}; struct unit { int x,y; bool operator<(const unit& ot ......
Github Copilot生成代码和单元测试并执行
ChatGPT Prompts整理总结 最近一直在学习ChatGPT Prompt的编写技巧,做了一些验证和整理,分享给大家 Act as a Linux Terminal 英文Prompt I want you to act as a linux terminal. I will type com ......
https://crab2313.github.io/post/riscv-spinlock/#risc-v%E7%9A%84%E5%AE%9E%E7%8E%B0
本文分析linux内核下对于spinlock的实现,具体到RISC-V体系结构。由于RISC-V体系结构下目前只是简单的实现了一个基于TAS的最基本的spinlock,本文的另一个附加任务就是分析Linux内核为各个平台下实现spinlock搭建起来的通用框架。 这部分内容实质上与体系结构非常相关, ......
How to permanently delete a file stored in GIT (both from the local and remote repositories)?
First run git filter-branch -f --index-filter "git rm -rf --cached --ignore-unmatch FOLDERNAME" -- --all Then shrink the .git folder rm -rf .git/refs/ ......
linux -bash: fork: retry: No child processes 解决
Text. Text. Text. [ubuntu@iZj6cc8f0831kkdffvlhjhZ tools]$ date -bash: fork: retry: No child processes -bash: fork: retry: No child processes -bash: fo ......
NUXT - Error: Failed to download template from registry: fetch failed
HOST 路径 C:\Windows\System32\drivers\etc\hosts 前往 HOST 加入 185.199.108.133 raw.githubusercontent.com 测试是否成功 (若无任何信息返回即成功): node -e "require('https').get ......
GitHub 账户2FA 的身份验证验证码方法解决
使用Edge浏览器安装扩展:身份验证器 打开浏览器扩展搜索扩展名即可 在GitHub使用身份验证时点击插件即可截图扫码即可 ......
软件测试/测试开发|GitHub怎么用,这篇文章告诉你
前言 作为一个刚刚接触代码的程序员,可能我们会听到一个词GitHub,把代码提交到GitHub上,或者从GitHub上克隆项目到本地,在GitHub上查看某个工具的文档等等,我们不禁要问,GitHub究竟是什么,该怎么用,本文就给各位初学者们介绍什么是GitHub,它能帮我们干什么? 什么是GitH ......
mysql链接异常,不能使用ip链接解决——null, message from server: "Host 'host.docker.internal' is not allowed to connect to this MySQL server"
情况: 报错翻译: 空指针,来自服务器的消息:"Host ’ Host .docker.internal’ 不允许连接到 MySQL 服务器" 登陆mysql 键入命令mysql -uroot -p,回车后提示你输入密码,输入12345,然后回车即可进入到mysql中 选择数据库 use ......
Flutter 编译是pod intsall github 资源下载失败
在fluterr 编译报错 然后显示 github.xxxxx 访问超时 处理办法 pod install 主要是读取 profile 文件 platform :ios, '9.0' target 'YourAppName' do use_frameworks! # 这是安装依赖位置 pod 'So ......
Json.Net Deserialize a Collection from BSON
Deserialize a Collection from BSON (newtonsoft.com) This sample sets ReadRootValueAsArray to true so the root BSON value is correctly read as an array ......
如何在github上写出漂亮的readme.md
如何为开发项目编写规范的README文件 如何在github上写出漂亮的readme.md:https://github.com/Hubery-Lee/Notes/blob/master/%E5%A6%82%E4%BD%95%E5%9C%A8github%E4%B8%8A%E5%86%99%E5%8 ......
Github_yihong0618_running_page 部署配置
项目来源:https://github.com/yihong0618/run 依赖:python-3.11.7 node git(python 太低、太高的版本可能会导致某些模块安装不上) git clone https://github.com/yihong0618/running_page.gi ......
Capture a TCP dump from a Linux node in an AKS cluster
https://learn.microsoft.com/en-us/troubleshoot/azure/azure-kubernetes/capture-tcp-dump-linux-node-aks https://learn.microsoft.com/en-us/azure/aks/node ......
找到了!GitHub Copilot的最佳免费平替
在如今这个人工智能高速发展的时代,每个行业都在被AI技术影响而改变。层出不穷的AI辅助工具,让我们看到了机器正在取代一部分基础的日常工作。对于我们开发者而言,当前最炙手可热的就是GitHub Copilot,市面上最好的开发者辅助工具。GitHub Copilot所提供的代码补全、建议、解释等能力非 ......
Python异步编程之yield from
yield from 用于获取生成器中的值,是对yield使用的一种优化。
yield from 两个最重要的特点:
1. 在调用包含`yield from`的函数时,程序会停在`yield from` 这里,并将for循环的执行传递到子生成器里面去。相当于直接调用子生成器。这个功能可以称之为`传输... ......
Github Actions - Error: The connection to the server localhost:8080 was refused - did you specify the right host or port?
Run kubectl apply -f eks/aws-auth.yaml kubectl apply -f eks/aws-auth.yaml kubectl apply -f eks/deployment.yaml kubectl apply -f eks/service.yaml shell ......
Github Action - Error: Kubectl '1.29.0' for 'amd64' arch not found
Error: Kubectl '1.29.0' for 'amd64' arch not found Changing - name: Install kubectl uses: azure/setup-kubectl@v3 with: version: '1.28.2' # version of ......
《Learning Transferable Visual Models From Natural Language Supervision》论文学习
一、Abstract 最先进的计算机视觉系统被训练用以预测一组预定的固定目标类别。这种受限的监督方式限制了它们的通用性和可用性,因为需要额外的标记数据来指定任何新的视觉概念。因此,直接从关于图像的原始描述文本中学习是一个有希望的替代方法,它利用了更广泛的因特网监督来源。 我们证明了预测哪个标题与哪张 ......
GitHub 上 2022 年使用最多的几种语言
Java 语言有所下降,JavaScript 一直保留在比较的使用水平。 PHP 的颓势已经非常明显了。 Python 一直还保留在比较强势的情况。 https://www.isharkfly.com/t/github-2022/15192/1 ......
GitHub 如何修改 Fork from
如果你的仓库上面是 Fork from 的话,我们有什么办法能够取消掉这个 Fork from? 解决办法 GitHub 上面没有让你取消掉 Fork 的办法。 如果进入设置,在可见设置中也没有办法修改仓库的可见设置选项。 唯一的解决办法就是对你需要修改的仓库先全部克隆到你的本地计算机上,然后在危险 ......
GitHub 致命错误:鉴权失败
一、现象 二、解决 git remote set-url origin https://token@github.com/Meidanlong/all-in-one.git git push ......
GitHub 致命错误:鉴权失败
一、现象 二、解决 git remote set-url origin https://token@github.com/Meidanlong/all-in-one.git git push ......