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
https://levelup.gitconnected.com/15-git-commands-you-should-learn-before-your-very-first-project-f8eebb8dc6e9 | |
https://www.freecodecamp.org/news/learn-the-basics-of-git-in-under-10-minutes-da548267cc91/ | |
https://www.freecodecamp.org/news/7-git-commands-you-might-not-know/ | |
SETUP USER: | |
If one github account needs to setup all of the branches the commands can do that job. | |
git config --global user.email "yourGitHub@email.com" | |
git config --global user.name "yourGitHubusername" | |
If a specific github account need to be setup for specific git repo we just need to ommit --global in the command |
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
The suggested solutions in this link worked for me: https://github.com/forcedotcom/salesforcedx-vscode/issues/1732 | |
To configure this we need a specific JAVA version , here https://developer.salesforce.com/tools/vscode/en/vscode-desktop/java-setup here we can see which java version Salesforce Apex Language Server currently supports. | |
Java on mac and hwo to check them is discussed here: https://stackoverflow.com/questions/36766028/see-all-the-java-versions-installed-on-mac |
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
code to get session id: | |
System.debug('&######## '+ UserInfo.getOrganizationId()+''+UserInfo.getSessionId().SubString(15)); | |
Login URL: <orgURL>/secur/frontdoor.jsp?sid=<orgSessionID> | |
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
You can use cmmand+ to increase size and font of terminal | |
https://www.youtube.com/watch?v=iFvXNfFE_IE | |
To clear : Command+K or clear (When you click command K it completely erases but when you use "clear" it just scriolls up), command+l (it just clears the previous command we used) | |
To check software version type: sw_vers | |
To know even more details: system_profiler (it gives you lots of information, that you can't even read | |
To go to the granualar level of system usage caommand: system_profiler -usage (it gives different commands and it's uage) | |
To use a specific types which is given by above command: system_profiler -listDataTypes (which gives all the data types) | |
To find is there any software to update: softwareupdate -l | |
To monitor network connections: nettop (press q to come out of that window) | |
To monitor the tcp netowrk connections: nettop -m tcp (it shows all the connections using tcp) |
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 os | |
path = r'C:\Users\SudhakaraReddy.Chint\Desktop\customMetadata\\' | |
files = os.listdir(path) | |
for index, file in enumerate(files): | |
print(file) | |
#To remove suffix of the file name, this can be replaced based on the requirement | |
filern = file.removesuffix('.md-meta.xml') | |
#To remove last three characters of the file name, this can also be modified. |
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
@echo off | |
setlocal enableDelayedExpansion | |
for %%F in (*.md-meta.xml) do ( | |
set "name=%%F" | |
ren "!name!" "!name:.md-meta=1.md-meta!" | |
) |
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
Query duplicate record based on a field: | |
Field: Account.Email__c | |
SELECT Email__c, COUNT(Id) FROM Account GROUP BY Email__c HAVING COUNT(Id) > 1 ORDER BY Count(ID) DESC |
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
Paste the below script in 'files to exclude' box in VSCode global search to avaoid the files containing, starting or ending with the text 'TEST' and it is case sensitive. | |
*TEST.cls,*Test.cls,Test*,*Test* | |
Fallow the same approach for 'files to exclude' |
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
command to retrieve componenets from a package: | |
sfdx force:source:retrieve -n "packageName" | |
To define metadata of your org: | |
sfdx force:mdapi:describemetadata -f pathwhereyouwanttosavefile\filename.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
for f in "$@" | |
do | |
DEST="" | |
if [[ $f == *"Screenshot"* ]] | |
then | |
DEST=/Users/s.chintapalli/Dropbox/Screenshots | |
elif [[ $f == *"Screen Recording"* ]] | |
then | |
DEST="/Users/s.chintapalli/Desktop/Screen Recordings" | |
fi |
NewerOlder