NginX错误日志:
pwritev() "/var/lib/nginx/proxy/6/00/0000000006" failed (38: Function not implemented) while reading upstream
'use strict'; | |
angular.module('metrics').filter('orderedJson', [ | |
function () { | |
return function (data) { | |
function _json(d) { | |
var ret = ''; | |
var k; | |
var value; | |
if (!angular.isObject(d) && !angular.isArray(d)) { |
# 官方:https://bugs.chromium.org/p/chromium/issues/detail?id=649253 | |
# 相关1:http://gold.xitu.io/entry/5800318e7db2a200597bff78 | |
# 相关2:https://twiceyuan.com/2016/09/26/sierra-chrome-bug/ | |
# 相关3:https://www.v2ex.com/t/307911 | |
sudo launchctl remove com.alipay.DispatcherService | |
sudo rm -rf /Library/Application\ Support/Alipay && \ | |
sudo rm -rf /Library/LaunchDaemons/com.alipay.DispatcherService.plist && \ | |
sudo rm -rf ~/Library/LaunchAgents/com.alipay.adaptor.plist && \ | |
sudo rm -rf ~/Library/LaunchAgents/com.alipay.refresher.plist && \ |
function Test() {
this.run = function() {
console.log('run', this);
setTimeout(this.run, 1000);
}
}
const t = new Test();
t.run();
https://gist.github.com/malash/fc0c573300b080e5745e68522d1617bf
export class ConcurrencyLimiter { | |
public constructor(private limit: number = Infinity) {} | |
private queue: Array<() => Promise<any>> = []; | |
private currentConcurrency = 0; | |
private async executeQueue() { | |
while (this.queue.length && this.currentConcurrency < this.limit) { | |
const tasks = this.queue.splice(0, this.limit - this.currentConcurrency); |
#!/bin/bash | |
echo "Drag \`.app\` to this shell or press enter to quit:" | |
echo -n "> " | |
read line | |
if [ -z "$line" ]; then | |
exit 0 | |
fi | |
file=`realpath "$line"` |