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
| #!/bin/bash | |
| # This script is slightly modified from @trentmswanson who's the original author and | |
| # @sozercan who forked it as well. This is not my original work. The original author | |
| # deserves all of the credit and kudos. | |
| # | |
| # https://gist.github.com/trentmswanson/9c22bb71182e982bd36f | |
| # https://gist.github.com/sozercan/e089f34fd148156facea27583c12e2e0 | |
| # | |
| # This version simply sets the path to '/mnt' instead of '/media' and then first disk to mount as |
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
| #!/bin/bash | |
| #============================================================================== | |
| #TITLE: mysql_backup.sh | |
| #DESCRIPTION: script for automating the daily mysql backups on development computer | |
| #AUTHOR: tleish | |
| #DATE: 2013-12-20 | |
| #VERSION: 0.4 | |
| #USAGE: ./mysql_backup.sh | |
| #CRON: | |
| # example cron for daily db backup @ 9:15 am |
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
| #!/bin/bash | |
| # This script is slightly modified from @trentmswanson who's the original author and | |
| # @sozercan who forked it as well. This is not my original work. The original author | |
| # deserves all of the credit and kudos. | |
| # | |
| # https://gist.github.com/trentmswanson/9c22bb71182e982bd36f | |
| # https://gist.github.com/sozercan/e089f34fd148156facea27583c12e2e0 | |
| # | |
| # This version allows the use of '/dev/sdb', sets the path to '/mnt' instead of '/media' and then first disk to mount as |
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
| #!/bin/bash | |
| # This script is slightly modified from @trentmswanson who's the original author and | |
| # @sozercan who forked it as well. This is not my original work. The original author | |
| # deserves all of the credit and kudos. | |
| # | |
| # https://gist.github.com/trentmswanson/9c22bb71182e982bd36f | |
| # https://gist.github.com/sozercan/e089f34fd148156facea27583c12e2e0 | |
| # | |
| # This version detects if the 'AzureAgent' is present or not and allows the use of '/dev/sdb' if it isn't. |
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
| function New-Password { | |
| <# | |
| .SYNOPSIS | |
| Generate a random password. | |
| .DESCRIPTION | |
| Generate a random password. | |
| .NOTES | |
| Change log: | |
| 27/11/2017 - faustonascimento - Swapped Get-Random for System.Random. | |
| Swapped Sort-Object for Fisher-Yates shuffle. |