fflib and at4dx should be pulled locally and pushed to your orgs.
They should NOT be backed up in git.
To install the packages run (from within your SFDX Project):
node --harmony setup.mjs -e ORG_ALIAS| // JWT creation and validation example in Apex | |
| String certificateName = 'JWTDemo'; | |
| String audience = 'nova'; | |
| String issuer = 'something'; | |
| String pubKey = 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA26puZ2Bz2py4jJHXsR2bcMeNIFPH+uoXgI3TRMLSAUzWwR3V9Gpy5YFnk6SPJoeiS2IZXpu8+bH+rvwrMgK1vaPBPYlcmNarsmF2MWK41jxpHb2i9VrPcaB6+ckNOcYfdUl9t/BLCXNuuoYx6AIqGylBuZBk3Q/HCDwxtA/Zjze3TrWt40jVNPKEp4t0XwSGg/CXE47qWpzFyXCuE0lEKX8/Kdn7MF1RYbhAKpGLNhpxpnLt89U1IMuqmo2IlC1f404lptYyfyTfWE3SkWX4yONvx1ZMg33QniHpRI4zf+hLKggScOflnxRTh9HC/IHkWC9UvSfkdduiqQpWdzg5YwIDAQAB'; | |
| Blob publicKeyBlob = EncodingUtil.base64Decode(pubKey); | |
| Auth.JWT jwt = new Auth.JWT(); | |
| jwt.setSub(UserInfo.getUsername()); |
fflib and at4dx should be pulled locally and pushed to your orgs.
They should NOT be backed up in git.
To install the packages run (from within your SFDX Project):
node --harmony setup.mjs -e ORG_ALIAS| /** | |
| * @author [email protected] | |
| * @date 29/08/2024 | |
| * @description A map where the items are lists of items and you can provide a function for how values map to keys. | |
| * Oh, if we had generics.... | |
| */ | |
| public class MultiMap { | |
| private Map<Object, List<Object>> theMap; | |
| private Type listType; |
| { | |
| "$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json", | |
| "basics": { | |
| "name": "Renato Oliveira", | |
| "label": "Senior Salesforce Manager", | |
| "email": "[email protected]", | |
| "url": "https://github.com/renatoliveira", | |
| "summary": "Strategic Salesforce leader with 10+ years of experience designing, delivering, and managing enterprise-scale Salesforce solutions. Proven track record of leading cross-functional teams, defining technical roadmaps, optimizing budgets, and driving AI-enabled automation. Passionate about building high-performing teams that deliver measurable business value. Led teams of 4-6 engineers across multiple Salesforce projects, defined architecture and roadmap for a compliance-document platform, cutting test runtimes, implemented AI-driven automation (OpenAI agents) reducing manual processing effort.", | |
| "location": { | |
| "city": "Belo Horizonte", |
| -- Get the file path to the language server file provided by Salesforce. | |
| local apex_jorje_lsp_file_path = vim.fn.expand("~/Downloads/apex-jorje-lsp.jar") | |
| -- Set up the language server configuration for the Apex language, associating | |
| -- it with the three main file types by extension, disabling telemetry, and | |
| -- specifying the command. | |
| require"lspconfig".apex_ls.setup { | |
| apex_jar_setup = apex_jorje_lsp_file_path, | |
| apex_enable_semantic_errors = false, | |
| apex_enable_completion_statistics = false, |
| ### Keybase proof | |
| I hereby claim: | |
| * I am renatoliveira on github. | |
| * I am thelavasailor (https://keybase.io/thelavasailor) on keybase. | |
| * I have a public key ASCi_4EZpwmK6UrnCFxM7pO72L_xqLu88alhYTzal-cphQo | |
| To claim this, I am signing this object: |
| public class MondayApi { | |
| @SuppressWarnings('PMD.ApexSuggestUsingNamedCred') | |
| public static Map<String, Object> execute(String query) { | |
| HttpRequest request = new HttpRequest(); | |
| request.setEndpoint('callout:MondayApi'); | |
| request.setMethod('POST'); | |
| request.setBody(JSON.serialize(new Map<String, Object>{ | |
| 'query' => query | |
| })); |
| // 1. Erases permissions from current user | |
| // 2. Copies permission set licenses and permission sets from another user. | |
| // Rollback available at the end of the script. | |
| Savepoint sp = Database.setSavepoint(); | |
| String fromUser = '[from username]'; | |
| String toUser = '[to username]'; | |
| // clean the user |
| global class QuotePDFGenerator { | |
| @future(callout=true) | |
| public static void AttachPDFToQuote(String Id) { | |
| try { | |
| CreateQuoteDocumentFromPDF(Id); | |
| } catch(exception ex) { | |
| System.debug('Error: ' + ex); | |
| } | |
| } |
| # Import the required libraries | |
| # Flask is the web framework for dealing with web stuff (such as serving the app and handling | |
| # the connections) We need to import the main "Flask" to run the app, and also its | |
| # request and Response method and class to handle the request properly | |
| from flask import Flask, Response, request | |
| # requests is a simple http request library to handle... requests. | |
| import requests | |
| # Base64 is a standard module to help us encode/decode Base 64 strings |