Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Proudly supplied by Salesforce Way Site: https://salesforceway.com | |
# This cheatsheet contains the most often used sf(v2) commands to get a jumpstart. | |
# Hint. It is highly recommended to use `sf search` to search for commands, examples, parameters. | |
# More commands can be found in the official sites: | |
# https://developer.salesforce.com/docs/atlas.en-us.244.0.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_unified.htm | |
# The old "sfdx" cheatsheet is stored below: | |
# https://gist.github.com/XiXiaoFinland/e22aad45caf67df33aeafae085810570 |
How To Power Up SFDX-CLI with VS Code Remote - SSH, Windows Edition | |
by Vernon Keenan | |
from SalesforceDevops.net | |
Youtube: https://youtu.be/vdwM2WOUBuk | |
Change these values for your environment: | |
devops = DNS hostname of remote SSH server | |
vern = Linux username on remote server |
public class DeskSample | |
{ | |
private static String OAUTH_KEY = 'youroauthkey'; | |
private static String OAUTH_SECRET = 'youroauthsecret'; | |
private static String ACCESS_TOKEN = 'youraccesstoken'; | |
private static String ACCESS_TOKEN_SECRET = 'youraccesstokensecret'; | |
public static String DESK_SITENAME = 'yoursite'; | |
public static Void doRequest() |
public class UpdateFieldAction { | |
@InvocableMethod( | |
label='Update Field Action' | |
description = 'Update a field on another object' | |
) | |
public static void updateFields(List<Request> requests) { | |
for(Request request : requests){ | |
updateField(request); |
Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
#! /bin/bash | |
# | |
# Requires jq - see https://stedolan.github.io/jq/ | |
# | |
# Assumes that the following env vars are set: | |
# | |
# CLIENT_ID - the client ID for your OAuth 2 app | |
# JWT_KEY_FILE - path to the private key for creating a JWT | |
# HUB_USERNAME - authentication username |
This gist was essentially created out of my own rant about Netflix being hostile to IPv6 tunnel services since June 2016. You are welcome to read my opinion on the matter, this is the more technical side to the issue and how to combat it within your own network.
Since I wrote this, various GitHub users have contributed their thoughts and ideas which has been incorporated into this gist. Thank you to everyone who have contributed their own methods and implementations.
Netflix now treats IPv6 tunnel brokers (such as Hurricane Electric) as proxy servers. A while ago it became apparent to users and Netflix that somewhat by accident, IPv6 tunnel users were being served content outside of their geolocation because of the way Netflix was identifyi
If you have multiple applications on Heroku and would like to use a single Logentries account for all of them, this is how you do it. Basically, do not use add-ons, and send all drains to your account.
Add Log
Manual
access.log
new
set named myapp-{environment}
, for instance myapp-staging
(at least, this is how I like to name my entries)Plain TCP, UDP - logs are sent via syslog
optionCreate Log Token
public class AutocompleteController { | |
@AuraEnabled | |
public static List<sObject> getSuggestions(String sObjectType, String term, String fieldsToGet, Integer limitSize) { | |
// could add in logic to remove possible duplicate fields | |
String fields = fieldsToGet.length() > 0 ? ',' + fieldsToGet : ''; | |
String soql = | |
' SELECT Name, Id ' + String.escapeSingleQuotes(fields) + | |
' FROM ' + String.escapeSingleQuotes(sObjectType) + | |
' WHERE Name Like \'' + String.escapeSingleQuotes(term) + '%\'' + |
//oauth2 auth | |
chrome.identity.getAuthToken( | |
{'interactive': true}, | |
function(){ | |
//load Google's javascript client libraries | |
window.gapi_onload = authorize; | |
loadScript('https://apis.google.com/js/client.js'); | |
} | |
); |