Skip to content

Instantly share code, notes, and snippets.

@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
@b0gdanw
b0gdanw / Final Cut Pro Trial DMG
Last active April 15, 2025 19:18
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
@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.
#
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active April 19, 2025 13:27
crack activate Office on mac with license file
@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
@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--))
@andrepearce
andrepearce / chromium_update.sh
Last active January 19, 2025 06:32 — forked from Superbil/chromium_update.sh
Auto Update Chromium on OSX
#!/bin/sh -ex
# Chromium update script
# - forked from Superbil/chromium_update.sh
# - Updated by andrepearce
OS=mac
DL_URL=https://download-chromium.appspot.com/dl/${OS}?type=snapshots
INSTALL_DIR=/Applications
TMP_DIR="/tmp/update-chrome-$RANDOM"
TMP_File=chromium.zip
@Freaky
Freaky / borg-backup.sh
Last active February 20, 2023 20:39
Simple BorgBackup script
#!/bin/sh
#
# borg-backup.sh - BorgBackup shell script
#
# Author: Thomas Hurst <[email protected]>
#
# No warranty expressed or implied. Beware of dog. Slippery when wet.
# This isn't going to be your *only* backup method, right?
#
# Synopsis:
@geerlingguy
geerlingguy / dashcam-time-lapse.sh
Last active August 10, 2023 06:06
Create a time lapse video from a set of real-time dash cam clips.
#!/bin/bash
#
# Batch Time-Lapse creation script.
#
# This script can be used to speed up, trim, and finally concatenate tens or
# even hundreds of video clips, e.g. from a dash cam. You can do other things,
# too, but the main things this script does include:
#
# 1. Copy across and speed up video clips from an input dir to an output dir.
# 2. Trim off the first x frames of each of the copied/sped up clips.
@agunnerson-ibm
agunnerson-ibm / human_readable.sh
Last active May 22, 2024 07:27
Bash function to convert bytes to human readable size
# Copyright 2015 Andrew Gunnerson <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,