Skip to content

Instantly share code, notes, and snippets.

@krohne
krohne / countdown.sh
Last active December 27, 2024 06:58
Countdown timer in bash shell script
#!/bin/bash
# $1 = # of seconds
# $@ = What to print after "Waiting n seconds"
countdown() {
secs=$1
shift
msg=$@
while [ $secs -gt 0 ]
do
printf "\r\033[KWaiting %.d seconds $msg" $((secs--))
@lantrix
lantrix / update-exif-from-date-in-filename.sh
Last active October 16, 2024 03:38
Update an exif DateTimeOriginal from data that is stored in the filename from the camera
#!/bin/bash
# For Camera Photos that need the following fix:
# - the DateTimeOriginal was in the filename (the actual time you want as Exif.Image.DateTimeOriginal, and File System Modification Date/Time)
# - The File System Modification Date/Time is wrong
# - the Exif.Image.DateTime was never set or was wrong
# - the Exif.Photo.DateTimeDigitized was never set or was wrong
# - the Exif.Image.DateTime was never set but exists in the MetadataDate
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active May 16, 2025 21:12
crack activate Office on mac with license file
@dimo414
dimo414 / heartbeat.sh
Last active October 15, 2024 02:17
Basic Server Heartbeat Script
#!/bin/bash
# Source: https://gist.github.com/dimo414/10d6f162fb6d72f517a041d28d92314f
#
# This is a basic heartbeat monitoring script suitible for adding to
# a machine's crontab to receive alerts (via https://healthchecks.io)
# when the machine is unhealthy.
#
# I use it to keep an eye on my headless Raspberry Pi, but it should
# work for most Linux machines.
#
@b0gdanw
b0gdanw / Final Cut Pro Trial DMG
Last active May 3, 2025 11:48
Direct links for Final Cut Pro Trial DMGs
Links from https://www.apple.com/final-cut-pro/trial/
Final Cut Pro release notes https://support.apple.com/en-us/HT201237
What's new in Final Cut Pro https://support.apple.com/en-us/HT207877
Release history https://web.archive.org/web/20221121093911/https://en.wikipedia.org/wiki/Final_Cut_Pro_X#Release_history
Final Cut Pro 10.1.3
https://secure-appldnld.apple.com/Final_Cut_Pro_X/031-05296.20140814.VRR4r/FinalCutProTrial10.1.3.dmg
Final Cut Pro 10.1.4
https://secure-appldnld.apple.com/Final_Cut_Pro_X/031-02980.20141202.Jgt44/FinalCutProTrial10.1.4.dmg
@talkingmoose
talkingmoose / Download and Install Jamf Connect.zsh
Last active January 19, 2025 21:34
Downloads and installs the latest available Jamf Connect software for Mac directly on the client. This avoids having to manually download and store an up-to-date installer on a distribution server every month.
#!/bin/zsh
:<<ABOUT_THIS_SCRIPT
-------------------------------------------------------------------------------
Written by:William Smith
Partner Program Manager
Jamf
[email protected]
https://gist.github.com/talkingmoose/94882adb69403a24794f6b84d4ae9de5