Skip to content

Instantly share code, notes, and snippets.

@dominicstop
dominicstop / kill_adobe.command
Last active May 26, 2026 13:23
Force Kill/Terminate All Adobe-Related Process and Apps in MacOS
declare -a adobeProcessList=('AdobeCRDaemon' 'AdobeIPCBroker' 'com.adobe.acc.installer.v2' 'CCXProcess.app' 'CCLibrary.app' 'Adobe CEF Helper' 'Core Sync' 'Creative Cloud Helper' 'Adobe Desktop Service' 'Creative Cloud');
for processName in "${adobeProcessList[@]}"; do
pgrep -f "$(echo $processName)" > /dev/null;
if [ $? -ne 0 ]; then
echo "process not running, skipping: ${processName}";
continue;
fi;
@samnabi
samnabi / config.php
Created February 1, 2016 18:41
Kirby v2: Shrink large images on upload
<?php
// Copy this code into your config.php file
// Replace the default $maxDimension to meet your needs
// Read more about Kirby's Panel hooks at https://getkirby.com/docs/panel/developers/hooks
// Shrink large images on upload
kirby()->hook('panel.file.upload', 'shrinkImage');
kirby()->hook('panel.file.replace', 'shrinkImage');
function shrinkImage($file, $maxDimension = 1000) {