This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
// @ts-check | |
const fs = require('fs'); | |
const path = require('path'); | |
const inputs = []; | |
const ERR_REG = /(error|warning): .+ \((.+)\) at (.+):(\d+):(\d+):/; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
name: aria2-deployment | |
labels: | |
app: aria2 | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Future { | |
constructor(executor) { | |
this.status = 'pending'; | |
this.value = undefined; | |
this.reason = undefined; | |
this.then = (onFulfilled, onRejected) => { | |
let value, reason; | |
if (typeof onFulfilled !== 'function') { |