Skip to content

Instantly share code, notes, and snippets.

View wlansdowne's full-sized avatar

Wayne Lansdowne wlansdowne

  • USA
View GitHub Profile
@wlansdowne
wlansdowne / New-Password.ps1
Created April 6, 2023 19:57 — forked from indented-automation/New-Password.ps1
PowerShell random password generator.
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.
@wlansdowne
wlansdowne / mysql_backup.sh
Created August 14, 2019 20:59 — forked from tleish/mysql_backup.sh
Bash Script to backup all MySQL databases
#!/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
@wlansdowne
wlansdowne / autopart(AZ).sh
Last active August 15, 2019 20:28 — forked from sozercan/autopart.sh
Linux bash script to partition and format all data disks in azure
#!/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