GitHub升级后不再支持用户名密码鉴权

⚠️ Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. 登录 GitHub 打开 Settings 找到 Developer settings 找到 Personal access tokens 点击 Generate new token 配置 token 设置名字,设置过期时间,选择权限 (默认 repo 就可),最后点击

iOS 之 keyPath 自动提示宏

自动提示宏 这个宏可以在使用keyPath时自动提示属性字符串,防止输入出现错误。 1 2 3 4 // 自动替换宏 #define keyPath(objc, keyPath) @(((void)objc.keyPath,#keyPath)) NSLog(@"%@", [keyPath(self.layer, position) class]); // NSTaggedPointerString NSLog(@"%@", keyPath(self.layer, position)); // position c语言字符

pod install 速度慢的终极解决方案

问题 如今新版本的 pod 已经是默认走 CDN 的方式,不再是 master repo 的模式,但是,依然会有这个问题. 相信大家已经感受到 pod install 速度越来越慢了,网上提供了几种解决方

使用 git 克隆 github 上的项目失败

使用 git 克隆 github 上的项目失败 现象 今天在使用 git clone nextjs demo project 源代码的时, git clone https://github.com/XXXX/next-blog.git 下载速度很慢,然后下载一段时间后,总是提示下面的错误信息 1 2 3 4 5 6 7 8 nCloning

CentOS6.1 install Nginx

CentOS 6.1 install Nginx 安装 1 yum install nginx 启动 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 # 查看版本 nginx -v # 检查配置文件是否正确 nginx -t # 启动 Nginx /usr/sbin/nginx # 重载配置文件 nginx -s reload # 重启