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
| 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 |
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
| 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 |
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 | |
| [ "$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" |
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 | |
| nvram 8be4df61-93ca-11d2-aa0d-00e098032b8c:epid_provisioned=%01%00%00%00 |
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
| git commit --amend --date="$(date -R)" |
OlderNewer