Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
From https://synocommunity.com add http://packages.synocommunity.com to your NAS package sources. | |
For that, go to NAS->Package Cnter->Click Settings->Package Sources tab. | |
Then from the community, you can see Mosquitto. Install it. | |
After installing, please stop the Mosquitto service before updating configuration. You can start service after changes. | |
Enable Admin login for Synology | |
Enable SSH in NAS | |
Download putty and connect to NAS Server | |
Login using admin | |
Change to root user [sudo -i, {use admin password}] | |
Find mosquitto.conf file [find / -name mosquitto.conf] |
/// <resources type="react" /> | |
/// <resources type="draft-js" /> | |
declare module "draft-js-plugins-editor" { | |
export type PluginsEditorProps = Draft.EditorProps | { | |
plugins: any, | |
} | |
export default class PluginsEditor | |
extends React.Component<PluginsEditorProps, Draft.EditorState> {} |
// Author: Renat Tuktarov ([email protected]) | |
const retry = function(fn, prev) { | |
return new Promise((current, reject) => { | |
const resolve = _ => (prev && prev()) || current(); | |
fn(resolve, delay => { | |
setTimeout(_ => { | |
retry(fn, resolve); | |
}, delay); |
Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
var net = require('net'); | |
// creates the server | |
var server = net.createServer(); | |
//emitted when server closes ...not emitted until all connections closes. | |
server.on('close',function(){ | |
console.log('Server closed !'); | |
}); |
////// Save as index.js and upload it to Lambda as zip archive with node_modules directory. After: | |
////// npm install aws-cloudwatch-chart | |
////// npm install request | |
////// no need to upload aws-sdk module | |
////// Don't forget to change API keys here. | |
////// License: MIT | |
////// Docs: |