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
| ' Outlook VBA Script to download all attachments (including embedded attachments) from a specific folder. | |
| ' Items will be downloaded into a folder you specify. | |
| Sub downloadallattachments() | |
| 'Folder Constants | |
| Const olFolderCalendar = 9 | |
| Const olFolderContacts = 10 | |
| Const olFolderDeletedItems = 3 | |
| Const olFolderDrafts = 16 |
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
| ' WordFrequency | |
| ' From: http://wordribbon.tips.net/T010761_Generating_a_Count_of_Word_Occurrences.html | |
| ' | |
| ' The following macro prompts the user for a word, and then counts the number of times that word appears in the document. | |
| ' It will continue to ask for another word until the user clicks on the Cancel button. | |
| Sub WordFrequency() | |
| Const maxwords = 9000 'Maximum unique words allowed | |
| Dim SingleWord As String 'Raw word pulled from doc | |
| Dim Words(maxwords) As String 'Array to hold unique words |
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 filter-branch --env-filter ' | |
| oldname="(old name)" | |
| oldemail="(old email)" | |
| newname="(new name)" | |
| newemail="(new email)" | |
| [ "$GIT_AUTHOR_EMAIL" = "$oldemail" ] && GIT_AUTHOR_EMAIL="$newemail" | |
| [ "$GIT_COMMITTER_EMAIL" = "$oldemail" ] && GIT_COMMITTER_EMAIL="$newemail" | |
| [ "$GIT_AUTHOR_NAME" = "$oldname" ] && GIT_AUTHOR_NAME="$newname" | |
| [ "$GIT_COMMITTER_NAME" = "$oldname" ] && GIT_COMMITTER_NAME="$newname" | |
| ' HEAD |
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
| # Bash profile for MacOS | |
| # Courtesy of http://natelandau.com/my-mac-osx-bash_profile/ | |
| # | |
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) |