参考文档: CreatingLaunchdJobs
例子中用户名为name,【】需要删除
com.name.v2ray
| class UF { | |
| constructor(n) { | |
| this.parent = [] | |
| this.size = [] | |
| this.count = n | |
| while(n--) { | |
| this.parent[n] = n | |
| this.size[n] = 1 | |
| } | |
| } |
参考文档: CreatingLaunchdJobs
例子中用户名为name,【】需要删除
com.name.v2ray
| {"lastUpload":"2020-09-25T08:10:47.975Z","extensionVersion":"v3.4.3"} |
| var fs = require('fs'); | |
| //fs异步拷贝版本 | |
| fs.readFile('./img/1.jpg', function(err, data) { | |
| if (err) { | |
| console.log('read fail!'); | |
| } else { | |
| console.log('reading data...'); | |
| write(data); | |
| } |
| #!/bin/sh | |
| # PATH TO YOUR HOSTS FILE | |
| ETC_HOSTS=/etc/hosts | |
| # DEFAULT IP FOR HOSTNAME | |
| IP="127.0.0.1" | |
| # Hostname to add/remove. | |
| HOSTNAME=$1 |