User blog: Craig Blair

Craig Blair
by Craig Blair - Tuesday, 28 April 2026, 10:13 AM
Anyone in the world

Isometric Room Grid

Comments

     
    Craig Blair
    by Craig Blair - Friday, 5 September 2025, 10:59 AM
    Anyone in the world

    1) Create the reset script

    Open Terminal and run:

    sudo mkdir -p /usr/local/bin
    cat <<'EOF' | sudo tee /usr/local/bin/office-reset.sh >/dev/null
    #!/bin/bash
    # Reset Microsoft Office activation & cached identities for the current user

    # Quit Office apps
    /usr/bin/pkill -f "Microsoft"

    # Remove cached Office data
    /bin/rm -rf "$HOME/Library/Group Containers/UBF8T346G9.Office/"*
    /bin/rm -rf "$HOME/Library/Containers/com.microsoft."*

    # Clean Keychain tokens (ignore errors if not present)
    /usr/bin/security delete-generic-password -l "Microsoft Office Identities Cache 2" "$HOME/Library/Keychains/login.keychain-db" 2>/dev/null
    /usr/bin/security delete-generic-password -l "Microsoft Office Identities Settings 2" "$HOME/Library/Keychains/login.keychain-db" 2>/dev/null
    /usr/bin/security delete-generic-password -s "ADAL" "$HOME/Library/Keychains/login.keychain-db" 2>/dev/null
    /usr/bin/security delete-generic-password -s "MSOID" "$HOME/Library/Keychains/login.keychain-db" 2>/dev/null

    # Nice-to-have: clear app saved state so Word doesn't re-open old windows
    /bin/rm -rf "$HOME/Library/Saved Application State/com.microsoft."*.savedState

    exit 0
    EOF
    sudo chmod 755 /usr/local/bin/office-reset.sh

    2) Make it run at every login (LaunchAgent)

    cat <<'EOF' | sudo tee /Library/LaunchAgents/au.nlsc.office.reset.plist >/dev/null
    <?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>au.nlsc.office.reset</string>
        <key>ProgramArguments</key>
        <array>
          <string>/usr/local/bin/office-reset.sh</string>
        </array>
        <key>RunAtLoad</key><true/>
        <key>StandardOutPath</key><string>/tmp/office-reset.out</string>
        <key>StandardErrorPath</key><string>/tmp/office-reset.err</string>
      </dict>
    </plist>
    EOF
    sudo chown root:wheel /Library/LaunchAgents/au.nlsc.office.reset.plist
    sudo chmod 644 /Library/LaunchAgents/au.nlsc.office.reset.plist

    Now log out and back in

    ************************-------------------**************************

    1) Install the reset script (once, system-wide)

    Open Terminal and run:

    sudo mkdir -p /usr/local/bin
    cat <<'EOF' | sudo tee /usr/local/bin/office-reset.sh >/dev/null
    #!/bin/bash
    # Reset Microsoft Office activation & cached identities for the current user

    # Quit Office apps
    /usr/bin/pkill -f "Microsoft"

    # Remove cached Office data
    /bin/rm -rf "$HOME/Library/Group Containers/UBF8T346G9.Office/"*
    /bin/rm -rf "$HOME/Library/Containers/com.microsoft."*

    # Clean Keychain tokens (ignore errors if not present)
    /usr/bin/security delete-generic-password -l "Microsoft Office Identities Cache 2" "$HOME/Library/Keychains/login.keychain-db" 2>/dev/null
    /usr/bin/security delete-generic-password -l "Microsoft Office Identities Settings 2" "$HOME/Library/Keychains/login.keychain-db" 2>/dev/null
    /usr/bin/security delete-generic-password -s "ADAL" "$HOME/Library/Keychains/login.keychain-db" 2>/dev/null
    /usr/bin/security delete-generic-password -s "MSOID" "$HOME/Library/Keychains/login.keychain-db" 2>/dev/null

    # Clear app saved state so Word/Excel don’t reopen windows
    /bin/rm -rf "$HOME/Library/Saved Application State/com.microsoft."*.savedState

    exit 0
    EOF
    sudo chmod 755 /usr/local/bin/office-reset.sh

    2) Create the LaunchAgent (system-wide, runs for all users)

    cat <<'EOF' | sudo tee /Library/LaunchAgents/au.nlsc.office.reset.plist >/dev/null
    <?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>au.nlsc.office.reset</string>
        <key>ProgramArguments</key>
        <array>
          <string>/usr/local/bin/office-reset.sh</string>
        </array>
        <key>RunAtLoad</key><true/>
        <key>StandardOutPath</key><string>/tmp/office-reset.out</string>
        <key>StandardErrorPath</key><string>/tmp/office-reset.err</string>
      </dict>
    </plist>
    EOF
    sudo chown root:wheel /Library/LaunchAgents/au.nlsc.office.reset.plist
    sudo chmod 644 /Library/LaunchAgents/au.nlsc.office.reset.plist

    ***************************-------------------*****************************

    pkill "Microsoft" && rm -rf ~/Library/Group\ Containers/UBF8T346G9.Office/* ~/Library/Containers/com.microsoft.* && security delete-generic-password -l "Microsoft Office Identities Cache 2" ~/Library/Keychains/login.keychain-db 2>/dev/null && security delete-generic-password -l "Microsoft Office Identities Settings 2"~/Library/Keychains/login.keychain-db 2>/dev/null && security delete-generic-password -s "ADAL"~/Library/Keychains/login.keychain-db 2>/dev/null && security delete-generic-password -s "MSOID"~/Library/Keychains/login.keychain-db 2>/dev/null

    *********************************-------------------************************************

    rm -rf ~/Library/Group\ Containers/UBF8T346G9.Office/*

    rm -rf ~/Library/Containers/com.microsoft.Word

    rm -rf ~/Library/Containers/com.microsoft.Excel

    rm -rf ~/Library/Containers/com.microsoft.Powerpoint

    rm -rf ~/Library/Containers/com.microsoft.onenote.mac

    *********************************-------------------************************************

    [ Modified: Monday, 11 May 2026, 2:27 PM ]

    Comments

       
      Craig Blair
      by Craig Blair - Thursday, 28 August 2025, 11:45 AM
      Anyone in the world

      Flashcards

      [ Modified: Friday, 29 August 2025, 9:07 AM ]

      Comments

         
        Craig Blair
        by Craig Blair - Tuesday, 3 June 2025, 2:10 PM
        Anyone in the world

        VLC

        Comments

           
          Craig Blair
          by Craig Blair - Monday, 31 March 2025, 12:20 PM
          Anyone in the world

          LibreOffice

          Comments

             
            Craig Blair
            by Craig Blair - Friday, 28 March 2025, 10:41 AM
            Anyone in the world

            LinuxMintStrip

            [ Modified: Friday, 15 August 2025, 1:25 PM ]

            Comments

               
              Craig Blair
              by Craig Blair - Tuesday, 10 December 2024, 12:47 PM
              Anyone in the world

              plist for library colour

              Comments

                 
                Craig Blair
                by Craig Blair - Tuesday, 10 December 2024, 12:47 PM
                Anyone in the world

                plist for library colour

                Comments

                   
                  Craig Blair
                  by Craig Blair - Friday, 22 November 2024, 9:26 AM
                  Anyone in the world


                  You will find the Verbs vs Adverbs Podcast and Powerpoints (2 Versions) attached to this blog:

                  These are the AI's that were used.

                  https://gamma.app/ for powerpoints and more

                  • the prompts used:
                    • Verbs vs adverbs for year 11 Australian students with a context of Australian bush tucker
                    • verb vs adverb australian year 11 student context on australian bush tucker

                  Please note that the 2 Powerpoints are not identical, AI changes its content as it learns from continual inputs from around the globe.

                  https://notebooklm.google/ for podcasts  and more

                  The prompt for the audio:
                    • Verbs vs adverbs for year 11 Australian students with a context of Australian bush tucker
                  Summary of the audio

                  The provided text is a fragment of a title or heading, indicating a discussion comparing and contrasting verbs and adverbs in grammar. The focus is on the differences between these two parts of speech.The excerpt suggests a grammatical explanation, potentially offering examples and definitions.  It implies a contrast between action words (verbs) and words describing how the action is performed (adverbs).

                  I will be using these 2 AI's to help with content for next years EST's for my general courses


                  [ Modified: Friday, 22 November 2024, 9:41 AM ]

                  Comments

                     
                    Craig Blair
                    by Craig Blair - Wednesday, 20 July 2022, 3:08 PM
                    Anyone in the world

                    [ Modified: Wednesday, 20 July 2022, 3:54 PM ]

                    Comments