Skip to content

Instantly share code, notes, and snippets.

View envygeeks's full-sized avatar
🐢

Jordon Bedwell envygeeks

🐢
View GitHub Profile
on idle
tell application "Finder"
do shell script "find ~ -name .DS_Store -mindepth 2 -delete"
set volumesToClean to {"Backups", "Movies"}
repeat with volume in volumesToClean
if (exists disk volume) then
set volPath to "/Volumes/" & volume
do shell script "find " & quoted form of volPath & " -name .DS_Store -delete"
do shell script "dot_clean " & quoted form of volPath
find . -maxdepth 1 -name \*.mp4 -type f | while read f; do
date=$(mediainfo "$f" | grep -i "Recorded Date" | \
sed -E 's/\s**recorded date\s*:\s*//i')
touch -d "$date" "$f"
done
#!/bin/bash
[ "$DEBUG" = "true" ] && set -x
set -e
a=$(openssl x509 -noout -modulus -in "$1".crt | openssl md5)
b=$(openssl rsa -noout -modulus -in "$1".key | openssl md5)
c=$(openssl req -noout -modulus -in "$1".csr | openssl md5)
if a != b || b != c || c != a; then
echo "Mismatch"
#!/bin/bash
nvram 8be4df61-93ca-11d2-aa0d-00e098032b8c:epid_provisioned=%01%00%00%00
git commit --amend --date="$(date -R)"