title |
---|
It Works! |
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
sfdx force:data:soql:query -q "SELECT __fields__ FROM __object__ WHERE __conditions__" -u __username__ |
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
sfdx force:schema:sobject:describe --json -s account | \ | |
jq -r '.result.fields[] | .name' |
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
set dt to current date | |
set time of dt to 0 | |
log dt | |
tell application "Things3" | |
set toDos to to dos in list "Today" | |
set str to "" | |
repeat with td in toDos | |
try |
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
-- This requires setting the shortcut for "Turn Do Not Disturb On/Off" to "shift + cmd + D" | |
tell application "System Events" | |
keystroke "D" using {command down, shift down} | |
end tell |
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
# Get only the name of the current directory | |
basename $PWD | |
# ~ | |
# Set an array var | |
set _shows 'The Office' 'It\'s Always Sunny in Philadelphia' | |
# For loop | |
for _show in $_shows | |
echo "I love $_show!" |
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 (let t of base.tables) { | |
let md = `#### ${t.name}\n`; | |
for (let f of t.fields) { | |
md += `\n- ${f.name}`; | |
} | |
output.markdown(md); | |
} |
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
sfdx force:schema:sobject:describe -s $_OBJECT --json | jq '[.result.childRelationships[] | {field, childSObject, relationshipName}]' |
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
sfdx force:data:soql:query -q "SELECT DataType, QualifiedApiName FROM FieldDefinition WHERE EntityDefinitionId = '$_OBJECTID'" -t |
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
# Get the name of each field on an object, by parsing its JSON description with jq | |
sfdx force:schema:sobject:describe --json -s account | jq -r '.result.fields[] | .name' |
OlderNewer