Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
Pricebook2 pb = new Pricebook2(Name = 'Standard Price Book 2009', Description = 'Price Book 2009 Products', IsActive = true ); | |
insert pb; | |
Product2 prod = new Product2(Name = 'SLA: Bronze', IsActive = true); | |
insert prod; | |
// First insert a price for the standard price book | |
Pricebook2 standardPB = [select id from Pricebook2 where isStandard=true]; | |
PricebookEntry standardPBE = new PricebookEntry(Pricebook2Id = standardPB.Id, Product2Id = prod.Id, UnitPrice = 1000, IsActive = true); | |
insert standardPBE; | |
PricebookEntry pbe = new PricebookEntry(Pricebook2Id = pb.Id, Product2Id = prod.Id, UnitPrice = 1000, IsActive = true); | |
insert pbe; |
#the follow file ends with .conf and needs to be in the /etc/rsyslog.d dir | |
*.* @<GRAYLOG SERVER>:<PORT>;RSYSLOG_SyslogProtocol23Format | |
FOR E.G. *.* @192.168.0.1:5514;RSYSLOG_SyslogProtocol23Format |
List<Account> accList = new List<Account>( | |
[Select | |
Id | |
,Name | |
,(Select | |
From | |
Contacts | |
) | |
From Account] |
import socket | |
import struct | |
class VNCServer: | |
def __init__(self, host='localhost', port=5900): | |
self.host = host | |
self.port = port | |
self.server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
self.server_socket.bind((self.host, self.port)) | |
self.server_socket.listen(1) |
/// usage below | |
List<String> urls = new List<String>{ | |
'https://example1.com', | |
'https://example2.com', | |
'https://example3.com' | |
}; | |
AddTrustedUrls.addUrlsToTrustedSites(urls); | |
public class AddTrustedUrls { | |
@AuraEnabled | |
public static void addUrlsToTrustedSites(List<String> urls) { |