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": "Salesforce Developer", | |
"image": "https://avatars.githubusercontent.com/u/6956403?v=4", | |
"email": "[email protected]", | |
"url": "https://github.com/renatoliveira", | |
"summary": "Renato Oliveira is a seasoned Salesforce Developer, Architect, and Consultant with nearly a decade of hands-on experience in leveraging Salesforce to drive business growth. Starting as a support analyst in 2015, Renato took an unconventional path by mastering the Salesforce Metadata API early in his career, giving him a deep, technical understanding of the platform. Fluent in English and Portuguese, he has collaborated with clients across Brazil, the US, and the UK, delivering scalable solutions tailored to diverse business needs. Renato's expertise spans custom development with Apex and Lightning Web Components, integrations with AW |
-- 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 |