Copy and paste the instruction below in your BASH terminal.
It should work for any Ubuntu based distribution.
Your local user password will be required.
#!/bin/bash | |
# source: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_key_and_cert.htm | |
openssl genpkey -des3 -algorithm RSA -pass pass:SomePassword -out server.pass.key -pkeyopt rsa_keygen_bits:2048 | |
openssl rsa -passin pass:SomePassword -in server.pass.key -out server.key | |
openssl req -new -key server.key -out server.csr |
{ | |
"parser": "@babel/eslint-parser", | |
"parserOptions": { | |
"requireConfigFile": false, | |
"babelOptions": { | |
"parserOpts": { | |
"plugins": ["classProperties", ["decorators", { "decoratorsBeforeExport": false }]] | |
} | |
} | |
}, |
List<Case> cases = new List<Case>{ | |
new Case(Subject = 'Mild problem', Origin = 'Phone', Escalated__c = false, Status = 'Closed') | |
, new Case(Subject = 'Problem 1', Origin = 'Web', Escalated__c = true, Status = 'Closed') | |
, new Case(Subject = 'Problem 2', Origin = 'Web', Escalated__c = true, Status = 'In Progress') | |
, new Case(Subject = 'Problem 3', Origin = 'Email', Escalated__c = true, Status = 'Open') | |
}; | |
class MildCase extends CaseEntity { | |
protected override Edl.Expression identityExpression() { | |
return subject().isEqualTo('Mild problem'); |
public class ExpensesSelector { | |
public static Map<Id, Expense> selectAll() { | |
return dataService.selectAll(); | |
} | |
private static ExpensesDataService dataService { | |
get { | |
if (null == dataService) { | |
// use with sharing by default |
# git | |
Set-Alias -Name g -Value git -Option ReadOnly | |
Function Git-Status { git status $args } | |
Set-Alias -Name gs -Value Git-Status -Option ReadOnly | |
Function Git-Commit { | |
git add . | |
git commit -m $args | |
} |
#!/bin/sh | |
# git | |
alias g='git' | |
alias gs='git status' | |
alias gc='git add . && git commit -m' | |
alias ga='git add . && git commit --amend --no-edit' | |
alias gl='git log --oneline' | |
alias gpush='git push' | |
alias gpull='git pull' |
``` | |
\n\s*<flowAccesses>\n([\S ]*\n){1}[\S ]*Play_Changed<[\S ]*\n([\S ]*\n){0}[\S ]*</flowAccesses> | |
``` | |
{1} : number of lines *between* the outter open element and the line with the text to match; | |
< at the end of `Play_Changed<` : terminator to avoid matching text that starts with Play_Changed; | |
{0} : number of lines *between* the line with the text to match and the outter close element; |
//jshint esnext:true |