View karabiner.json
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": { |
View url2image.sh
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 |
View letsencrypt-output.txt
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 |
View com.tjluoma.every3minutes.plist
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>Label</key> | |
<string>com.tjluoma.test</string> | |
<key>Program</key> | |
<string>/usr/bin/true</string> | |
<key>RunAtLoad</key> | |
<false/> |
View ExportKindle.js
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
// The following data should be run in the console while viewing the page https://read.amazon.com/ | |
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension | |
// https://gist.github.com/jkubecki/d61d3e953ed5c8379075b5ddd8a95f22 | |
// including change recommended by @nexnovati | |
// https://gist.github.com/jkubecki/d61d3e953ed5c8379075b5ddd8a95f22#gistcomment-3439531 | |
// works as of 2021-01-26 with Google Chrome 88.0.4324.96 | |
var db = openDatabase('K4W', '3', 'thedatabase', 1024 * 1024); | |
getAmazonCsv = function() { |
View com.tjluoma.lockscreen.plist
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>Disabled</key> | |
<false/> | |
<key>Label</key> | |
<string>com.tjluoma.lockscreen</string> | |
<key>ProgramArguments</key> | |
<array> |
View arch.sh
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
## Note - this should work in bash and zsh scripts | |
ARCH=$(sysctl kern.version | awk -F'_' '/RELEASE/{print $2}') | |
if [[ "$ARCH" == "ARM64" ]] | |
then | |
ARCH='arm64' | |
elif [[ "$ARCH" == "X86" ]] | |
then | |
ARCH='i386' |
View gist:bfb9f452b8c469e77227a674615f4f55
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: Try to get the Mac App Store on Mojave to let Mac App Store apps update without "cancelled" message | |
# | |
# From: Timothy J. Luoma | |
# Mail: luomat at gmail dot com | |
# Date: 2020-11-25 | |
PATH='/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin' | |
pgrep -x 'App Store' && killall 'App Store' |
View backupmas.sh
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: Create a backup of all Mac App Store apps | |
# NTS: like 'backup-mas-apps.sh' but without growlnotify | |
# From: Timothy J. Luoma | |
# Mail: luomat at gmail dot com | |
# Date: 2019-06-01 | |
# point this to wherever you want backups to be made. | |
# it will be created if it does not exist |
NewerOlder