services/data/v37.0/query?q=SELECT+Id+,+EventType+,+LogDate+,+LogFileLength+,+LogFile+FROM+EventLogFile+WHERE+EventType+=+'ReportExport'
This file contains hidden or 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
{"lastUpload":"2020-06-29T23:50:04.400Z","extensionVersion":"v3.4.3"} |
This file contains hidden or 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
List<Account > acclist = [Select id,name , CreatedDate , lastModifiedDate from Account limit 10]; | |
string header = 'Record Id, Name , Created Date, Modified Date \n'; | |
string finalstr = header ; | |
for(Account a: acclist) | |
{ | |
string recordString = '"'+a.id+'","'+a.Name+'","'+a.CreatedDate+'","'+a.LastModifiedDate +'"\n'; | |
finalstr = finalstr +recordString; | |
} | |
Messaging.EmailFileAttachment csvAttc = new Messaging.EmailFileAttachment(); | |
blob csvBlob = Blob.valueOf(finalstr); |
This file contains hidden or 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
Map<Id, sObject> myAwesomeMap = new Map<Id,sObject>(List of sObjects or SOQL Query); |
This file contains hidden or 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
using UnityEngine; | |
using UnityEditor; | |
using System; | |
using UnityEditor.SceneManagement; | |
using UnityEngine.SceneManagement; | |
namespace NirSoft.UtilityEditor | |
{ | |
/// <summary> | |
/// Autosave scene on run. |
This file contains hidden or 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
$startFolder = "C:\Program Files (x86)\Steam\steamapps\common" | |
$colItems = (Get-ChildItem $startFolder | Measure-Object -property length -sum) | |
#"$startFolder -- " + "{0:N2}" -f ($colItems.sum / 1MB) + " MB" | |
"Folder | Size (MB)" | |
$colItems = (Get-ChildItem $startFolder | Where-Object {$_.PSIsContainer -eq $True} | Sort-Object) | |
foreach ($i in $colItems) | |
{ | |
$objFSO = New-Object -com Scripting.FileSystemObject |
This file contains hidden or 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
// change this variable to match the name of the job whose builds you want to delete | |
def jobName = "The Name of the Job Here" | |
def job = Jenkins.instance.getItem(jobName) | |
job.getBuilds().each { it.delete() } | |
// uncomment these lines to reset the build number to 1: | |
//job.nextBuildNumber = 1 | |
//job.save() |
This file contains hidden or 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 list of asynchronous jobs in Salesforce */ | |
select id, jobtype, methodname, status, apexclass.name from asyncapexjob |