export type DeepPartial<T> = T extends Function ? T : (T extends object ? { [P in keyof T]?: DeepPartial<T[P]>; } : T);Before [email protected]
type DeepPartial = {export type DeepPartial<T> = T extends Function ? T : (T extends object ? { [P in keyof T]?: DeepPartial<T[P]>; } : T);type DeepPartial = {| const child_process = require('child_process'); | |
| const daemon = (pathname) => { | |
| const child = child_process.fork(pathname); | |
| child.unref(); | |
| return child; | |
| }; | |
| module.exports = daemon; |
| const _ = require('lodash'); | |
| module.exports = async (id, config = {}) => { | |
| if (!id) { | |
| return null; | |
| } | |
| const [repository, checkout = ''] = id.split('@'); | |
| const token = config.token || ''; |
| const chunk = (text: string, chunkSize = 128) => { | |
| const traverse = ( | |
| currentResult: string[], | |
| text: string, | |
| chunkSize: number, | |
| ): string[] => { | |
| if (!text || text.length === 0) { | |
| return currentResult; | |
| } else { | |
| const currentSegmentation = text.slice(0, chunkSize); |
| {"lastUpload":"2020-09-18T03:12:55.547Z","extensionVersion":"v3.4.3"} |
| { | |
| "subtitle": "code. for. life." | |
| } |
| function Promisible(executor) { | |
| var _this = this; | |
| _this.status = 'pending'; | |
| _this.result = null; | |
| _this.reason = null; | |
| _this.resolvedCallbacks = []; | |
| _this.rejectedCallbacks = []; | |
| function resolve(result) { | |
| if (_this.status === 'pending') { |
First off, credit goes to github.com/rudolfratusinski for leading the way here.
https://gist.github.com/rudolfratusinski/a4d9e3caff11a4d9d81d2e84abc9afbf
In a very similar approach, copy the files from the Parallels installation media and drop them in a folder somewhere (eg. ~/parallels_fixed)
Go to the kmods directory (cd ~/parallels_fixed/kmods) and extract the files (tar -xzf prl_mod.tar.gz)
Remove prl_mod.tar.gz file from that directory (rm prl_mod.tar.gz)
| import config from '../../config/rabbitmq' | |
| import { Consumer } from '../message_queue' | |
| const consumer = new Consumer(config) | |
| consumer.on('message', message => { | |
| console.log(message) | |
| }) |
| const tcpp = require('tcp-ping') | |
| const _ip = Symbol('ip') | |
| const _port = Symbol('port') | |
| class TCPChecker { | |
| /** | |
| * @constructor | |
| * @param {string} address |