* * * * * - Every minute.
0 0 * * * - At midnight every day.
30 14 * * 5 - At 14:30 (2:30 PM) on every Friday.
0 22 * * 1-5 - At 22:00 (10 PM) from Monday to Friday.
| Add-Type -AssemblyName System.Windows.Forms | |
| Add-Type -AssemblyName System.Drawing | |
| # 3 state badge | |
| $badgeUrl = "https://healthchecks.io/badge/37a5b3b3-74a5-43ec-9b65-c1b1b7/2lErRuPC.svg" | |
| $pollSeconds = 10 # Check every 10 seconds | |
| $gracePeriodSeconds = 30 # Must be in a bad state for 30 seconds before notifying (should be >2x multiplier of $pollSeconds) | |
| $notify = New-Object System.Windows.Forms.NotifyIcon | |
| $notify.Icon = [System.Drawing.SystemIcons]::Information |
| #!/bin/bash | |
| # PREFLIGHT | |
| # sudo apt update && sudo apt install -y imagemagick optipng jpegoptim webp tar findutils | |
| set -euo pipefail | |
| # ---------------------------- | |
| # Defaults | |
| # ---------------------------- |
| import mailbox | |
| import os | |
| import argparse | |
| import re | |
| from email.utils import parsedate_to_datetime | |
| from email.header import decode_header | |
| def decode_subject(message): | |
| """ | |
| Decodes the email subject into a clean string, handling multi-line and |
| # Define the task details | |
| $taskName = "StartDockerDesktopAtBoot" | |
| $taskDescription = "Starts Docker Desktop automatically after boot (with 2-minute delay), regardless of user login." | |
| $wrapperScriptPath = [Environment]::GetFolderPath("Desktop") + "\DockerStartWrapper.ps1" # Wrapper script on current user's desktop for delay | |
| try { | |
| # Get current user's full username for the principal | |
| $userId = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name | |
| # Check if the task already exists and remove it to avoid conflicts |
| <?xml version="1.0" encoding="UTF-16"?> | |
| <Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> | |
| <RegistrationInfo> | |
| <URI>\{{taskName}}</URI> | |
| </RegistrationInfo> | |
| <Triggers> | |
| <LogonTrigger> | |
| <Enabled>true</Enabled> | |
| </LogonTrigger> | |
| </Triggers> |
| import win32gui | |
| import win32con | |
| import win32process | |
| import time | |
| import csv | |
| from datetime import datetime | |
| from pynput import keyboard, mouse | |
| from collections import defaultdict | |
| # Dictionary to store keystrokes and mouse movement per window title |
I hereby claim:
To claim this, I am signing this object:
| for %F in (*.mp4) do @(md "%~nF" 2>nul && move "%F" "%~nF\") |
| <?php | |
| /* | |
| Plugin Name: WC Category Image Fallback | |
| Description: WooCommerce Product Image Fallback for Categories. | |
| Version: 1.0 | |
| Author: Andy Gee | |
| */ | |