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
| diff_dirs() { | |
| local group=0 | |
| while [[ "$1" == -* ]]; do | |
| case "$1" in | |
| -g|--group) group=1; shift ;; | |
| -h|--help) | |
| echo "Usage: diff_dirs [-g] <folderA> <folderB>" | |
| echo "" | |
| echo "Quick directory comparison using rsync (compares by file size only)." | |
| echo "" |
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
| // Flexoki Light for Blink Shell | |
| // https://stephango.com/flexoki | |
| black = '#100F0F'; // Flexoki black | |
| red = '#AF3029'; // Red 600 | |
| green = '#66800B'; // Green 600 | |
| yellow = '#AD8301'; // Yellow 600 | |
| blue = '#205EA6'; // Blue 600 | |
| magenta = '#A02F6F'; // Magenta 600 | |
| cyan = '#24837B'; // Cyan 600 |
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
| // Life Calendar Wallpaper Generator for Scriptable | |
| // https://waitbutwhy.com/2014/05/life-weeks.html | |
| // https://x.com/luismbat/status/2006693230109176288 | |
| // https://x.com/pastabrian/status/2006756624246112619 | |
| // https://x.com/anvanvan/status/2006887614671106311 | |
| // Install instructions: | |
| // 1. Download https://scriptable.app | |
| // 2. Go to Shortcut app and create a new shortcut | |
| // 3. Add `Run Inline Script` and `Set Wallpaper` |
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
| #!/usr/bin/osascript | |
| # Toggle macOS App Window State | |
| # | |
| # This script provides smart window toggling for any macOS application: | |
| # - If app is not running → launches and activates it | |
| # - If app is minimized → restores and brings to front | |
| # - If app is in background → brings to front | |
| # - If app is in foreground → minimizes to dock | |
| # |
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
| #!/bin/bash | |
| #=============================================================================== | |
| # AUTO TIME MACHINE BACKUP SCRIPT | |
| #=============================================================================== | |
| # | |
| # DESCRIPTION: | |
| # Automatically detects when an external SSD is connected, mounts the Time | |
| # Machine sparsebundle, runs a backup, and safely ejects both volumes when | |
| # complete. Uses event-driven architecture (no polling) for better power |
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
| tell application "Safari" | |
| make new document | |
| activate | |
| end tell |
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
| param( | |
| [Parameter(Mandatory=$true)] | |
| [string]$FolderPath | |
| ) | |
| function Sort-Files { | |
| Get-ChildItem -Path $FolderPath -File -Recurse | ForEach-Object { | |
| #Write-Host "File: $_" | |
| $creationDate = $_.CreationTime -replace("[^0-9/\:\sapm]") | |
| $fileName = $_.Name |
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
| " 1. performance settings | |
| set synmaxcol=300 | |
| set noshowmatch | |
| set lazyredraw | |
| set ttyfast | |
| set nocursorline | |
| " leader key | |
| let mapleader = "\<space>" | |
| set timeoutlen=1000 ttimeoutlen=0 |
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
| #!/bin/sh | |
| # newfiles | |
| # Detects new and changed php and html files last xxx minutes | |
| # (C) 2014 Rene Kreijveld, enail [at] renekreijveld [dot] nl | |
| # Update 31-12-2013: only send email when changes are found | |
| # Update 04-02-2014: check for new files last three hours | |
| # Update 05-05-2014: check for new html files also | |
| # Update 07-05-2014: filter out ju_chached and DirectAdmin stats folders in html files |