Короче сама бд и api к ней: https://github.com/louischatriot/nedb
package.json
:
{
#!/bin/bash | |
# remove exited containers: | |
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v | |
# remove unused images: | |
docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi | |
# remove unused volumes: | |
find '/var/lib/docker/volumes/' -mindepth 1 -maxdepth 1 -type d | grep -vFf <( |
'use strict'; | |
const exec = require('child_process').exec; | |
const https = require('https'); | |
const API_KEY = `*****`; | |
const PHONE_NUMBER = `7920*****`; | |
let state = 'Unknown'; |
Короче сама бд и api к ней: https://github.com/louischatriot/nedb
package.json
:{
const { Service } = require('moleculer'); | |
const compressFileHelper = require('../utils/compress-file'); | |
class CompressorService extends Service { | |
constructor(broker) { | |
super(broker); | |
this.parseServiceSchema({ |
const {Service} = require('moleculer'); | |
const {app, ipcMain} = require('electron'); | |
class ElectronService extends Service { | |
constructor(broker) { | |
super(broker); | |
this.parseServiceSchema({ | |
name: 'electron', |
'use strict'; | |
const { spawn } = require('threads'); | |
const { ServiceBroker } = require('moleculer'); | |
const ElectronService = require('./services/electron.service'); | |
class Loader { | |
static get config() { |
import { Injectable } from '@angular/core'; | |
import { ElectronService } from 'ngx-electron'; | |
import * as _ from 'lodash'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class IPCService { |
Add method handleDroppedFile
:
async handleDroppedFile(payload) {
this.broker.emit('compressor.compressed', {
id: payload.id,
...await this.compressFile(payload.filePath)
});
}
Add handleEvent
method:
handleEvent(payload, sender, event) {
this.metadata.webContents.send(event, payload);
}
Subscribe on event emit
in method serviceCreated
:
In order to tunnel all iOS Internet traffic using SSH:
config.pac
file to copy it to a clipboard.See a detailed video: https://www.youtube.com/watch?v=8r0eEr36Dg4