Some useful execute anoymous code snippets
Sets the users password as desired without having to reset in UI.
System.setPassword('userid', 'strongpassword')
Useful for determining master detail relationship names for use in SOQL queries.
public static void GetRelationship(string whatObject){
SObjectType objectType = Schema.getGlobalDescribe().get(whatObject); Schema.DescribeSObjectResult R = objectType.getDescribe(); ListEnd