Skip to content

Instantly share code, notes, and snippets.

#!/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 -
@sfdcmahi
sfdcmahi / gist:7b4a8e39e709c50a2ce65d2a8fea66de
Created November 16, 2017 05:02 — forked from learncodeacademy/gist:5850f394342a5bfdbfa4
SSH Basics - Getting started with Linux Server Administration

###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
@sfdcmahi
sfdcmahi / redirect.js
Created September 15, 2017 08:32
How to do 301-style redirects with node.js
var http = require("http");
http.createServer(function (req, res) {
res.writeHead(301, {"Location": "http://jesusabdullah.net"});
res.end();
}).listen(8080);
@sfdcmahi
sfdcmahi / ApexOrg2Org
Created September 22, 2016 06:47 — forked from richardvanhook/ApexOrg2Org
Apex code demonstrating how to log in from one salesforce org to another
/*
======================================================================
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