This file contains 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/zsh -f | |
# Download and install (or update) Xquartz | |
# | |
# From: Timothy J. Luoma | |
# Mail: luomat at gmail dot com | |
# Date: 2014-06-10 | |
NAME="$0:t:r" | |
APP_PATH='/Applications/Utilities/XQuartz.app' |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>PATH</key> | |
<string>/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin</string> | |
</dict> | |
<key>Label</key> |
This file contains 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 hasDocument() | |
tell application "Microsoft Word" | |
every document is not missing value | |
end tell | |
end hasDocument | |
tell application "Microsoft Word" | |
if it is running and my hasDocument() then | |
save active document | |
end if | |
end tell |
This file contains 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/env zsh -f | |
# Purpose: get the RSS feed for a YouTube page | |
# Inspired By: https://eggfreckles.net/notes/youtube-rss/ | |
# Gist: https://gist.github.com/tjluoma/fdbc63ceb78a2aecd3d638fd18b6ec6e | |
# | |
# From: Timothy J. Luoma | |
# Mail: luomat at gmail dot com | |
# Date: 2020-01-17; updated 2021-01-10 | |
# 2021-01-10 YouTube currently has both 'rssUrl' and |
This file contains 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/env zsh -f | |
# Purpose: rename PDFs by their creation date | |
# | |
# From: Timothy J. Luoma | |
# Mail: luomat at gmail dot com | |
# Date: 2019-12-26 | |
NAME="$0:t:r" | |
if [[ -e "$HOME/.path" ]] |
This file contains 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/zsh | |
# Purpose: Download and install Mac OS X’s combo updater | |
# | |
# From: Tj Luo.ma | |
# Mail: luomat at gmail dot com | |
# Web: http://RhymesWithDiploma.com | |
# Date: 2014-05-15 | |
# This is the only thing you _have_ to change | |
URL='http://support.apple.com/downloads/DL1786/en_US/OSXUpdCombo10.10.2.dmg' |
This file contains 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
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": false, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { |
This file contains 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/env zsh -f | |
# set this to whatever URL you want to capture | |
URL='https://www.abc.com' | |
# folder where do you want screenshots to go | |
# the folder will be created if it does not exist | |
DIR="$HOME/Desktop/Screenshots" | |
# could also be 'png' if you prefer |
This file contains 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
# Output of: `sudo ls -lRa /etc/letsencrypt` | |
``` | |
total 16 | |
drwxr-xr-x 12 root wheel 384 Jul 15 21:56 . | |
drwxr-xr-x 96 root wheel 3072 Jul 2 11:17 .. | |
-rw-r--r-- 1 root wheel 64 Feb 29 2020 .updated-options-ssl-apache-conf-digest.txt | |
drwxr-xr-x 3 root wheel 96 Oct 25 2018 accounts | |
drwxr-xr-x 24 root wheel 768 May 15 09:35 archive |
This file contains 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/env zsh -f | |
# Purpose: Download enclosures from a podcast feed | |
# | |
# From: Timothy J. Luoma | |
# Mail: luomat at gmail dot com | |
# Date: 2020-09-01 | |
# this is a variable we can use to refer to the name of this script | |
# for example, if the filename is | |
# /usr/local/bin/podcastdownloader.sh |