const feathers = require('@feathersjs/feathers');
const socketio = require('@feathersjs/socketio');
const { socket: commons } = require('@feathersjs/transport-commons');
const assert = require('assert');
const { EventEmitter } = require('events');
const messages = require('../src/messages');
describe('\'messages\' service', () => {
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
| version: '3.7' | |
| services: | |
| zookeeper: | |
| container_name: zookeeper | |
| image: docker.io/bitnami/zookeeper:3.8 | |
| ports: | |
| - "2181:2181" | |
| volumes: | |
| - "zookeeper_data:/bitnami" |
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
Show hidden characters
| // This file was initially generated by Windows Terminal 0.11.1121.0 | |
| // It should still be usable in newer versions, but newer versions might have additional | |
| // settings, help text, or changes that you will not see unless you clear this file | |
| // and let us generate a new one for you. | |
| // To view the default settings, hold "alt" while clicking on the "Settings" button. | |
| // For documentation on these settings, see: https://aka.ms/terminal-documentation | |
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", |
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
| forfiles -p "C:\Program Files (x86)\Symantec\LiveUpdate Administrator\clu-prod" -s -m *.* -d -1 -c "cmd /c del @path" | |
| explorer "C:\Program Files (x86)\Symantec\LiveUpdate Administrator\clu-prod" | |
| call aws s3 rm s3://my-bucket/clu-prod --recursive | |
| call aws s3 cp "C:/Program Files (x86)/Symantec/LiveUpdate Administrator/clu-prod/" s3://my-bucket/clu-prod --recursive |
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
| const fs = require('fs') | |
| const AWS = require('aws-sdk') | |
| const BUCKET_NAME = 'my-bucket' | |
| const ACCESS_KEY = 'AKIAXXXXXXXXXXXXXXXX' | |
| const SECRET_KEY = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' | |
| const FILE = 'file-to-download.txt' | |
| AWS.config.update({ | |
| region: 'ap-southeast-1', |
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
| const crypto = require('crypto'); | |
| const keyPair = crypto.generateKeyPairSync('rsa', { | |
| // Max length of plaintext = (512 / 8) - 42 = 22 bytes | |
| modulusLength: 512, | |
| publicKeyEncoding: { | |
| type: 'spki', | |
| format: 'pem' | |
| }, | |
| privateKeyEncoding: { |
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
| const crypto = require('crypto'); | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const Client = require('ssh2-sftp-client'); | |
| // Host public key e.g. /etc/ssh/ssh_host_ecdsa_key.pub | |
| const fingerprint = process.env.HOST_FINGERPRINT; | |
| const hostConfig = { | |
| host: process.env.HOST, | |
| port: process.env.PORT || 22, |