草庐IT

my-script

全部标签

Ubuntu 终端美化(oh-my-zsh)

文章目录Ubuntu终端美化(oh-my-zsh)一、环境准备二、配置文件1、主题2、修改插件2.1官方插件2.2第三方插件Ubuntu终端美化(oh-my-zsh)一、环境准备这个美化教程适合于大多数的Linux系统,其实可以通用的。首先,我们需要进行一定的环境准备:安装Git,以及对Git进行相关配置sudoaptupdatesudoaptupgradesudoaptinstallgit#安装git仓库管理器git--version#查看是否安装完成#对git进行全局配置gitconfig--globaluser.nameSteveAnthonygitconfig--globaluser.

Ubuntu 终端美化(oh-my-zsh)

文章目录Ubuntu终端美化(oh-my-zsh)一、环境准备二、配置文件1、主题2、修改插件2.1官方插件2.2第三方插件Ubuntu终端美化(oh-my-zsh)一、环境准备这个美化教程适合于大多数的Linux系统,其实可以通用的。首先,我们需要进行一定的环境准备:安装Git,以及对Git进行相关配置sudoaptupdatesudoaptupgradesudoaptinstallgit#安装git仓库管理器git--version#查看是否安装完成#对git进行全局配置gitconfig--globaluser.nameSteveAnthonygitconfig--globaluser.

谷歌插件inject注入脚本与content script基于Promise+async/await 同步通信实现过程

背景因为 web page 和 content script 是两个隔离环境,在 web page(普通网页) 中有 CSP 安全机制,而在 mac m1 环境,MV3 版本下无法修改 response.header 这个 bug 半年前反馈给谷歌,后续也没见结果,所以,想在 web page 网页中直接请求远程 url 是走不通的,只有借助 content script 来协助请求数据,但是这里牵涉到两个步骤,能否实现异步转同步方式来处理这个过程?前置知识content script 如果要访问服务端,需要将服务端的域名放在 host_permissions 中,这样 content scr

谷歌插件inject注入脚本与content script基于Promise+async/await 同步通信实现过程

背景因为 web page 和 content script 是两个隔离环境,在 web page(普通网页) 中有 CSP 安全机制,而在 mac m1 环境,MV3 版本下无法修改 response.header 这个 bug 半年前反馈给谷歌,后续也没见结果,所以,想在 web page 网页中直接请求远程 url 是走不通的,只有借助 content script 来协助请求数据,但是这里牵涉到两个步骤,能否实现异步转同步方式来处理这个过程?前置知识content script 如果要访问服务端,需要将服务端的域名放在 host_permissions 中,这样 content scr

Meet Liu Yu from StreamNative: My Growth Path to Open Source in China

AsopensourcegainedpopularityinChinain2016,theemergenceofthecountry'sfirstopen-sourceprojectsandstartupshelpedtomakethetermmorevisible.Thatyear,LiuYu,whograduatedmerely12monthsearlier,wasintroducedtoopensourcebyaccidentandgraduallytransformedintoanopen-sourceprofessionalalongtheway.Inthisarticle,wein

Meet Liu Yu from StreamNative: My Growth Path to Open Source in China

AsopensourcegainedpopularityinChinain2016,theemergenceofthecountry'sfirstopen-sourceprojectsandstartupshelpedtomakethetermmorevisible.Thatyear,LiuYu,whograduatedmerely12monthsearlier,wasintroducedtoopensourcebyaccidentandgraduallytransformedintoanopen-sourceprofessionalalongtheway.Inthisarticle,wein

使用Fody时,CS-SCRIPT动态代码无法找到程序集

FODY会将相关的程序集处理成资源文件,CS_SCRIPT强制要求引用的程序集必须是文件@@@codepublic overrideIEvaluatorReferenceAssembly(Assemblyassembly) { if (assembly!=null)//thischeckisneededwhentryingtoloadpartialnameassembliesthatresultinnull { if (assembly.Location.IsEmpty()) th

使用Fody时,CS-SCRIPT动态代码无法找到程序集

FODY会将相关的程序集处理成资源文件,CS_SCRIPT强制要求引用的程序集必须是文件@@@codepublic overrideIEvaluatorReferenceAssembly(Assemblyassembly) { if (assembly!=null)//thischeckisneededwhentryingtoloadpartialnameassembliesthatresultinnull { if (assembly.Location.IsEmpty()) th

Java Script 原型链原理与继承

所有对象都有隐式原型;原型也是对象,也有隐式原型.functionUser(){}console.log(User.prototype);functionUser(){}varu=newUser();console.log(u.hasOwnProperty);Object.prototype.hasOwnProperty因为Object的原型上有这个函数,所以同一条原型链上的u1也能使用它.console.log(u.hasOwnProperty===Object.prototype.hasOwnProperty);Object.prototype.a=1;functionUser(){}va

Java Script 原型链原理与继承

所有对象都有隐式原型;原型也是对象,也有隐式原型.functionUser(){}console.log(User.prototype);functionUser(){}varu=newUser();console.log(u.hasOwnProperty);Object.prototype.hasOwnProperty因为Object的原型上有这个函数,所以同一条原型链上的u1也能使用它.console.log(u.hasOwnProperty===Object.prototype.hasOwnProperty);Object.prototype.a=1;functionUser(){}va