###SSH into a remote machine###
ssh [email protected]
#or by ip address
ssh [email protected]
exit: exit
###Install Something###
#If it's a new server, update apt-get first thing
| // Async compose | |
| const compose = (…functions) => input => functions.reduceRight((chain, func) => chain.then(func), Promise.resolve(input)); | |
| // Functions fn1, fn2, fn3 can be standard synchronous functions or return a Promise | |
| compose(fn3, fn2, fn1)(input).then(result => console.log(`Do with the ${result} as you please`)) |
###SSH into a remote machine###
ssh [email protected]
#or by ip address
ssh [email protected]
exit: exit
###Install Something###
#If it's a new server, update apt-get first thing