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/sh | |
# build_app_bundle.sh | |
# Author: Chad Armstrong (chad@edenwaith.com) | |
# Date: 17 October 2020 - 1 January 2021 | |
# Note: Run this script in the same directory as the agistudio.app bundle | |
# Print out the current working directory | |
function cwd { | |
PWD=`pwd` | |
echo "Current working directory is: $PWD\n" |
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
/* | |
* FindAGIGameID.c | |
* Description: Check to see if an AGI Sierra game is either version 2 or 3. | |
* Author: Chad Armstrong | |
* Date: 29 April 2020 | |
* To compile: gcc -Wall -o FindAGIGameID FindAGIGameID.c | |
* To run: ./FindAGIGameID | |
* | |
* References: | |
* - https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/glob.3.html |
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
-- File: CloseAcmeTabs.scpt | |
-- Description: Iterate through all open Google Chrome windows and close any Atlassian-related tabs. | |
-- Author: Chad Armstrong | |
-- Date: 25 February 2020 | |
tell application "Google Chrome" | |
-- Iterate through every Chrome tab and find any Atlassian pages (JIRA, Confluence) | |
set windowList to every tab of every window whose (URL starts with "https://wiki.acme.com/") or (URL starts with "https://jira.acme.com/") | |
set tabsToClose to 0 | |
repeat with tabList in windowList |
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>local.markunreademails</string> | |
<key>ProgramArguments</key> | |
<array> | |
<!-- osascript /Users/chadarmstrong/Projects/Scripts/MarkUnreadEmails.scpt --> | |
<string>/usr/bin/osascript</string> |
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
-- File: MarkUnreadEmails.scpt | |
-- Description: Go through the mailboxes in Outlook and mark unread messages as read | |
-- Author: Chad Armstrong | |
-- Date: 22 November 2019 | |
tell application "Microsoft Outlook" | |
set myInbox to folder "Inbox" of default account | |
set github to folder "GitHub" of myInbox | |
set other to folder "Other" of myInbox |
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 Computer//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<!-- (ORIGINAL AUTHOR, ORIGINAL HEADER) | |
BBEdit Applescript Codeless Language Module. | |
Bill Hernandez <http://www.mac-specialist.com/> | |
Version 1.0.1 | |
Updated - Monday, November 20, 2006 ( 6:41 PM ) | |
Updated - Tuesday, November 21, 2006 ( 10:05 PM ) |
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
-- CountOpenChromeTabs.scpt | |
-- Author: Chad Armstrong | |
-- Date: 30 August 2019 | |
-- Description: Count the number of open tabs in Google Chrome | |
-- To run from CLI: osascript CountOpenChromeTabs.scpt | |
-- To create an alias command: | |
-- In ~/.bash_profile, add the line: alias counttabs='osascript ~/Projects/Scripts/CountOpenChromeTabs.scpt' | |
-- Refresh the bash shell environment: source ~/.bash_profile | |
tell application "Google Chrome" |
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>BBEditDocumentType</key> | |
<string>CodelessLanguageModule</string> | |
<key>BBLMColorsSyntax</key> | |
<true/> | |
<key>BBLMIsCaseSensitive</key> | |
<true/> |
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
#include <LiquidCrystal.h> | |
// LiquidCrystal display with: | |
// rs on pin 12 | |
// rw on pin 11 | |
// enable on pin 10 | |
// d4-7 on pins 5 - 2 | |
// LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2); | |
// LiquidCrystal lcd(12, 11, 5, 4, 3, 2); |
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/sh | |
# Author: Chad Armstrong | |
# Date: 29 August 2018 | |
# Description: Clear the cached calendars for macOS Calendar | |
# References: | |
# https://michaelkummer.com/technology/fix-calendar-cant-save-event-x-exchange/ | |
# https://wilkinsit.ca/mac-osx/clear-calendar-cache-mac-os/ | |
# https://stackoverflow.com/a/3510850/955122 |