###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
| #!/usr/bin/env bash | |
| echo " | |
| ---------------------- | |
| NODE & NPM | |
| ---------------------- | |
| " | |
| # add nodejs 10 ppa (personal package archive) from nodesource | |
| curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - |
###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
| var http = require("http"); | |
| http.createServer(function (req, res) { | |
| res.writeHead(301, {"Location": "http://jesusabdullah.net"}); | |
| res.end(); | |
| }).listen(8080); |
| /* | |
| ====================================================================== | |
| The following apex code demonstrates logging into another salesforce | |
| org via the SOAP/XML web service api and then using session id to | |
| query the standard REST API as well as the Chatter REST API. | |
| To run this code, simply copy and paste into execute anonymous, | |
| then replace the value of the first three variables accordingly. | |
| NOTES: | |
| (1) You'll need to create a remote site setting for both the login |