brew修改为中科大源
123456789$ cd "$(brew --repo)"$ git remote set-url origin https://mirrors.ustc.edu.cn/brew.git$ cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"$ git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git$ cd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask"$ git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git$ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profi ...
sourcetree big sur Icon Toolbar placement
defaults write com.torusknot.SourceTreeNotMAS NSWindowSupportsAutomaticInlineTitle -bool false
https://jira.atlassian.com/browse/SRCTREE-7585
mockjs
https://github.com/nuysoft/Mock/wiki
占位符:
@占位符@占位符(参数 [, 参数])
如:
12345{ 'list|10': [ {'text': '@ctitle()'} ]}
url
@url
中文文本
@cword()
中文标题
@ctitle
自然数
@natural
布尔
@boolean
随机整数
@integer
随机字符
@string
中文名
@cname
时间
Mac抓取小程序源码
安装安卓模拟器 https://mumu.163.com/
模拟器设置-开启ROOT权限
安装微信 https://weixin.qq.com/download
安装 RE文件管理器
登录微信,点击想要抓取小程序(小程序会闪退)
打开 RE文件管理器,路径:/data/data/com.tencent.mm/MicroMsg/32位字符路径/appbrand/pkg/
长按文件夹压缩,压缩后通过微信发送
下载反编译工具:https://github.com/qwerty472123/wxappUnpacker
执行命令:npm i
node wuWxapkg.js xxx..wxapkg
Vue禁止html的错误提示
123456789<!-- eslint-disable vue/no-unused-vars -->some<!--eslint-enable-->或者<!-- eslint-disable-next-line vue/no-unused-vars -->
nginx certbot 免费泛域名证书
系统: CentOS 7
https://certbot.eff.org/lets-encrypt/centosrhel7-nginx
sudo yum install python2-certbot-dns-cloudflare
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install certbot python2-certbot-nginx
sudo yum install python2-certbot-dns-cloudflare
注册并添加域名: https://dash.cloudflare.com/login
添加路径和文件 ~/.secrets/certbot/cloudflare.ini 内容:
12# Cloudflare API token used by Certbotdns_cloudflare_api_token = 你的api token
chmod 600 ~/. ...
Mac查看安卓apk信息
已安装Android Studio
cd ~/Library/Android/sdk/build-tools/29.0.2
aapt dump badging xxx.apk
热敏打印机无法调整font-size
Web前端需要连接热敏打印机打印小票,但是font-size始终无法调小,最终解决见demo:
update:2020年12月04日
https://medium.com/@Idan_Co/the-ultimate-print-html-template-with-header-footer-568f415f6d2a
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354<!DOCTYPE HTML><html><head> <meta name="renderer" content="webkit"> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1& ...
CocoaPods制作篇
Update: 2015-04-10
上传podspec文件到CocoaPods官方仓库中的方式更改,原来的办法不可行,新的办法如下: http://guides.cocoapods.org/making/getting-setup-with-trunk.html
First you need to register for trunk:
$ pod trunk register orta@cocoapods.org 'Orta Therox' --description='macbook air'
Then you should be able to do:
$ pod trunk push yourPodspec.podspec
I hope that answers your question - I'm afraid I don't speak Chinese so I'm relying on google translate.
大概就是:先把邮箱信息注册,然后收到邮件,点击链接验证,最后一步提交你的po ...
Google Chrome 控制台
consoleconsole.log(object [, object, …])console.info(object [, object, …])console.error(object [, object, …])12var str = 'hello world';console.log('--->>>%s', str);
常用格式代码:
说明符
输出
%s
将值格式化为字符串
%i 或 %d
将值格式化为整型
%f
将值格式化为浮点值
%o
将值格式化为可扩展 DOM 元素。如同在 Elements 面板中显示的一样
%O
将值格式化为可扩展 JavaScript 对象
%c
将 CSS 样式规则应用到第二个参数指定的输出字符串
console.table(object [, columns])将元素属性按表格结构打印出来
console.assert(expression, object)1console.assert(a > b, 'error');
...