This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# NOTE: As with any script you download on the internet, | |
# please make sure you understand what each command is | |
# going to do before running it. | |
rm -rf /usr/local/sfdx | |
rm -rf /usr/local/lib/sfdx | |
rm -rf /usr/local/bin/sfdx | |
rm -rf ~/.local/share/sfdx ~/.config/sfdx ~/.cache/sfdx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* PRE - model declaration on vf page | |
<apex:remoteObjects> | |
<apex:remoteObjectModel name="Account" fields="Id,Name" /> | |
</apex:remoteObjects> | |
*/ | |
/* INSTANCE */ | |
// 1. W/o default properties | |
var acc = new SObjectModel.Account(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function prompt { | |
echo "" | |
echo $1 | |
} | |
prompt "Create project workspace..." | |
sfdx force:project:create -n Demo | |
cd Demo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dx customizations | |
alias status='(sfdx force:org:list & | |
sfdx force:alias:list & | |
sfdx force:config:list; wait)' | |
alias orglist='sfdx force:org:list' | |
alias orglistc='sfdx force:org:list --clean -p' | |
alias push='sfdx force:source:push' | |
alias pull='sfdx force:source:pull' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- visStyles Static resource for CSS styles --> | |
.gi-override { | |
position: relative; | |
} | |
.webrtc-container { | |
position: relative; | |
float: left; | |
width: 559px; | |
height: 420px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ConfigFile } from "@salesforce/core"; | |
export default class TwilioConfig extends ConfigFile<ConfigFile.Options> { | |
public static getFileName(): string { | |
return 'twilioconfig.json'; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { flags, SfdxCommand } from '@salesforce/command'; | |
import { Messages, SfdxError } from '@salesforce/core'; | |
import { AnyJson } from '@salesforce/ts-types'; | |
import { Twilio } from 'twilio'; | |
import TwilioConfig from '../../../lib/twilioconfig'; | |
// Initialize Messages with the current plugin directory | |
Messages.importMessagesDirectory(__dirname); | |
// Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# specify your username or alias | |
usernameOrAlias=$1 | |
hub=$(sfdx force:data:soql:query -q "SELECT DurableId, SettingValue FROM OrganizationSettingsDetail WHERE SettingName = 'ScratchOrgManagementPref'" -t -u ${usernameOrAlias} --json) | |
# parse response | |
size="$(echo ${hub} | jq -r .result.size)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
txtred='\e[0;31m' # Red | |
bldgrn='\e[1;32m' # Green | |
txtrst='\e[0m' # Text Reset | |
#trap "exit 1" TERM | |
#export TOP_PID=$$ | |
prompt() { |
NewerOlder