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
| ---- install Oracle JDK 1.8 | |
| $ wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u141-b15/336fa29ff2bb4ef291e347e091f7f4a7/jdk-8u141-linux-x64.rpm | |
| $sudo yum install -y jdk-8u141-linux-x64.rpm | |
| ---- install OpenJDK | |
| $ vi install.sh | |
| yum install -y java-1.8.0-openjdk-devel | |
| yum remove java-1.7.0-openjdk | |
| wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo |
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
| // check version | |
| node -v || node --version | |
| // list locally installed versions of node | |
| nvm ls | |
| // list remove available versions of node | |
| nvm ls-remote | |
| // install specific version of node |
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
| Apex Code: | |
| HttpRequest req = new HttpRequest(); | |
| req.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionID()); | |
| req.setHeader('Content-Type', 'application/json'); | |
| String domainUrl=URL.getSalesforceBaseUrl().toExternalForm(); | |
| system.debug('********domainUrl:'+domainUrl); | |
| req.setEndpoint(domainUrl+'/services/data/v28.0/tooling/query/?q=Select+id,DeveloperName,Sharingmodel,NamespacePrefix+from+CustomObject'); | |
| req.setMethod('GET'); |
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
| #!/bin/bash | |
| # Sometimes you need to move your existing git repository | |
| # to a new remote repository (/new remote origin). | |
| # Here are a simple and quick steps that does exactly this. | |
| # | |
| # Let's assume we call "old repo" the repository you wish | |
| # to move, and "new repo" the one you wish to move to. | |
| # | |
| ### Step 1. Make sure you have a local copy of all "old repo" | |
| ### branches and tags. |
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
| /* | |
| ====================================================================== | |
| 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 |
NewerOlder