I want a script that will give me:
- Logging
- Log purging!
- Email errors!
- Prevent duplicate processes! (flock)
- Source an environment file!
- Anything else?
;===== Change filament G-code without AMS === | |
;===== version: 1.2 ========================= | |
;===== original version date: 20230719 ====== | |
;===== description ========================== | |
; Everything between M620 and M621 is executed only if AMS is connected. | |
; All M620, M620.x and M621 commands are removed to enable manual filament change. | |
; first filament change is skipped | |
{if toolchange_count > 1} |
Windows Registry Editor Version 5.00 | |
; 7-Zip Windows 11 Context Menu entries via whitelisted id reuse example by AveYo | |
; Add to archive.. only single files (multiple would need a single instance redirect tool) | |
[-HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\connectNetworkDrive] | |
[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\connectNetworkDrive] | |
"MuiVerb"="@C:\\Program Files\\7-Zip\\7-zip.dll,-2324" | |
"Position"="Middle" | |
"Icon"="C:\\Program Files\\7-Zip\\7-zip.dll,0" |
function gmailAutoarchive() { | |
var delayDays = 2; // will only impact emails more than 48h old | |
var maxDate = new Date(); | |
maxDate.setDate(maxDate.getDate()-delayDays); // what was the date at that time? | |
// Get all the threads labelled 'autoarchive' | |
var label = GmailApp.getUserLabelByName("autoarchive"); | |
var threads = label.getThreads(0, 400); | |